CVE-2017-7376
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.
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
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 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 10.0 High
AV: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 Critical
CVSS: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 Critical
CVSS: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 Critical
CVSS: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 Critical
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
libxml2TuxCare:CentOS:7 |
before 2.9.1-6.el7_9.6.tuxcare.els3 | 2.9.1-6.el7_9.6.tuxcare.els3 |
libxml2-develTuxCare:CentOS:7 |
before 2.9.1-6.el7_9.6.tuxcare.els3 | 2.9.1-6.el7_9.6.tuxcare.els3 |
libxml2-pythonTuxCare:CentOS:7 |
before 2.9.1-6.el7_9.6.tuxcare.els3 | 2.9.1-6.el7_9.6.tuxcare.els3 |
libxml2-staticTuxCare:CentOS:7 |
before 2.9.1-6.el7_9.6.tuxcare.els3 | 2.9.1-6.el7_9.6.tuxcare.els3 |
libxml2Debian:12 |
before 2.9.4+dfsg1-3.1 | 2.9.4+dfsg1-3.1 |
libxml2Debian:13 |
before 2.9.4+dfsg1-3.1 | 2.9.4+dfsg1-3.1 |
libxml2Debian:14 |
before 2.9.4+dfsg1-3.1 | 2.9.4+dfsg1-3.1 |
libxml2Debian:7 |
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 less2.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 |
libxml2Debian:8 |
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 |
libxml2Debian:9 |
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 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libxml2Mageia:5 |
before 2.9.7-1.mga5 | 2.9.7-1.mga5 |
perl-XML-LibXMLMageia:5 |
before 2.12.100-1.2.mga5 | 2.12.100-1.2.mga5 |
libxml2SUSE:Linux Enterprise Software Development Kit 11 SP4 |
before 2.7.6-0.76.1 | 2.7.6-0.76.1 |
libxml2SUSE:Linux Enterprise Server 11 SP4 |
before 2.7.6-0.76.1 | 2.7.6-0.76.1 |
libxml2-pythonSUSE:Linux Enterprise Server 11 SP4 |
before 2.7.6-0.76.4 | 2.7.6-0.76.4 |
libxml2SUSE:Linux Enterprise Server for SAP Applications 11 SP4 |
before 2.7.6-0.76.1 | 2.7.6-0.76.1 |
libxml2-pythonSUSE:Linux Enterprise Server for SAP Applications 11 SP4 |
before 2.7.6-0.76.4 | 2.7.6-0.76.4 |
libxml2Ubuntu: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 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.9 |
2.9.1+dfsg1-3ubuntu4.10 |
libxml2Ubuntu: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 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | brahmstaedt/libxml2-exploit | 2020-06-11 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE 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.1-6.el7_9.6.tuxcare.els3.
References
source.android.com/security/bulletin/2017-06-01
debian.org/security/2017/dsa-3952
git.gnome.org/browse/libxml2/commit?id=5dca9eea1bd4263bfa4d037ab2443de1cd730f7e
android.googlesource.com/platform/external/libxml2/+/51e0cb2e5ec18eaf6fb331bc573ff27b743898f4
securityfocus.com/bid/98877
bugzilla.redhat.com/show_bug.cgi?id=1462216
Show 35 moreShow less
securitytracker.com/id/1038623
cert-portal.siemens.com/productcert/html/ssa-398330.html
nvd.nist.gov/vuln/detail/CVE-2017-7376
github.com/advisories/GHSA-j45j-3c7p-vf8f
errata.tuxcare.com/centos7-els/CLSA-2024-1708417192.html
security-tracker.debian.org/tracker/CVE-2017-7376
advisories.mageia.org/MGASA-2018-0048.html
bugs.mageia.org/show_bug.cgi?id=19695
chromereleases.googleblog.com/2017/10/stable-channel-update-for-desktop.html
chromereleases.googleblog.com/2017/12/stable-channel-update-for-desktop.html
lists.opensuse.org/opensuse-updates/2017-02/msg00055.html
lists.opensuse.org/opensuse-updates/2017-06/msg00022.html
lists.opensuse.org/opensuse-updates/2017-07/msg00000.html
lists.opensuse.org/opensuse-updates/2017-07/msg00040.html
usn.ubuntu.com/usn/usn-3513-1
usn.ubuntu.com/usn/usn-3504-1
suse.com/support/update/announcement/2017/suse-su-20171813-1
bugzilla.suse.com/1024989
bugzilla.suse.com/1044337
bugzilla.suse.com/1044887
bugzilla.suse.com/1044894
suse.com/security/cve/CVE-2017-0663
suse.com/security/cve/CVE-2017-5969
suse.com/security/cve/CVE-2017-7375
suse.com/security/cve/CVE-2017-7376
ubuntu.com/security/CVE-2017-7376
ubuntu.com/security/notices/USN-3424-1
ubuntu.com/security/notices/USN-3424-2
cve.org/CVERecord?id=CVE-2017-7376
ubuntu.com/security/CVE-2017-0663
ubuntu.com/security/CVE-2017-7375
ubuntu.com/security/CVE-2017-9047
ubuntu.com/security/CVE-2017-9048
ubuntu.com/security/CVE-2017-9049
ubuntu.com/security/CVE-2017-9050