CVE-2015-5312 json
Nokogiri subject to DoS via libxml2 vulnerability
published 10y ago modified 4mo ago also GHSA-xjqg-9jvg-fgx2 , EUVD-2018-0431
- cvss
- 7.1
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.5%
- EPSS 4.5% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems nokogiri 1.6.7.1
- libxml2 Debian 14, Debian 13, Debian 12 2.9.3+dfsg1-1
debian advisories DEBIAN-CVE-2015-5312
- libxml2 Ubuntu 14.04 LTS 2.9.1+dfsg1-3ubuntu4.6
ubuntu advisories UBUNTU-CVE-2015-5312
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libxml2 RHEL 7 2.9.1-6.el7_2.2
- libxml2-python RHEL 7 2.9.1-6.el7_2.2
- libxml2 RHEL 6 2.7.6-20.el6_7.1
- libxml2-python RHEL 6 2.7.6-20.el6_7.1
red hat advisories RHSA-2015:2550RHSA-2015:2549
- libxml2 SLES for SAP 12 SP1, SLES for SAP 12, SLES 12 SP1 +5 more 2.9.1-13.1
- python-libxml2 SLES for SAP 12 SP1, SLES for SAP 12, SLES 12 SP1 +3 more 2.9.1-13.1
- libxml2 SLES for SAP 11 SP4, SLES for SAP 11 SP3, SLES 11 SP4 +6 more 2.7.6-0.34.1
- libxml2-python SLES for SAP 11 SP4, SLES for SAP 11 SP3, SLES 11 SP4 +4 more 2.7.6-0.34.4
suse advisories SUSE-SU-2016:0049-1SUSE-SU-2016:0030-1
- rubygem-nokogiri openSUSE Tumbleweed 1.18.9-1.4
- rubygem-nokogiri openSUSE Tumbleweed 1.18.2-1.1
- rubygem-nokogiri openSUSE Tumbleweed 1.15.5-1.5
- libxml2 openSUSE Tumbleweed 2.9.4-1.22
- rubygem-nokogiri openSUSE Tumbleweed 1.6.8.1-1.3
- rubygem-nokogiri openSUSE Tumbleweed 1.13.3-1.1
- ruby3.2-rubygem-nokogiri openSUSE Tumbleweed 1.13.9-1.7
opensuse advisories openSUSE-SU-2026:10356-1openSUSE-SU-2025:14697-1openSUSE-SU-2024:14174-1openSUSE-SU-2024:10192-1openSUSE-SU-2024:10549-1openSUSE-SU-2024:11912-1
Is CVE-2015-5312 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2015-5312 updated cvss 4.3
libxml2: CPU exhaustion when processing specially crafted XML input
-
Red Hat Enterprise Linux 5 libxml2 Red Hat JBoss Enterprise Web Server 2 libxml2affected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux Client (v. 7) libxml2 2.9.1-6.el7_2.2, libxml2-python 2.9.1-6.el7_2.2 Red Hat Enterprise Linux Client Optional (v. 7) libxml2-devel 2.9.1-6.el7_2.2, libxml2-static 2.9.1-6.el7_2.2, libxml2-debuginfo 2.9.1-6.el7_2.2 Red Hat Enterprise Linux ComputeNode (v. 7) libxml2 2.9.1-6.el7_2.2, libxml2-python 2.9.1-6.el7_2.2 Red Hat Enterprise Linux ComputeNode Optional (v. 7) libxml2-devel 2.9.1-6.el7_2.2, libxml2-static 2.9.1-6.el7_2.2, libxml2-debuginfo 2.9.1-6.el7_2.2fixed: vendor fix RHSA-2015:2550
-
Red Hat Enterprise Linux Desktop (v. 6) libxml2 2.7.6-20.el6_7.1, libxml2-python 2.7.6-20.el6_7.1 Red Hat Enterprise Linux Desktop Optional (v. 6) libxml2-devel 2.7.6-20.el6_7.1, libxml2-static 2.7.6-20.el6_7.1, libxml2-debuginfo 2.7.6-20.el6_7.1 Red Hat Enterprise Linux HPC Node (v. 6) libxml2 2.7.6-20.el6_7.1, libxml2-python 2.7.6-20.el6_7.1 Red Hat Enterprise Linux HPC Node Optional (v. 6) libxml2-devel 2.7.6-20.el6_7.1, libxml2-static 2.7.6-20.el6_7.1, libxml2-debuginfo 2.7.6-20.el6_7.1 Red Hat Enterprise Linux Server (v. 6) libxml2 2.7.6-20.el6_7.1, libxml2-python 2.7.6-20.el6_7.1fixed: vendor fix RHSA-2015:2549
-
Red Hat Enterprise Linux Server (v. 7) libxml2 2.9.1-6.el7_2.2, libxml2-python 2.9.1-6.el7_2.2fixed: vendor fix RHSA-2015:2550
-
Red Hat Enterprise Linux Server Optional (v. 6) libxml2-static 2.7.6-20.el6_7.1, libxml2-debuginfo 2.7.6-20.el6_7.1fixed: vendor fix RHSA-2015:2549
-
Red Hat Enterprise Linux Server Optional (v. 7) libxml2-static 2.9.1-6.el7_2.2, libxml2-debuginfo 2.9.1-6.el7_2.2fixed: vendor fix RHSA-2015:2550
-
Red Hat Enterprise Linux Workstation (v. 6) libxml2 2.7.6-20.el6_7.1, libxml2-python 2.7.6-20.el6_7.1fixed: vendor fix RHSA-2015:2549
-
Red Hat Enterprise Linux Workstation (v. 7) libxml2 2.9.1-6.el7_2.2, libxml2-python 2.9.1-6.el7_2.2fixed: vendor fix RHSA-2015:2550
show 3 moreshow fewer
-
Red Hat Enterprise Linux Workstation Optional (v. 6) libxml2-static 2.7.6-20.el6_7.1, libxml2-debuginfo 2.7.6-20.el6_7.1fixed: vendor fix RHSA-2015:2549
-
Red Hat Enterprise Linux Workstation Optional (v. 7) libxml2-static 2.9.1-6.el7_2.2, libxml2-debuginfo 2.9.1-6.el7_2.2fixed: vendor fix RHSA-2015:2550
-
Red Hat JBoss Web Server 3.0fixed: vendor fix RHSA-2016:1089
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
4.50% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.1 | AV:N/AC:M/Au:N/C:N/I:N/A:C |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | nokogiri | >=1.6.0, <1.6.7.1 |
1.6.7.1 |
Classification
References
-
git.gnome.org
/browse/libxml2/commit/?id=69030714cde66d525a8884bda01b9e8f0abf8e1e
web
-
rhn.redhat.com
/errata/RHSA-2015-2550.html
vendor-advisory, web, third-party-advisory
-
lists.apple.com
/archives/security-announce/2016/Mar/msg00004.html
vendor-advisory, mailing-list
-
lists.opensuse.org
/opensuse-updates/2016-01/msg00031.html
vendor-advisory, web
-
debian.org
/security/2015/dsa-3430
vendor-advisory, web, third-party-advisory
-
lists.apple.com
/archives/security-announce/2016/Mar/msg00000.html
vendor-advisory, web
-
rhn.redhat.com
/errata/RHSA-2016-1089.html
vendor-advisory
-
lists.apple.com
/archives/security-announce/2016/Mar/msg00001.html
vendor-advisory
-
ubuntu.com
/usn/USN-2834-1
vendor-advisory, web, third-party-advisory
-
rhn.redhat.com
/errata/RHSA-2015-2549.html
vendor-advisory, web, third-party-advisory
-
marc.info
/?l=bugtraq&m=145382616617563&w=2
vendor-advisory, web, third-party-advisory
-
security.gentoo.org
/glsa/201701-37
vendor-advisory, web
-
lists.opensuse.org
/opensuse-updates/2015-12/msg00120.html
vendor-advisory, web
-
lists.apple.com
/archives/security-announce/2016/Mar/msg00002.html
vendor-advisory, third-party-advisory
-
support.apple.com
/HT206167
web, vendor-advisory
-
support.apple.com
/HT206168
web, vendor-advisory
-
xmlsoft.org
/news.html
web, vendor-advisory
-
support.apple.com
/HT206169
web, vendor-advisory
-
support.apple.com
/HT206166
web, vendor-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1276693
web, issue-tracking
-
oracle.com
/technetwork/topics/security/linuxbulletinoct2015-2719645.html
web
-
securitytracker.com
/id/1034243
vdb-entry
-
h20566.www2.hpe.com
/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c04944172
web, third-party-advisory
-
oracle.com
/technetwork/topics/security/bulletinjan2016-2867206.html
web
-
securityfocus.com
/bid/79536
vdb-entry
-
nvd.nist.gov
/vuln/detail/CVE-2015-5312
advisory
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2015-5312.yml
web
-
groups.google.com
/forum/#!topic/ruby-security-ann/aSbgDiwb24s
web
Sources
- CVE List CVE-2015-5312
- GitHub Advisory GHSA-xjqg-9jvg-fgx2
- NVD CVE-2015-5312
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.