CVE-2015-5312
Nokogiri subject to DoS via libxml2 vulnerability
Also known as GHSA-xjqg-9jvg-fgx2
Mitigation
- Upgrade nokogiri to 1.6.7.1 or later.
Who should check
- Projects that depend on RubyGems package nokogiri (>= 1.6.0, < 1.6.7.1)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- nokogiri >= 1.6.0, < 1.6.7.1
- Fixed in
- 1.6.7.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.1 (v2.0, NVD)AV:N/AC:M/Au:N/C:N/I:N/A:C
Show all 6 CVSS metrics
- Attack vector: Network
- Attack complexity: Medium
- Authentication: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: Complete
- EPSS
- 4.50% chance of exploitation in 30 days (percentile 92, 2026-11-26)
- CWE
- CWE-399
- Modified
Description
The xmlStringLenDecodeEntities function in parser.c in libxml2 before 2.9.3 does not properly prevent entity expansion, which allows context-dependent attackers to cause a denial of service (CPU consumption) via crafted XML data, a different vulnerability than CVE-2014-3660.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| RubyGems nokogiri | >= 1.6.0, < 1.6.7.1 | 1.6.7.1 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2015-5312. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2015-5312.md Affected: nokogiri >= 1.6.0, < 1.6.7.1 Fixed in: 1.6.7.1 Steps: 1. Search this machine and project for nokogiri (RubyGems), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- http://rhn.redhat.com/errata/RHSA-2015-2550.html
- http://lists.apple.com/archives/security-announce/2016/Mar/msg00004.html
- http://lists.opensuse.org/opensuse-updates/2016-01/msg00031.html
- https://support.apple.com/HT206167
- https://support.apple.com/HT206168
- http://www.debian.org/security/2015/dsa-3430
- http://lists.apple.com/archives/security-announce/2016/Mar/msg00000.html
- http://xmlsoft.org/news.html
- http://rhn.redhat.com/errata/RHSA-2016-1089.html
- http://lists.apple.com/archives/security-announce/2016/Mar/msg00001.html
- http://www.ubuntu.com/usn/USN-2834-1
- http://rhn.redhat.com/errata/RHSA-2015-2549.html
- http://marc.info/?l=bugtraq&m=145382616617563&w=2
- https://security.gentoo.org/glsa/201701-37
- http://lists.opensuse.org/opensuse-updates/2015-12/msg00120.html
- http://lists.apple.com/archives/security-announce/2016/Mar/msg00002.html
- https://support.apple.com/HT206169
- https://support.apple.com/HT206166
- https://nvd.nist.gov/vuln/detail/CVE-2015-5312
Other
- https://git.gnome.org/browse/libxml2/commit/?id=69030714cde66d525a8884bda01b9e8f0abf8e1e
- https://bugzilla.redhat.com/show_bug.cgi?id=1276693
- http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html
- http://www.securitytracker.com/id/1034243
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c04944172
- http://www.oracle.com/technetwork/topics/security/bulletinjan2016-2867206.html
- http://www.securityfocus.com/bid/79536
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2015-5312.yml
- https://groups.google.com/forum/#!topic/ruby-security-ann/aSbgDiwb24s
FAQ
Is CVE-2015-5312 being exploited?
There is no confirmed exploitation: CVE-2015-5312 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 4.50% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2015-5312?
High: CVSS 7.1 (v2.0, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2015-5312?
nokogiri >= 1.6.0, < 1.6.7.1.
Is there a fix for CVE-2015-5312?
Yes. Fixed in 1.6.7.1. Upgrade nokogiri to 1.6.7.1 or later.
How do I check if I'm affected by CVE-2015-5312?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.