Vulnerability · Published Nov 22, 2022 · Assigned by mitre
CVE-2022-40303
High 7.5
In plain English
A high-severity integer overflow in the libxml2 package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 41.4% (higher than 99% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)41.4%top 1.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
An issue was discovered in libxml2 before 2.10.3. When parsing a multi-gigabyte XML document with the XML_PARSE_HUGE parser option enabled, several integer counters can overflow. This results in an attempt to access an array at a negative 2GB offset, typically leading to a segmentation fault.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | libxml2 | 2.9.7-15.el8_7.1 | ALSA-2023:0173 |
| AlmaLinux:9 | libxml2 | 2.9.13-3.el9_1 | ALSA-2023:0338 |
| AlmaLinux:8 | libxml2-devel | 2.9.7-15.el8_7.1 | ALSA-2023:0173 |
| AlmaLinux:9 | libxml2-devel | 2.9.13-3.el9_1 | ALSA-2023:0338 |
| AlmaLinux:8 | python3-libxml2 | 2.9.7-15.el8_7.1 | ALSA-2023:0173 |
| AlmaLinux:9 | python3-libxml2 | 2.9.13-3.el9_1 | ALSA-2023:0338 |
| Alpine:v3.20 | libxml2 | 2.10.3-r0 | ALPINE-CVE-2022-40303 |
| Alpine:v3.21 | libxml2 | 2.10.3-r0 | ALPINE-CVE-2022-40303 |
| Alpine:v3.22 | libxml2 | 2.10.3-r0 | ALPINE-CVE-2022-40303 |
| Alpine:v3.23 | libxml2 | 2.10.3-r0 | ALPINE-CVE-2022-40303 |
| Alpine:v3.24 | libxml2 | 2.10.3-r0 | ALPINE-CVE-2022-40303 |
| Debian:12 | libxml2 | 2.9.14+dfsg-1.1 | DEBIAN-CVE-2022-40303 |
| Debian:13 | libxml2 | 2.9.14+dfsg-1.1 | DEBIAN-CVE-2022-40303 |
| Debian:14 | libxml2 | 2.9.14+dfsg-1.1 | DEBIAN-CVE-2022-40303 |
| Rocky Linux:8 | libxml2 | 0:2.9.7-15.el8_7.1 | RLSA-2023:0173 |
| Rocky Linux:9 | libxml2 | 0:2.9.13-3.el9_1 | RLSA-2023:0338 |
| Ubuntu:22.04:LTS | libxml2 | 2.9.13+dfsg-1ubuntu0.2 | USN-5760-1 |
| Ubuntu:22.04:LTS | libxml2 | 2.9.13+dfsg-1ubuntu0.2 | UBUNTU-CVE-2022-40303 |
Affected products (as reported)
Weakness: CWE-190 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://gitlab.gnome.org/GNOME/libxml2/-/tags/v2.10.3
- https://gitlab.gnome.org/GNOME/libxml2/-/commit/c846986356fc149915a74972bf198abc266bc2c0
- https://security.netapp.com/advisory/ntap-20221209-0003/
- https://support.apple.com/kb/HT213534
- https://support.apple.com/kb/HT213533
- https://support.apple.com/kb/HT213531
- https://support.apple.com/kb/HT213536
- https://support.apple.com/kb/HT213535
- 20221220 APPLE-SA-2022-12-13-2 iOS 15.7.2 and iPadOS 15.7.2 mailing-list
- 20221220 APPLE-SA-2022-12-13-6 macOS Big Sur 11.7.2 mailing-list
- 20221220 APPLE-SA-2022-12-13-7 tvOS 16.2 mailing-list
- 20221220 APPLE-SA-2022-12-13-5 macOS Monterey 12.6.2 mailing-list
- 20221220 APPLE-SA-2022-12-13-8 watchOS 9.2 mailing-list
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-556635.html
- https://cert-portal.siemens.com/productcert/html/ssa-625862.html
- https://cert-portal.siemens.com/productcert/html/ssa-337522.html
- https://cert-portal.siemens.com/productcert/html/ssa-341067.html
- https://cert-portal.siemens.com/productcert/html/ssa-769027.html