CVE-2017-18258
Uncontrolled resource consumption in nokogiri
CVE-2017-18258 is a medium vulnerability (CVSS 6.5) in Xmlsoft Libxml2, published April 8, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.73%, the 86th percentile. Fixed in nokogiri 1.8.2.
The xz_head function in xzlib.c in libxml2 before 2.9.6 allows remote attackers to cause a denial of service (memory consumption) via a crafted LZMA file, because the decoder functionality does not restrict memory usage to what is required for a legitimate file.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.5
The xz_head function in xzlib.c in libxml2 before 2.9.6 allows remote attackers to cause a denial of service (memory consumption) via a crafted LZMA file, because the decoder functionality does not restrict memory usage to what is required for a legitimate file.
- Record
CVE-2017-18258- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-770
- Updated
- 2026-11-02
CVE List No score
The xz_head function in xzlib.c in libxml2 before 2.9.6 allows remote attackers to cause a denial of service (memory consumption) via a crafted LZMA file, because the decoder functionality does not restrict memory usage to what is required for a legitimate file.
- Record
CVE-2017-18258- Updated
- 2026-11-02
EUVDEUVD-2018-0189 No score
The xz_head function in xzlib.c in libxml2 before 2.9.6 allows remote attackers to cause a denial of service (memory consumption) via a crafted LZMA file, because the decoder functionality does not restrict memory usage to what is required for a legitimate file.
- Record
EUVD-2018-0189- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-882p-jqgm-f45g
6.5
Uncontrolled resource consumption in nokogiri
The xz_head function in xzlib.c in libxml2 before 2.9.6 allows remote attackers to cause a denial of service (memory consumption) via a crafted LZMA file, because the decoder functionality does not restrict memory usage to what is required for a legitimate file.
- Record
GHSA-882p-jqgm-f45g- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-770
- Updated
- 2026-11-02
OSV
6.5
The xz_head function in xzlib.c in libxml2 before 2.9.6 allows remote attackers to cause a denial of service (memory consumption) via a crafted LZMA file, because the decoder functionality does not restrict memory usage to what is required for a legitimate file.
- Record
CVE-2017-18258- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2017-18258
6.5
The xz_head function in xzlib.c in libxml2 before 2.9.6 allows remote attackers to cause a denial of service (memory consumption) via a crafted LZMA file, because the decoder functionality does not restrict memory usage to what is required for a legitimate file.
- Record
DEBIAN-CVE-2017-18258- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 5 moreShow less
OSVGHSA-882p-jqgm-f45g
6.5
Uncontrolled resource consumption in nokogiri
The xz_head function in xzlib.c in libxml2 before 2.9.6 allows remote attackers to cause a denial of service (memory consumption) via a crafted LZMA file, because the decoder functionality does not restrict memory usage to what is required for a legitimate file.
- Record
GHSA-882p-jqgm-f45g- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-770
- Updated
- 2026-11-02
OSVRHSA-2020:1190
8.8
Red Hat Security Advisory: libxml2 security update
- Record
RHSA-2020:1190- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2017-18258
6.5
The xz_head function in xzlib.c in libxml2 before 2.9.6 allows remote attackers to cause a denial of service (memory consumption) via a crafted LZMA file, because the decoder functionality does not restrict memory usage to what is required for a legitimate file.
- Record
UBUNTU-CVE-2017-18258- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVSUSE-SU-2018:3081-1 No score
Security update for libxml2
This update for libxml2 fixes the following security issues:
- CVE-2018-9251: The xz_decomp function allowed remote attackers to cause a denial of service (infinite loop) via a crafted XML file that triggers LZMA_MEMLIMIT_ERROR, as demonstrated by xmllint (bsc#1088279).
- CVE-2018-14567: Prevent denial of service (infinite loop) via a crafted XML file that triggers LZMA_MEMLIMIT_ERROR, as demonstrated by xmllint (bsc#1105166).
- CVE-2018-14404: Prevent NULL pointer dereference in the xmlXPathCompOpEval() function when parsing an invalid XPath expression in the XPATH_OP_AND or XPATH_OP_OR case leading to a denial of service attack (bsc#1102046).
- CVE-2017-18258: The xz_head function allowed remote attackers to cause a denial of service (memory consumption) via a crafted LZMA file, because the decoder functionality did not restrict memory usage to what is required for a legitimate file (bsc#1088601).
- Record
SUSE-SU-2018:3081-1- Updated
- 2026-11-02
OSVUSN-3739-1 No score
libxml2 vulnerabilities
Matias Brutti discovered that libxml2 incorrectly handled certain XML files. An attacker could possibly use this issue to expose sensitive information. (CVE-2016-9318)
It was discovered that libxml2 incorrectly handled certain files. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 18.04 LTS. (CVE-2017-16932)
It was discovered that libxml2 incorrectly handled certain files. An attacker could possibly use this issue to cause a denial of service. (CVE-2017-18258, CVE-2018-14404, CVE-2018-14567)
- Record
USN-3739-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
nokogiriRubyGems |
before 1.8.2 | 1.8.2 |
libxml2Debian:12 |
before 2.9.10+dfsg-2 | 2.9.10+dfsg-2 |
libxml2Debian:13 |
before 2.9.10+dfsg-2 | 2.9.10+dfsg-2 |
libxml2Debian:14 |
before 2.9.10+dfsg-2 | 2.9.10+dfsg-2 |
libxml2Debian:8 |
before 2.9.1+dfsg1-5+deb8u7, plus listed versions 2.9.1+dfsg1-52.9.1+dfsg1-5+deb8u12.9.1+dfsg1-5+deb8u22.9.1+dfsg1-5+deb8u32.9.1+dfsg1-5+deb8u42.9.1+dfsg1-5+deb8u52.9.1+dfsg1-5+deb8u6 |
2.9.1+dfsg1-5+deb8u7 |
libxml2Debian:9 |
before 2.9.4+dfsg1-2.2+deb9u3, plus listed versions 2.9.4+dfsg1-2.22.9.4+dfsg1-2.2+deb9u12.9.4+dfsg1-2.2+deb9u2 |
2.9.4+dfsg1-2.2+deb9u3 |
nokogiriRubyGems |
before 1.8.2, plus listed versions 1.0.01.0.11.0.21.0.31.0.4 Show 45 moreShow less1.0.51.0.61.0.71.1.01.1.11.2.01.2.11.2.21.2.31.3.01.3.11.3.21.3.31.4.01.4.11.4.21.4.2.11.4.31.4.3.11.4.41.4.4.11.4.4.21.4.51.4.61.4.71.5.01.5.0.beta.11.5.0.beta.21.5.0.beta.31.5.0.beta.41.5.11.5.1.rc11.5.101.5.111.5.21.5.31.5.3.rc21.5.3.rc31.5.3.rc41.5.3.rc51.5.3.rc61.5.41.5.4.rc11.5.4.rc21.5.4.rc3 |
1.8.2 |
libxml2Red Hat:enterprise_linux:7::client |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2-debuginfoRed Hat:enterprise_linux:7::client |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2-pythonRed Hat:enterprise_linux:7::client |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
Show 27 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libxml2-develRed Hat:enterprise_linux:7::client |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2-staticRed Hat:enterprise_linux:7::client |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2Red Hat:enterprise_linux:7::computenode |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2-debuginfoRed Hat:enterprise_linux:7::computenode |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2-pythonRed Hat:enterprise_linux:7::computenode |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2-develRed Hat:enterprise_linux:7::computenode |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2-staticRed Hat:enterprise_linux:7::computenode |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2Red Hat:enterprise_linux:7::server |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2-debuginfoRed Hat:enterprise_linux:7::server |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2-develRed Hat:enterprise_linux:7::server |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2-pythonRed Hat:enterprise_linux:7::server |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2-staticRed Hat:enterprise_linux:7::server |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2Red Hat:enterprise_linux:7::workstation |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2-debuginfoRed Hat:enterprise_linux:7::workstation |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2-develRed Hat:enterprise_linux:7::workstation |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2-pythonRed Hat:enterprise_linux:7::workstation |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2-staticRed Hat:enterprise_linux:7::workstation |
before 0:2.9.1-6.el7.4 | 0:2.9.1-6.el7.4 |
libxml2SUSE:Linux Enterprise Desktop 12 SP3 |
before 2.9.4-46.15.1 | 2.9.4-46.15.1 |
python-libxml2SUSE:Linux Enterprise Desktop 12 SP3 |
before 2.9.4-46.15.1 | 2.9.4-46.15.1 |
libxml2SUSE:Linux Enterprise Software Development Kit 12 SP3 |
before 2.9.4-46.15.1 | 2.9.4-46.15.1 |
libxml2SUSE:Linux Enterprise Server 12 SP3 |
before 2.9.4-46.15.1 | 2.9.4-46.15.1 |
python-libxml2SUSE:Linux Enterprise Server 12 SP3 |
before 2.9.4-46.15.1 | 2.9.4-46.15.1 |
libxml2SUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 2.9.4-46.15.1 | 2.9.4-46.15.1 |
python-libxml2SUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 2.9.4-46.15.1 | 2.9.4-46.15.1 |
libxml2Ubuntu:14.04:LTS |
before 2.9.1+dfsg1-3ubuntu4.13, plus listed versions 2.9.1+dfsg1-3ubuntu22.9.1+dfsg1-3ubuntu32.9.1+dfsg1-3ubuntu42.9.1+dfsg1-3ubuntu4.12.9.1+dfsg1-3ubuntu4.2 Show 10 moreShow less2.9.1+dfsg1-3ubuntu4.32.9.1+dfsg1-3ubuntu4.42.9.1+dfsg1-3ubuntu4.52.9.1+dfsg1-3ubuntu4.62.9.1+dfsg1-3ubuntu4.72.9.1+dfsg1-3ubuntu4.82.9.1+dfsg1-3ubuntu4.92.9.1+dfsg1-3ubuntu4.102.9.1+dfsg1-3ubuntu4.112.9.1+dfsg1-3ubuntu4.12 |
2.9.1+dfsg1-3ubuntu4.13 |
libxml2Ubuntu:16.04:LTS |
before 2.9.3+dfsg1-1ubuntu0.6, plus listed versions 2.9.2+zdfsg1-42.9.2+zdfsg1-4ubuntu12.9.2+zdfsg1-4ubuntu22.9.2+zdfsg1-4ubuntu32.9.3+dfsg1-1 Show 5 moreShow less2.9.3+dfsg1-1ubuntu0.12.9.3+dfsg1-1ubuntu0.22.9.3+dfsg1-1ubuntu0.32.9.3+dfsg1-1ubuntu0.42.9.3+dfsg1-1ubuntu0.5 |
2.9.3+dfsg1-1ubuntu0.6 |
libxml2Ubuntu:18.04:LTS |
before 2.9.4+dfsg1-6.1ubuntu1.2, plus listed versions 2.9.4+dfsg1-4ubuntu12.9.4+dfsg1-5ubuntu12.9.4+dfsg1-5ubuntu22.9.4+dfsg1-5.1ubuntu12.9.4+dfsg1-5.2ubuntu12.9.4+dfsg1-6.1ubuntu1 |
2.9.4+dfsg1-6.1ubuntu1.2 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-02 | created | CVE List, EUVD, GitHub Advisories, NVD, OSV |
References
lists.debian.org/debian-lts-announce/2018/09/msg00035.html
usn.ubuntu.com/3739-1
git.gnome.org/browse/libxml2/commit?id=e2a9122b8dde53d320750451e9907a7dcb2ca8bb
kc.mcafee.com/corporate/index?page=content&id=SB10284
security.netapp.com/advisory/ntap-20190719-0001
lists.debian.org/debian-lts-announce/2020/09/msg00009.html
Show 49 moreShow less
cert-portal.siemens.com/productcert/html/ssa-398330.html
nvd.nist.gov/vuln/detail/CVE-2017-18258
github.com/advisories/GHSA-882p-jqgm-f45g
github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2017-18258.yml
security-tracker.debian.org/tracker/CVE-2017-18258
access.redhat.com/errata/RHSA-2020:1190
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.8_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=1277146
bugzilla.redhat.com/show_bug.cgi?id=1358641
bugzilla.redhat.com/show_bug.cgi?id=1523128
bugzilla.redhat.com/show_bug.cgi?id=1566749
bugzilla.redhat.com/show_bug.cgi?id=1595985
bugzilla.redhat.com/show_bug.cgi?id=1619875
security.access.redhat.com/data/csaf/v2/advisories/2020/rhsa-2020_1190.json
access.redhat.com/security/cve/CVE-2015-8035
cve.org/CVERecord?id=CVE-2015-8035
nvd.nist.gov/vuln/detail/CVE-2015-8035
access.redhat.com/security/cve/CVE-2016-5131
cve.org/CVERecord?id=CVE-2016-5131
nvd.nist.gov/vuln/detail/CVE-2016-5131
googlechromereleases.blogspot.com/2016/07/stable-channel-update.html
access.redhat.com/security/cve/CVE-2017-15412
cve.org/CVERecord?id=CVE-2017-15412
nvd.nist.gov/vuln/detail/CVE-2017-15412
chromereleases.googleblog.com/2017/12/stable-channel-update-for-desktop.html
access.redhat.com/security/cve/CVE-2017-18258
cve.org/CVERecord?id=CVE-2017-18258
access.redhat.com/security/cve/CVE-2018-14404
cve.org/CVERecord?id=CVE-2018-14404
nvd.nist.gov/vuln/detail/CVE-2018-14404
access.redhat.com/security/cve/CVE-2018-14567
cve.org/CVERecord?id=CVE-2018-14567
nvd.nist.gov/vuln/detail/CVE-2018-14567
suse.com/support/update/announcement/2018/suse-su-20183081-1
bugzilla.suse.com/1088279
bugzilla.suse.com/1088601
bugzilla.suse.com/1102046
bugzilla.suse.com/1105166
suse.com/security/cve/CVE-2017-18258
suse.com/security/cve/CVE-2018-14404
suse.com/security/cve/CVE-2018-14567
suse.com/security/cve/CVE-2018-9251
ubuntu.com/security/CVE-2017-18258
ubuntu.com/security/notices/USN-3739-1
ubuntu.com/security/CVE-2016-9318
ubuntu.com/security/CVE-2017-16932
ubuntu.com/security/CVE-2018-14404
ubuntu.com/security/CVE-2018-14567
Left out here: 51 versions. The JSON record has them.