Vulnerabilities / CVE-2022-23852

critical

CVE-2022-23852

expat: Integer overflow in function XML_GetBuffer

Published Modified CWE 190
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.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Julia9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Amazon, CBL-Mariner, Julia, Photon OS. Rated lower by AlmaLinux (high), Oracle (high), Rocky Linux (high), Red Hat (medium), Bottlerocket (medium), Ubuntu (medium).

Description

Expat (aka libexpat) before 2.4.4 has a signed integer overflow in XML_GetBuffer, for configurations with a nonzero XML_CONTEXT_BYTES.

Affected packages and fixed versions

SourcePackageFixed in
amazon linux 1expat, expat-debuginfo, expat-devel2.1.0-12.25.amzn1
amazon linux 2expat, expat-debuginfo, expat-devel and 1 more2.1.0-12.amzn2.0.1
amazon linux 2022expat, expat-debuginfo, expat-debugsource and 2 more2.4.7-1.amzn2022.0.1
amazon linux 2023expat, expat-debuginfo, expat-debugsource and 2 more2.5.0-1.amzn2023.0.2
CBL-Mariner 1.0expat0:2.4.4-1.cm1
CBL-Mariner 2.0expat0:2.4.8-1.cm2
julia::Julia Ecosystem Security AdvisoriesExpat_jll2.4.4+0
Photon OS 1.0expat2.2.9-4.ph1
Photon OS 2.0expat2.2.9-4.ph2
Photon OS 3.0expat2.2.9-6.ph3
Photon OS 4.0expat, expat-devel, expat-docs and 1 more2.2.9-5.ph4
alma 8expat, expat-devel2.2.5-8.el8_6.2
Show all 129 entries from 68 sources
SourcePackageFixed in
amazon linux 1expat2.1.0-12.25.amzn1
amazon linux 1expat-debuginfo2.1.0-12.25.amzn1
amazon linux 1expat-devel2.1.0-12.25.amzn1
amazon linux 2expat2.1.0-12.amzn2.0.1
amazon linux 2expat-debuginfo2.1.0-12.amzn2.0.1
amazon linux 2expat-devel2.1.0-12.amzn2.0.1
amazon linux 2expat-static2.1.0-12.amzn2.0.1
amazon linux 2022expat2.4.7-1.amzn2022.0.1
amazon linux 2022expat-debuginfo2.4.7-1.amzn2022.0.1
amazon linux 2022expat-debugsource2.4.7-1.amzn2022.0.1
amazon linux 2022expat-devel2.4.7-1.amzn2022.0.1
amazon linux 2022expat-static2.4.7-1.amzn2022.0.1
amazon linux 2023expat2.5.0-1.amzn2023.0.2
amazon linux 2023expat-debuginfo2.5.0-1.amzn2023.0.2
amazon linux 2023expat-debugsource2.5.0-1.amzn2023.0.2
amazon linux 2023expat-devel2.5.0-1.amzn2023.0.2
amazon linux 2023expat-static2.5.0-1.amzn2023.0.2
CBL-Mariner 1.0expat0:2.4.4-1.cm1
CBL-Mariner 2.0expat0:2.4.8-1.cm2
julia::Julia Ecosystem Security AdvisoriesExpat_jll2.4.4+0
Photon OS 1.0expat2.2.9-4.ph1
Photon OS 2.0expat2.2.9-4.ph2
Photon OS 3.0expat2.2.9-6.ph3
Photon OS 4.0expat2.2.9-5.ph4
Photon OS 4.0expat-devel2.2.9-5.ph4
Photon OS 4.0expat-docs2.2.9-5.ph4
Photon OS 4.0expat-libs2.2.9-5.ph4
alma 8expat2.2.5-8.el8_6.2
alma 8expat-devel2.2.5-8.el8_6.2
alpine 3.12expat2.2.10-r1
alpine 3.13expat2.2.10-r3
alpine 3.14expat2.4.4-r0
alpine 3.15expat2.4.4-r0
alpine 3.15qt5-qtwebengine5.15.3_git20211127-r4
alpine 3.16expat2.4.4-r0
alpine 3.16qt5-qtwebengine5.15.3_git20220121-r4
alpine 3.17expat2.4.4-r0
alpine 3.17qt5-qtwebengine5.15.3_git20220121-r4
alpine 3.18expat2.4.4-r0
alpine 3.18qt5-qtwebengine5.15.3_git20220121-r4
alpine 3.19expat2.4.4-r0
alpine 3.19qt5-qtwebengine5.15.3_git20220121-r4
alpine 3.20expat2.4.4-r0
alpine 3.20qt5-qtwebengine5.15.3_git20220121-r4
alpine 3.21expat2.4.4-r0
alpine 3.21qt5-qtwebengine5.15.3_git20220121-r4
alpine 3.22expat2.4.4-r0
alpine 3.22qt5-qtwebengine5.15.3_git20220121-r4
alpine 3.23expat2.4.4-r0
alpine 3.23qt5-qtwebengine5.15.3_git20220121-r4
alpine 3.24expat2.4.4-r0
alpine edgeexpat2.4.4-r0
bottlerocketlibexpat1.6.0-9749af99
debian 10expat2.2.6-2+deb10u2
debian 11expat2.2.10-2+deb11u1
debian 11libxmltokno fix listed
debian 12expat2.4.3-2
debian 12libxmltokno fix listed
debian 13expat2.4.3-2
debian 14expat2.4.3-2
debian 9expat2.2.0-2+deb9u5
echoexpat2.4.3-2
echolibxmltokno fix listed
Oracle Linux 7expat2.1.0-14.0.1.el7_9
Oracle Linux 7expat-devel2.1.0-14.0.1.el7_9
Oracle Linux 7expat-static2.1.0-14.0.1.el7_9
Oracle Linux 8expat2.2.5-4.el8_5.3
Oracle Linux 8expat-devel2.2.5-4.el8_5.3
rapidfort debian 12libxmltok0:1.2-4.1
rapidfort debian 13libxmltok0:1.2-4.1
rapidfort Oracle Linux 9expat0:2.2.10-12.el9_0
rapidfort ubuntu 20.04matanzano fix listed
rapidfort ubuntu 20.04thunderbirdno fix listed
rapidfort ubuntu 22.04matanzano fix listed
rapidfort ubuntu 22.04thunderbirdno fix listed
rapidfort ubuntu 24.04matanzano fix listed
rapidfort ubuntu 24.04thunderbirdno fix listed
Red Hatexpatno fix listed
Red Hatexpat-develno fix listed
Red Hatfirefoxno fix listed
Red Hatthunderbirdno fix listed
Red Hatxulrunnerno fix listed
Red Hatxulrunner-develno fix listed
rocky 8expat2.2.5-4.el8_5.3
rocky 8expat-devel2.2.5-4.el8_5.3
root.io debian 11rootio-expat2.2.10-2+deb11u1
root.io debian 12rootio-expat2.4.3-2
root.io debian 13rootio-expat2.4.3-2
seal debianexpat2.2.10-2+deb11u5+sp999
seal debianseal-expat2.2.10-2+deb11u5+sp999
seal Red Hat 6expat2.0.1-15.el6_10+sp999
seal Red Hat 6seal-expat2.0.1-15.el6_10+sp999
seal Red Hat 7expat2.1.0-15.el7_9+sp999
seal Red Hat 7seal-expat2.1.0-15.el7_9+sp999
seal Red Hat 8expat2.2.5-16.el8_10+sp999, 2.2.5-4.0.1.el8_5.3+sp999
seal Red Hat 8seal-expat2.2.5-16.el8_10+sp999, 2.2.5-4.0.1.el8_5.3+sp999
ubuntu 14.04-ESMexpat2.1.0-4ubuntu1.4+esm4
ubuntu 16.04-ESMexpat2.1.0-7ubuntu0.16.04.5+esm2
ubuntu 18.04expat2.2.5-3ubuntu0.4
ubuntu 18.04-ESMcoin3no fix listed
ubuntu 18.04-ESMexpat2.2.5-3ubuntu0.4
ubuntu 18.04-ESMtdomno fix listed
ubuntu 18.04-ESMvnc4no fix listed
ubuntu 18.04-ESMwbxml2no fix listed
ubuntu 20.04expat2.2.9-1ubuntu0.2
ubuntu 20.04-ESMexpat2.2.9-1ubuntu0.2
ubuntu 20.04-ESMtdomno fix listed
ubuntu 20.04-ESMwbxml2no fix listed
ubuntu 21.10expat2.4.1-2ubuntu0.1
ubuntu 22.04expat2.4.3-2
ubuntu 22.04firefox1:1snap1-0ubuntu1
ubuntu 22.10expat2.4.3-2
ubuntu 22.10firefox1:1snap1-0ubuntu1
ubuntu 23.04expat2.4.3-2
ubuntu 23.04firefox1:1snap1-0ubuntu1
ubuntu 23.10expat2.4.3-2
ubuntu 23.10firefox1:1snap1-0ubuntu1
ubuntu 24.04expat2.4.3-2
ubuntu 24.04firefox1:1snap1-0ubuntu1
ubuntu 24.10expat2.4.3-2
ubuntu 24.10firefox1:1snap1-0ubuntu1
ubuntu 25.04expat2.4.3-2
ubuntu 25.04firefox1:1snap1-0ubuntu1
ubuntu 25.10expat2.4.3-2
ubuntu 25.10firefox1:1snap1-0ubuntu1
ubuntu 26.04expat2.4.3-2
ubuntu 26.04firefox1:1snap1-0ubuntu1
ubuntu 26.10expat2.4.3-2
ubuntu 26.10firefox1:1snap1-0ubuntu1

References

All 58 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.