Vulnerabilities / CVE-2017-16931

critical

CVE-2017-16931

libxml2: Mishandling parameter-entity references

Published Modified CWE 119
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Amazon (medium).

Description

parser.c in libxml2 before 2.9.5 mishandles parameter-entity references because the NEXTL macro calls the xmlParserHandlePEReference function in the case of a '%' character in a DTD name.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.4libxml22.9.5-r0
alpine 3.5libxml22.9.5-r0
alpine 3.6libxml22.9.5-r0
amazon linux 1libxml2, libxml2-debuginfo, libxml2-devel and 3 more2.9.1-6.6.42.amzn1
amazon linux 2libxml2, libxml2-debuginfo, libxml2-devel and 2 more2.9.1-6.amzn2.3.3
debian 11libxml22.9.4+dfsg1-3.1
debian 12libxml22.9.4+dfsg1-3.1
debian 13libxml22.9.4+dfsg1-3.1
debian 14libxml22.9.4+dfsg1-3.1
debian 7libxml22.8.0+dfsg1-7+wheezy11
debian 8libxml22.9.1+dfsg1-5+deb8u5
debian 9libxml22.9.4+dfsg1-2.2+deb9u1
Show all 32 entries from 18 sources
SourcePackageFixed in
alpine 3.4libxml22.9.5-r0
alpine 3.5libxml22.9.5-r0
alpine 3.6libxml22.9.5-r0
amazon linux 1libxml22.9.1-6.6.42.amzn1
amazon linux 1libxml2-debuginfo2.9.1-6.6.42.amzn1
amazon linux 1libxml2-devel2.9.1-6.6.42.amzn1
amazon linux 1libxml2-python262.9.1-6.6.42.amzn1
amazon linux 1libxml2-python272.9.1-6.6.42.amzn1
amazon linux 1libxml2-static2.9.1-6.6.42.amzn1
amazon linux 2libxml22.9.1-6.amzn2.3.3
amazon linux 2libxml2-debuginfo2.9.1-6.amzn2.3.3
amazon linux 2libxml2-devel2.9.1-6.amzn2.3.3
amazon linux 2libxml2-python2.9.1-6.amzn2.3.3
amazon linux 2libxml2-static2.9.1-6.amzn2.3.3
debian 11libxml22.9.4+dfsg1-3.1
debian 12libxml22.9.4+dfsg1-3.1
debian 13libxml22.9.4+dfsg1-3.1
debian 14libxml22.9.4+dfsg1-3.1
debian 7libxml22.8.0+dfsg1-7+wheezy11
debian 8libxml22.9.1+dfsg1-5+deb8u5
debian 9libxml22.9.4+dfsg1-2.2+deb9u1
echolibxml22.9.4+dfsg1-3.1
echolibxml2-2.9.12.9.1+e1
Red Hatlibxml2no fix listed
Red Hatlibxml2-develno fix listed
Red Hatlibxml2-pythonno fix listed
Red Hatlibxml2-staticno fix listed
root.io debian 11rootio-libxml22.9.4+dfsg1-3.1
root.io debian 12rootio-libxml22.9.4+dfsg1-3.1
root.io debian 13rootio-libxml22.9.4+dfsg1-3.1
seal Red Hat 7libxml22.9.1-6.el7_9.6+sp999
seal Red Hat 7seal-libxml22.9.1-6.el7_9.6+sp999

References

All 9 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.