Every CVE Search/ Get API key

CVE-2017-7376

Buffer overflow in libxml2 allows remote attackers to execute arbitrary code by leveraging an...

9.8 CriticalPublic exploitFix available

Buffer overflow in libxml2 allows remote attackers to execute arbitrary code by leveraging an incorrect limit for port values when handling redirects.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

23.2%Up 21.6 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 9.8

Buffer overflow in libxml2 allows remote attackers to execute arbitrary code by leveraging an incorrect limit for port values when handling redirects.

Record
CVE-2017-7376
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
10.0 HighAV:N/AC:L/Au:N/C:C/I:C/A:C
Weakness
CWE-119
Updated
2026-11-02
CVE List No score

Buffer overflow in libxml2 allows remote attackers to execute arbitrary code by leveraging an incorrect limit for port values when handling redirects.

Record
CVE-2017-7376
Updated
2026-11-02
EUVDEUVD-2017-16403 No score

Buffer overflow in libxml2 allows remote attackers to execute arbitrary code by leveraging an incorrect limit for port values when handling redirects.

Record
EUVD-2017-16403
Updated
2026-11-02
GitHub AdvisoriesGHSA-j45j-3c7p-vf8f 9.8

Buffer overflow in libxml2 allows remote attackers to execute arbitrary code by leveraging an...

Buffer overflow in libxml2 allows remote attackers to execute arbitrary code by leveraging an incorrect limit for port values when handling redirects.

Record
GHSA-j45j-3c7p-vf8f
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-119
Updated
2026-11-02
OSV 9.8

Buffer overflow in libxml2 allows remote attackers to execute arbitrary code by leveraging an incorrect limit for port values when handling redirects.

Record
CVE-2017-7376
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2017-7376 9.8

Buffer overflow in libxml2 allows remote attackers to execute arbitrary code by leveraging an incorrect limit for port values when handling redirects.

Record
DEBIAN-CVE-2017-7376
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 5 moreShow less
OSVUBUNTU-CVE-2017-7376 9.8

Buffer overflow in libxml2 allows remote attackers to execute arbitrary code by leveraging an incorrect limit for port values when handling redirects.

Record
UBUNTU-CVE-2017-7376
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVCLSA-2024-1708417192 No score

libxml2: Fix of 3 CVEs

  • CVE-2017-7375: add validation for parsed entity references
  • CVE-2017-7376: fix buffer overflow in URL handling
  • CVE-2017-8872: free input buffer in xmlHaltParser
Record
CLSA-2024-1708417192
Updated
2026-11-02
OSVMGASA-2018-0048 No score

Updated libxml2 & perl-XML-LibXML packages fix security vulnerabilities

Use-after-free error could lead to crash (CVE-2016-4658).

Use-after-free vulnerability in libxml2 through 2.9.4 allows remote attackers to cause a denial of service or possibly have unspecified other impact via vectors related to the XPointer range-to function (CVE-2016-5131).

libxml2 2.9.4 and earlier does not offer a flag directly indicating that the current document may be read but other files may not be opened, which makes it easier for remote attackers to conduct XML External Entity (XXE) attacks via a crafted document (CVE-2016-9318).

Heap buffer overflow in xmlAddID (CVE-2017-0663).

Integer overflow in memory debug code in libxml2 before 2.9.5 (CVE-2017-5130).

NULL pointer deref in xmlDumpElementContent (CVE-2017-5969).

Prevent unwanted external entity reference (CVE-2017-7375).

Increase buffer space for port in HTTP redirect support (CVE-2017-7376).

The function xmlSnprintfElementContent in valid.c was vulnerable to a stack buffer overflow (CVE-2017-9047, CVE-2017-9048).

The function xmlDictComputeFastKey in dict.c was vulnerable to a heap-based buffer over-read (CVE-2017-9049).

The function xmlDictAddString was vulnerable to a heap-based buffer over-read (CVE-2017-9050).

