CVE-2013-6461 — Vulnerability in nokogiri — CVE Details
Nokogiri vulnerable to DoS while parsing XML entities
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (2.19%). Schedule for your next planned update.
Does your project use an affected nokogiri version?
Paste your Gemfile.lock to check it for CVE-2013-6461 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Nokogiri gem 1.5.x and 1.6.x has DoS while parsing XML entities by failing to apply limits
Advisory Timeline
- First published May 5, 2022 (1667 days ago).
- Last revised February 16, 2024 — 652 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install nokogiri -v 1.6.1
gem install nokogiri -v 1.5.11
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: RubyGems (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-776
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2013-6461ADVISORY
- https://access.redhat.com/security/cve/cve-2013-6461WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2013-6461WEB
- https://exchange.xforce.ibmcloud.com/vulnerabilities/90059WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2013-6461.ymlWEB
- https://github.com/sparklemotion/nokogiriPACKAGE
- https://security-tracker.debian.org/tracker/CVE-2013-6461WEB
- https://web.archive.org/web/20200804224345/https://www.securityfocus.com/bid/64513WEB
- https://www.openwall.com/lists/oss-security/2013/12/27/2WEB
Frequently Asked Questions
- What is CVE-2013-6461?
- Nokogiri vulnerable to DoS while parsing XML entities. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.5/10).
- How do I check if my project is affected by CVE-2013-6461?
- CVE-2013-6461 affects nokogiri. It has a 2.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2013-6461 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This places it in the top quartile of EPSS-scored vulnerabilities — 83.2% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2021-30560HIGH
Nokogiri has vulnerable dependencies on libxml2 and libxslt
- CVE-2018-14404HIGH
Nokogiri NULL Pointer Dereference
- CVE-2017-16932HIGH
Nokogiri gem, via libxml, is affected by DoS vulnerabilities
- CVE-2022-29181HIGH
Nokogiri Improperly Handles Unexpected Data Type
- CVE-2026-57235MEDIUM
Nokogiri: Possible Out-of-Bounds Read in `Nokogiri::XML::NodeSet#[]`
- CVE-2013-6460MEDIUM
Nokogiri vulnerable to DoS while parsing XML documents
- CVE-2026-126063LOW
Nokogiri: Mutation XSS through `noscript` content in Nokogiri's HTML5 serializer
- CVE-2026-57236LOW
Nokogiri: Possible Use-After-Free when `Nokogiri::XML::Document#encoding=` raises an exception