Vulnerability · Published May 3, 2022 · Assigned by mitre
CVE-2022-29824
Medium 6.5
In plain English
A medium-severity security flaw in the libxml2 package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.8% (higher than 90% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)6.5Medium
Exploit odds (30 days)3.8%top 10.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
In libxml2 before 2.9.14, several buffer handling functions in buf.c (xmlBuf*) and tree.c (xmlBuffer*) don't check for integer overflows. This can result in out-of-bounds memory writes. Exploitation requires a victim to open a crafted, multi-gigabyte XML file. Other software using libxml2's buffer functions, for example libxslt through 1.1.35, is affected as well.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | libxml2 | 2.9.14-r0 | ALPINE-CVE-2022-29824 |
| Alpine:v3.21 | libxml2 | 2.9.14-r0 | ALPINE-CVE-2022-29824 |
| Alpine:v3.22 | libxml2 | 2.9.14-r0 | ALPINE-CVE-2022-29824 |
| Alpine:v3.23 | libxml2 | 2.9.14-r0 | ALPINE-CVE-2022-29824 |
| Alpine:v3.24 | libxml2 | 2.9.14-r0 | ALPINE-CVE-2022-29824 |
| Debian:12 | libxml2 | 2.9.14+dfsg-1 | DEBIAN-CVE-2022-29824 |
| Debian:13 | libxml2 | 2.9.14+dfsg-1 | DEBIAN-CVE-2022-29824 |
| Debian:14 | libxml2 | 2.9.14+dfsg-1 | DEBIAN-CVE-2022-29824 |
| Rocky Linux:8 | libxml2 | 0:2.9.7-13.el8_6.1 | RLSA-2022:5317 |
| Rocky Linux:9 | libxml2 | 0:2.9.13-1.el9_0.1 | RLSA-2022:5250 |
| Ubuntu:22.04:LTS | libxml2 | 2.9.13+dfsg-1ubuntu0.1 | USN-5422-1 |
| Ubuntu:22.04:LTS | libxml2 | 2.9.13+dfsg-1ubuntu0.1 | UBUNTU-CVE-2022-29824 |
Affected products (as reported)
References
- https://gitlab.gnome.org/GNOME/libxslt/-/tags
- FEDORA-2022-9136d646e4 vendor-advisory
- FEDORA-2022-be6d83642a vendor-advisory
- [debian-lts-announce] 20220516 [SECURITY] [DLA 3012-1] libxml2 security update mailing-list
- FEDORA-2022-f624aad735 vendor-advisory
- DSA-5142 vendor-advisory
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://gitlab.gnome.org/GNOME/libxml2/-/tags/v2.9.14
- https://gitlab.gnome.org/GNOME/libxml2/-/commit/2554a2408e09f13652049e5ffb0d26196b02ebab
- https://gitlab.gnome.org/GNOME/libxml2/-/commit/6c283d83eccd940bcde15634ac8c7f100e3caefd
- http://packetstormsecurity.com/files/167345/libxml2-xmlBufAdd-Heap-Buffer-Overflow.html
- https://security.netapp.com/advisory/ntap-20220715-0006/
- GLSA-202210-03 vendor-advisory
- http://packetstormsecurity.com/files/169825/libxml2-xmlParseNameComplex-Integer-Overflow.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html