{"id":"ALPINE-CVE-2022-40303","details":"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.","modified":"2026-08-27T22:18:01.890398638Z","published":"2022-11-23T00:15:11.007Z","upstream":["CVE-2022-40303"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2022-40303"}],"affected":[{"package":{"name":"libxml2","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/libxml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.14-r2"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-40303.json"}},{"package":{"name":"libxml2","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/libxml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.14-r2"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-40303.json"}},{"package":{"name":"libxml2","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/libxml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.14-r2"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-40303.json"}},{"package":{"name":"libxml2","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/libxml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.14-r2"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-40303.json"}},{"package":{"name":"libxml2","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/libxml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-40303.json"}},{"package":{"name":"libxml2","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/libxml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-40303.json"}},{"package":{"name":"libxml2","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/libxml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-40303.json"}},{"package":{"name":"libxml2","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/libxml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-40303.json"}},{"package":{"name":"libxml2","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/libxml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-40303.json"}},{"package":{"name":"libxml2","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/libxml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-40303.json"}},{"package":{"name":"libxml2","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/libxml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-40303.json"}},{"package":{"name":"libxml2","ecosystem":"Alpine:v3.24","purl":"pkg:apk/alpine/libxml2?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10.3-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-40303.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}