CVE-2013-6460 — Vulnerability in nokogiri — CVE Details
Nokogiri vulnerable to DoS while parsing XML documents
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (2.08%). Schedule for your next planned update.
Does your project use an affected nokogiri version?
Paste your Gemfile.lock to check it for CVE-2013-6460 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 has Denial of Service via infinite loop when parsing XML documents
Advisory Timeline
- First published May 5, 2022 (1666 days ago).
- Last revised February 17, 2024 — 653 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-6460ADVISORY
- https://access.redhat.com/security/cve/cve-2013-6460WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2013-6460WEB
- https://bugzilla.suse.com/show_bug.cgi?id=CVE-2013-6460WEB
- https://exchange.xforce.ibmcloud.com/vulnerabilities/90058WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2013-6460.ymlWEB
- https://github.com/sparklemotion/nokogiriPACKAGE
- https://security-tracker.debian.org/tracker/CVE-2013-6460WEB
- https://web.archive.org/web/20200229074427/https://www.securityfocus.com/bid/64513WEB
- https://www.openwall.com/lists/oss-security/2013/12/27/2WEB
Frequently Asked Questions
- What is CVE-2013-6460?
- Nokogiri vulnerable to DoS while parsing XML documents. 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-6460?
- CVE-2013-6460 affects nokogiri. It has a 2.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2013-6460 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 — 82.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-2019-11068CRITICAL
Nokogiri vulnerable to libxslt protection mechanism bypass
- CVE-2017-5029HIGH
Nokogiri implementation of libxslt lacks integer overflow checks
- CVE-2022-23476HIGH
Unchecked return value from xmlTextReaderExpand
- CVE-2017-15412HIGH
Nokogiri gem, via libxml, is affected by DoS vulnerabilities
- CVE-2021-3518HIGH
Nokogiri Implements libxml2 version vulnerable to use-after-free
- CVE-2019-5815HIGH
Nokogiri implementation of libxslt vulnerable to heap corruption
- CVE-2026-79771MEDIUM
Nokogiri XSLT transform has a memory leak
- CVE-2026-57435LOW
Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Attr#value=` or `#content=`