It was discovered that libxml2 incorrecty handled certain files. An attacker could use this issue with specially constructed XML data to cause libxml2 to consume resources, leading to a denial of service (CVE-2017-15412).

Wei Lei discovered that libxml2 incorrecty handled certain parameter entities. An attacker could use this issue with specially constructed XML data to cause libxml2 to consume resources, leading to a denial of service (CVE-2017-16932).

The libxml2 package has been updated to version 2.9.7 to fix these issues and several other bugs.

Record
MGASA-2018-0048
Updated
2026-11-02
OSVSUSE-SU-2017:1813-1 No score

Security update for libxml2

This update for libxml2 fixes the following issues:

Security issues fixed:

  • CVE-2017-0663: Fixed a heap buffer overflow in xmlAddID (bsc#1044337)
  • CVE-2017-5969: Fixed a NULL pointer deref in xmlDumpElementContent (bsc#1024989)
  • CVE-2017-7375: Prevented an unwanted external entity reference (bsc#1044894)
  • CVE-2017-7376: Increase buffer space for port in HTTP redirect support (bsc#1044887)
Record
SUSE-SU-2017:1813-1
Updated
2026-11-02
OSVUSN-3424-1 No score

libxml2 vulnerabilities

It was discovered that a type confusion error existed in libxml2. An attacker could use this to specially construct XML data that could cause a denial of service or possibly execute arbitrary code. (CVE-2017-0663)

It was discovered that libxml2 did not properly validate parsed entity references. An attacker could use this to specially construct XML data that could expose sensitive information. (CVE-2017-7375)

It was discovered that a buffer overflow existed in libxml2 when handling HTTP redirects. An attacker could use this to specially construct XML data that could cause a denial of service or possibly execute arbitrary code. (CVE-2017-7376)

Marcel Böhme and Van-Thuan Pham discovered a buffer overflow in libxml2 when handling elements. An attacker could use this to specially construct XML data that could cause a denial of service or possibly execute arbitrary code. (CVE-2017-9047)

Marcel Böhme and Van-Thuan Pham discovered a buffer overread in libxml2 when handling elements. An attacker could use this to specially construct XML data that could cause a denial of service. (CVE-2017-9048)

Marcel Böhme and Van-Thuan Pham discovered multiple buffer overreads in libxml2 when handling parameter-entity references. An attacker could use these to specially construct XML data that could cause a denial of service. (CVE-2017-9049, CVE-2017-9050)

Record
USN-3424-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libxml2
TuxCare:CentOS:7
From an advisory covering 3 CVEs
before 2.9.1-6.el7_9.6.tuxcare.els3
2.9.1-6.el7_9.6.tuxcare.els3
libxml2-devel
TuxCare:CentOS:7
From an advisory covering 3 CVEs
before 2.9.1-6.el7_9.6.tuxcare.els3
2.9.1-6.el7_9.6.tuxcare.els3
libxml2-python
TuxCare:CentOS:7
From an advisory covering 3 CVEs
before 2.9.1-6.el7_9.6.tuxcare.els3
2.9.1-6.el7_9.6.tuxcare.els3
libxml2-static
TuxCare:CentOS:7
From an advisory covering 3 CVEs
before 2.9.1-6.el7_9.6.tuxcare.els3
2.9.1-6.el7_9.6.tuxcare.els3
libxml2
Debian:12
before 2.9.4+dfsg1-3.1
2.9.4+dfsg1-3.1
libxml2
Debian:13
before 2.9.4+dfsg1-3.1
2.9.4+dfsg1-3.1
libxml2
Debian:14
before 2.9.4+dfsg1-3.1
2.9.4+dfsg1-3.1
libxml2
Debian:7
From an advisory covering 2 CVEs
before 2.8.0+dfsg1-7+wheezy9, plus listed versions
2.8.0+dfsg1-7+nmu12.8.0+dfsg1-7+nmu22.8.0+dfsg1-7+nmu32.8.0+dfsg1-7+wheezy12.8.0+dfsg1-7+wheezy2
Show 6 moreShow less
2.8.0+dfsg1-7+wheezy32.8.0+dfsg1-7+wheezy42.8.0+dfsg1-7+wheezy52.8.0+dfsg1-7+wheezy62.8.0+dfsg1-7+wheezy72.8.0+dfsg1-7+wheezy8
2.8.0+dfsg1-7+wheezy9
libxml2
Debian:8
From an advisory covering 7 CVEs
before 2.9.1+dfsg1-5+deb8u5, 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+deb8u4
2.9.1+dfsg1-5+deb8u5
libxml2
Debian:9
From an advisory covering 7 CVEs
before 2.9.4+dfsg1-2.2+deb9u1, plus listed versions
2.9.4+dfsg1-2.2
2.9.4+dfsg1-2.2+deb9u1
Show 11 moreShow less
Affected packages
PackageAffectedFixed
libxml2
Mageia:5
From an advisory covering 14 CVEs
before 2.9.7-1.mga5
2.9.7-1.mga5
perl-XML-LibXML
Mageia:5
From an advisory covering 14 CVEs
before 2.12.100-1.2.mga5
2.12.100-1.2.mga5
libxml2
SUSE:Linux Enterprise Software Development Kit 11 SP4
From an advisory covering 4 CVEs
before 2.7.6-0.76.1
2.7.6-0.76.1
libxml2
SUSE:Linux Enterprise Server 11 SP4
From an advisory covering 4 CVEs
before 2.7.6-0.76.1
2.7.6-0.76.1
libxml2-python
SUSE:Linux Enterprise Server 11 SP4
From an advisory covering 4 CVEs
before 2.7.6-0.76.4
2.7.6-0.76.4
libxml2
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
From an advisory covering 4 CVEs
before 2.7.6-0.76.1
2.7.6-0.76.1
libxml2-python
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
From an advisory covering 4 CVEs
before 2.7.6-0.76.4
2.7.6-0.76.4
libxml2
Ubuntu:14.04:LTS
before 2.9.1+dfsg1-3ubuntu4.10, 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 7 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.9
2.9.1+dfsg1-3ubuntu4.10
libxml2
Ubuntu:16.04:LTS
before 2.9.3+dfsg1-1ubuntu0.3, plus listed versions
2.9.2+zdfsg1-42.9.2+zdfsg1-4ubuntu12.9.2+zdfsg1-4ubuntu22.9.2+zdfsg1-4ubuntu32.9.3+dfsg1-12.9.3+dfsg1-1ubuntu0.12.9.3+dfsg1-1ubuntu0.2
2.9.3+dfsg1-1ubuntu0.3
libxml2
Ubuntu:14.04:LTS
From an advisory covering 7 CVEs
before 2.9.1+dfsg1-3ubuntu4.10, 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 7 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.9
2.9.1+dfsg1-3ubuntu4.10
libxml2
Ubuntu:16.04:LTS
From an advisory covering 7 CVEs
before 2.9.3+dfsg1-1ubuntu0.3, plus listed versions
2.9.2+zdfsg1-42.9.2+zdfsg1-4ubuntu12.9.2+zdfsg1-4ubuntu22.9.2+zdfsg1-4ubuntu32.9.3+dfsg1-12.9.3+dfsg1-1ubuntu0.12.9.3+dfsg1-1ubuntu0.2
2.9.3+dfsg1-1ubuntu0.3

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubbrahmstaedt/libxml2-exploit2020-06-11

History

History
RecordedChangedSources
affected, facts
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2017-7376 is a critical vulnerability (CVSS 9.8) in Xmlsoft Libxml2, published June 21, 2017. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 23.2%, the 97th percentile. Fixed in libxml2 2.9.4+dfsg1-3.1.

References

Show 35 moreShow less
MoveEnter Open