CVE-2022-25315
expat: Integer overflow in storeRawNames()
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Amazon, CBL-Mariner, Julia, Photon OS. Rated lower by Red Hat (high), AlmaLinux (high), Bottlerocket (high), Oracle (high), Rocky Linux (high), Ubuntu (medium).
Description
In Expat (aka libexpat) before 2.4.5, there is an integer overflow in storeRawNames.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| amazon linux 1 | expat, expat-debuginfo, expat-devel | 2.1.0-12.26.amzn1 |
| amazon linux 2 | expat, expat-debuginfo, expat-devel and 3 more | 2.1.0-12.amzn2.0.2 and 1 more |
| amazon linux 2022 | expat, expat-debuginfo, expat-debugsource and 2 more | 2.4.7-1.amzn2022.0.1 |
| amazon linux 2023 | expat, expat-debuginfo, expat-debugsource and 2 more | 2.5.0-1.amzn2023.0.2 |
| CBL-Mariner 1.0 | expat | 0:2.4.6-1.cm1 |
| CBL-Mariner 2.0 | expat | 0:2.4.8-1.cm2 |
| julia::Julia Ecosystem Security Advisories | Expat_jll | 2.4.8+0 |
| Photon OS 1.0 | expat | 2.2.9-7.ph1 |
| Photon OS 2.0 | expat | 2.2.9-7.ph2 |
| Photon OS 3.0 | expat | 2.2.9-8.ph3 |
| Photon OS 4.0 | expat, expat-devel, expat-docs and 1 more | 2.2.9-8.ph4 |
| alma 8 | expat, expat-devel, firefox and 3 more | 2.2.5-8.el8_6.2 and 3 more |
Show all 122 entries from 68 sources
| Source | Package | Fixed in |
|---|---|---|
| amazon linux 1 | expat | 2.1.0-12.26.amzn1 |
| amazon linux 1 | expat-debuginfo | 2.1.0-12.26.amzn1 |
| amazon linux 1 | expat-devel | 2.1.0-12.26.amzn1 |
| amazon linux 2 | expat | 2.1.0-12.amzn2.0.2 |
| amazon linux 2 | expat-debuginfo | 2.1.0-12.amzn2.0.2 |
| amazon linux 2 | expat-devel | 2.1.0-12.amzn2.0.2 |
| amazon linux 2 | expat-static | 2.1.0-12.amzn2.0.2 |
| amazon linux 2 | thunderbird | 91.7.0-2.amzn2.0.1 |
| amazon linux 2 | thunderbird-debuginfo | 91.7.0-2.amzn2.0.1 |
| amazon linux 2022 | expat | 2.4.7-1.amzn2022.0.1 |
| amazon linux 2022 | expat-debuginfo | 2.4.7-1.amzn2022.0.1 |
| amazon linux 2022 | expat-debugsource | 2.4.7-1.amzn2022.0.1 |
| amazon linux 2022 | expat-devel | 2.4.7-1.amzn2022.0.1 |
| amazon linux 2022 | expat-static | 2.4.7-1.amzn2022.0.1 |
| amazon linux 2023 | expat | 2.5.0-1.amzn2023.0.2 |
| amazon linux 2023 | expat-debuginfo | 2.5.0-1.amzn2023.0.2 |
| amazon linux 2023 | expat-debugsource | 2.5.0-1.amzn2023.0.2 |
| amazon linux 2023 | expat-devel | 2.5.0-1.amzn2023.0.2 |
| amazon linux 2023 | expat-static | 2.5.0-1.amzn2023.0.2 |
| CBL-Mariner 1.0 | expat | 0:2.4.6-1.cm1 |
| CBL-Mariner 2.0 | expat | 0:2.4.8-1.cm2 |
| julia::Julia Ecosystem Security Advisories | Expat_jll | 2.4.8+0 |
| Photon OS 1.0 | expat | 2.2.9-7.ph1 |
| Photon OS 2.0 | expat | 2.2.9-7.ph2 |
| Photon OS 3.0 | expat | 2.2.9-8.ph3 |
| Photon OS 4.0 | expat | 2.2.9-8.ph4 |
| Photon OS 4.0 | expat-devel | 2.2.9-8.ph4 |
| Photon OS 4.0 | expat-docs | 2.2.9-8.ph4 |
| Photon OS 4.0 | expat-libs | 2.2.9-8.ph4 |
| alma 8 | expat | 2.2.5-8.el8_6.2 |
| alma 8 | expat-devel | 2.2.5-8.el8_6.2 |
| alma 8 | firefox | 91.7.0-3.el8_5.alma |
| alma 8 | mingw32-expat | 2.4.8-1.el8 |
| alma 8 | mingw64-expat | 2.4.8-1.el8 |
| alma 8 | thunderbird | 91.7.0-2.el8_5.alma |
| alpine 3.12 | expat | 2.2.10-r2 |
| alpine 3.13 | expat | 2.2.10-r4 |
| alpine 3.14 | expat | 2.4.5-r0 |
| alpine 3.15 | expat | 2.4.5-r0 |
| alpine 3.16 | expat | 2.4.5-r0 |
| alpine 3.17 | expat | 2.4.5-r0 |
| alpine 3.18 | expat | 2.4.5-r0 |
| alpine 3.19 | expat | 2.4.5-r0 |
| alpine 3.20 | expat | 2.4.5-r0 |
| alpine 3.21 | expat | 2.4.5-r0 |
| alpine 3.22 | expat | 2.4.5-r0 |
| alpine 3.23 | expat | 2.4.5-r0 |
| alpine 3.24 | expat | 2.4.5-r0 |
| alpine edge | expat | 2.4.5-r0 |
| bottlerocket | libexpat | 1.7.0-bf3ca665 |
| debian 10 | expat | 2.2.6-2+deb10u3 |
| debian 11 | expat | 2.2.10-2+deb11u2 |
| debian 11 | libxmltok | no fix listed |
| debian 12 | expat | 2.4.5-1 |
| debian 12 | libxmltok | no fix listed |
| debian 13 | expat | 2.4.5-1 |
| debian 14 | expat | 2.4.5-1 |
| debian 9 | expat | 2.2.0-2+deb9u5 |
| echo | expat | 2.4.5-1 |
| echo | libxmltok | no fix listed |
| Oracle Linux 6 | expat | 2.0.1-13.0.1.el6_8 |
| Oracle Linux 6 | expat-devel | 2.0.1-13.0.1.el6_8 |
| Oracle Linux 7 | expat | 2.1.0-14.0.1.el7_9 |
| Oracle Linux 7 | expat-devel | 2.1.0-14.0.1.el7_9 |
| Oracle Linux 7 | expat-static | 2.1.0-14.0.1.el7_9 |
| Oracle Linux 7 | firefox | 91.7.0-3.0.1.el7_9 |
| Oracle Linux 7 | thunderbird | 91.7.0-2.0.1.el7_9 |
| Oracle Linux 8 | expat | 2.2.5-4.el8_5.3 |
| Oracle Linux 8 | expat-devel | 2.2.5-4.el8_5.3 |
| Oracle Linux 8 | firefox | 91.7.0-3.0.1.el8_5 |
| Oracle Linux 8 | thunderbird | 91.7.0-2.0.1.el8_5 |
| rapidfort debian 12 | libxmltok | 0:1.2-4.1 |
| rapidfort debian 13 | libxmltok | 0:1.2-4.1 |
| rapidfort ubuntu 20.04 | matanza | no fix listed |
| rapidfort ubuntu 20.04 | thunderbird | no fix listed |
| rapidfort ubuntu 22.04 | matanza | no fix listed |
| rapidfort ubuntu 22.04 | thunderbird | no fix listed |
| rapidfort ubuntu 24.04 | matanza | no fix listed |
| rapidfort ubuntu 24.04 | thunderbird | no fix listed |
| Red Hat | firefox:flatpak::firefox | no fix listed |
| rocky 8 | expat | 2.2.5-4.el8_5.3 |
| rocky 8 | expat-devel | 2.2.5-4.el8_5.3 |
| rocky 8 | firefox | 91.7.0-3.el8_5 |
| rocky 8 | thunderbird | 91.7.0-2.el8_5 |
| root.io debian 11 | rootio-expat | 2.2.10-2+deb11u2 |
| root.io debian 12 | rootio-expat | 2.4.5-1 |
| root.io debian 13 | rootio-expat | 2.4.5-1 |
| seal debian | expat | 2.2.10-2+deb11u5+sp999 |
| seal debian | seal-expat | 2.2.10-2+deb11u5+sp999 |
| seal Red Hat 6 | expat | 2.0.1-15.el6_10+sp999 |
| seal Red Hat 6 | seal-expat | 2.0.1-15.el6_10+sp999 |
| seal Red Hat 7 | expat | 2.1.0-15.el7_9+sp999 |
| seal Red Hat 7 | seal-expat | 2.1.0-15.el7_9+sp999 |
| seal Red Hat 8 | expat | 2.2.5-16.el8_10+sp999, 2.2.5-4.0.1.el8_5.3+sp999 |
| seal Red Hat 8 | seal-expat | 2.2.5-16.el8_10+sp999, 2.2.5-4.0.1.el8_5.3+sp999 |
| ubuntu 14.04-ESM | expat | 2.1.0-4ubuntu1.4+esm6 |
| ubuntu 16.04-ESM | expat | 2.1.0-7ubuntu0.16.04.5+esm5 |
| ubuntu 18.04 | expat | 2.2.5-3ubuntu0.7 |
| ubuntu 18.04-ESM | expat | 2.2.5-3ubuntu0.7 |
| ubuntu 20.04 | expat | 2.2.9-1ubuntu0.4 |
| ubuntu 20.04-ESM | expat | 2.2.9-1ubuntu0.4 |
| ubuntu 21.10 | expat | 2.4.1-2ubuntu0.3 |
| ubuntu 22.04 | expat | 2.4.5-2 |
| ubuntu 22.04 | firefox | 1:1snap1-0ubuntu1 |
| ubuntu 22.10 | expat | 2.4.5-2 |
| ubuntu 22.10 | firefox | 1:1snap1-0ubuntu1 |
| ubuntu 23.04 | expat | 2.4.5-2 |
| ubuntu 23.04 | firefox | 1:1snap1-0ubuntu1 |
| ubuntu 23.10 | expat | 2.4.5-2 |
| ubuntu 23.10 | firefox | 1:1snap1-0ubuntu1 |
| ubuntu 24.04 | expat | 2.4.5-2 |
| ubuntu 24.04 | firefox | 1:1snap1-0ubuntu1 |
| ubuntu 24.10 | expat | 2.4.5-2 |
| ubuntu 24.10 | firefox | 1:1snap1-0ubuntu1 |
| ubuntu 25.04 | expat | 2.4.5-2 |
| ubuntu 25.04 | firefox | 1:1snap1-0ubuntu1 |
| ubuntu 25.10 | expat | 2.4.5-2 |
| ubuntu 25.10 | firefox | 1:1snap1-0ubuntu1 |
| ubuntu 26.04 | expat | 2.4.5-2 |
| ubuntu 26.04 | firefox | 1:1snap1-0ubuntu1 |
| ubuntu 26.10 | expat | 2.4.5-2 |
| ubuntu 26.10 | firefox | 1:1snap1-0ubuntu1 |
References
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25315
- http://www.openwall.com/lists/oss-security/2022/02/19/1
- https://access.redhat.com/errata/RHSA-2022:0951
- https://access.redhat.com/errata/RHSA-2022:7811
- https://access.redhat.com/security/cve/CVE-2022-25315
- https://blog.hartwork.org/posts/expat-2-4-5-released/
- https://bugzilla.redhat.com/2048356
- https://bugzilla.redhat.com/2056350
All 56 references
- https://bugzilla.redhat.com/2056354
- https://bugzilla.redhat.com/2056363
- https://bugzilla.redhat.com/2056366
- https://bugzilla.redhat.com/2056370
- https://bugzilla.redhat.com/show_bug.cgi?id=2044451
- https://bugzilla.redhat.com/show_bug.cgi?id=2044455
- https://bugzilla.redhat.com/show_bug.cgi?id=2044457
- https://bugzilla.redhat.com/show_bug.cgi?id=2044464
- https://bugzilla.redhat.com/show_bug.cgi?id=2044467
- https://bugzilla.redhat.com/show_bug.cgi?id=2044479
- https://bugzilla.redhat.com/show_bug.cgi?id=2044484
- https://bugzilla.redhat.com/show_bug.cgi?id=2044488
- https://bugzilla.redhat.com/show_bug.cgi?id=2044613
- https://bugzilla.redhat.com/show_bug.cgi?id=2056363
- https://bugzilla.redhat.com/show_bug.cgi?id=2056366
- https://bugzilla.redhat.com/show_bug.cgi?id=2056370
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-484086.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-484086.pdf
- https://creativecommons.org/licenses/by/4.0/
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45960
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-46143
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22822
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22823
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22824
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22825
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22826
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22827
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-23852
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25235
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25236
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25315
- https://errata.almalinux.org/8/ALSA-2022-7811.html
- https://errata.rockylinux.org/RLSA-2022:0951
- https://github.com/bottlerocket-os/bottlerocket/security/advisories/GHSA-grm4-6gc8-2424
- https://github.com/libexpat/libexpat/pull/559
- https://linux.oracle.com/cve/CVE-2022-25315.html
- https://linux.oracle.com/errata/ELSA-2022-9359.html
- https://lists.debian.org/debian-lts-announce/2022/03/msg00007.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3UFRBA3UQVIQKXTBUQXDWQOVWNBKLERU/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Y27XO3JMKAOMQZVPS3B4MJGEAHCZF5OM/
- https://nvd.nist.gov/vuln/detail/CVE-2022-25315
- https://security.gentoo.org/glsa/202209-24
- https://security.netapp.com/advisory/ntap-20220303-0008/
- https://ubuntu.com/security/notices/USN-5320-1
- https://www.cve.org/CVERecord?id=CVE-2022-25315
- https://www.debian.org/security/2022/dsa-5085
- https://www.oracle.com/security-alerts/cpuapr2022.html