Every CVE Search/ Get API key

CVE-2017-18258

Uncontrolled resource consumption in nokogiri

6.5 MediumFix available

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

2.73%Up 0.5 points since Apr 14, 2021
90%50%10%1%

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 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 HighCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
nokogiri
RubyGems
before 1.8.2
1.8.2
libxml2
Debian:12
before 2.9.10+dfsg-2
2.9.10+dfsg-2
libxml2
Debian:13
before 2.9.10+dfsg-2
2.9.10+dfsg-2
libxml2
Debian:14
before 2.9.10+dfsg-2
2.9.10+dfsg-2
libxml2
Debian: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
libxml2
Debian: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
nokogiri
RubyGems
before 1.8.2, plus listed versions
1.0.01.0.11.0.21.0.31.0.4
Show 45 moreShow less
1.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
libxml2
Red Hat:enterprise_linux:7::client
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2-debuginfo
Red Hat:enterprise_linux:7::client
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2-python
Red Hat:enterprise_linux:7::client
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
Show 27 moreShow less
Affected packages
PackageAffectedFixed
libxml2-devel
Red Hat:enterprise_linux:7::client
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2-static
Red Hat:enterprise_linux:7::client
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2
Red Hat:enterprise_linux:7::computenode
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2-debuginfo
Red Hat:enterprise_linux:7::computenode
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2-python
Red Hat:enterprise_linux:7::computenode
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2-devel
Red Hat:enterprise_linux:7::computenode
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2-static
Red Hat:enterprise_linux:7::computenode
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2
Red Hat:enterprise_linux:7::server
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2-debuginfo
Red Hat:enterprise_linux:7::server
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2-devel
Red Hat:enterprise_linux:7::server
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2-python
Red Hat:enterprise_linux:7::server
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2-static
Red Hat:enterprise_linux:7::server
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2
Red Hat:enterprise_linux:7::workstation
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2-debuginfo
Red Hat:enterprise_linux:7::workstation
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2-devel
Red Hat:enterprise_linux:7::workstation
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2-python
Red Hat:enterprise_linux:7::workstation
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2-static
Red Hat:enterprise_linux:7::workstation
before 0:2.9.1-6.el7.4
0:2.9.1-6.el7.4
libxml2
SUSE:Linux Enterprise Desktop 12 SP3
before 2.9.4-46.15.1
2.9.4-46.15.1
python-libxml2
SUSE:Linux Enterprise Desktop 12 SP3
before 2.9.4-46.15.1
2.9.4-46.15.1
libxml2
SUSE:Linux Enterprise Software Development Kit 12 SP3
before 2.9.4-46.15.1
2.9.4-46.15.1
libxml2
SUSE:Linux Enterprise Server 12 SP3
before 2.9.4-46.15.1
2.9.4-46.15.1
python-libxml2
SUSE:Linux Enterprise Server 12 SP3
before 2.9.4-46.15.1
2.9.4-46.15.1
libxml2
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
before 2.9.4-46.15.1
2.9.4-46.15.1
python-libxml2
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
before 2.9.4-46.15.1
2.9.4-46.15.1
libxml2
Ubuntu: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 less
2.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
libxml2
Ubuntu: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 less
2.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
libxml2
Ubuntu: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

History
WhenChangedSources
2026-11-02createdCVE List, EUVD, GitHub Advisories, NVD, OSV

References

Show 49 moreShow less
This page doesn't list everything

Left out here: 51 versions. The JSON record has them.

MoveEnter Open