CVE-2022-23852: Integer Overflow

Published Jan 23, 2022
·
Updated

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

Other sources

Expat (aka libexpat) could allow a remote attacker to execute arbitrary code on the system, caused by an integer overflow in the XMLGetBuffer function. By sending a specially-crafted request, an attacker could exploit this vulnerability to execute arbitrary code on the system.

— IBM

expat (libexpat) is susceptible to a software flaw that causes process interruption. When processing a large number of prefixed XML attributes on a single tag can libexpat can terminate unexpectedly due to integer overflow. The highest threat from this vulnerability is to availability, confidentiality and integrity.

In XMLGetBuffer of xmlparse.c, there is a possible out of bounds write due to a missing bounds check. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.

— OSV

Affected Software

47 affected componentsFixes available
redhat/expat<0:2.1.0-14.el7_9
0:2.1.0-14.el7_9
redhat/expat<0:2.2.5-4.el8_5.3
0:2.2.5-4.el8_5.3
redhat/expat<0:2.2.5-4.el8_4.3
0:2.2.5-4.el8_4.3
IBM Cognos Analytics<=12.0.0-12.0.3
IBM Cognos Analytics<=11.2.0-11.2.4 FP4
Libexpat Project Libexpat<2.4.4
NetApp Clustered Data ONTAP
NetApp OnCommand Workflow Automation
Tenable Nessus<8.15.3
Tenable Nessus>=10.0.0<10.1.1
Oracle Communications Metasolv Solution=6.3.1
Debian Debian Linux=9.0
Siemens SINEMA Remote Connect Server<3.1
redhat/expat<2.4.4
2.4.4
Google Android
android/platform/external/expat>=10:0<10:2022-09-01
10:2022-09-01
android/platform/external/expat>=11:0<11:2022-09-01
11:2022-09-01
android/platform/external/expat>=12:0<12:2022-09-01
12:2022-09-01
android/platform/external/expat>=12L:0<12L:2022-09-01
12L:2022-09-01
debian/expat<2.4.3-2
2.4.3-2
debian/expat<2.4.3-2
2.4.3-2
debian/expat<2.4.3-2
2.4.3-2
debian/libxmltok*
debian/expat
2.5.0-1+deb12u22.5.0-1+deb12u52.8.3-1~deb13u12.9.0-1~deb13u12.9.0-12.10.0-1
debian/libxmltok<=1.2-4
alpine/expat<2.2.10-r1
2.2.10-r1
alpine/expat<2.2.10-r3
2.2.10-r3
alpine/expat<2.4.4-r0
2.4.4-r0
alpine/expat<2.4.4-r0
2.4.4-r0
alpine/expat<2.4.4-r0
2.4.4-r0
alpine/expat<2.4.4-r0
2.4.4-r0
alpine/expat<2.4.4-r0
2.4.4-r0
alpine/expat<2.4.4-r0
2.4.4-r0
alpine/expat<2.4.4-r0
2.4.4-r0
alpine/expat<2.4.4-r0
2.4.4-r0
alpine/expat<2.4.4-r0
2.4.4-r0
alpine/expat<2.4.4-r0
2.4.4-r0
alpine/expat<2.4.4-r0
2.4.4-r0
alpine/qt5-qtwebengine<5.15.3_git20211127-r4
5.15.3_git20211127-r4
alpine/qt5-qtwebengine<5.15.3_git20220121-r4
5.15.3_git20220121-r4
alpine/qt5-qtwebengine<5.15.3_git20220121-r4
5.15.3_git20220121-r4
alpine/qt5-qtwebengine<5.15.3_git20220121-r4
5.15.3_git20220121-r4
alpine/qt5-qtwebengine<5.15.3_git20220121-r4
5.15.3_git20220121-r4
alpine/qt5-qtwebengine<5.15.3_git20220121-r4
5.15.3_git20220121-r4
alpine/qt5-qtwebengine<5.15.3_git20220121-r4
5.15.3_git20220121-r4
alpine/qt5-qtwebengine<5.15.3_git20220121-r4
5.15.3_git20220121-r4
alpine/qt5-qtwebengine<5.15.3_git20220121-r4
5.15.3_git20220121-r4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/expat to a version that resolves this vulnerability.

    Fixed in 0:2.1.0-14.el7_9
  2. Upgrade

    Upgrade redhat/expat to a version that resolves this vulnerability.

    Fixed in 0:2.2.5-4.el8_5.3
  3. Upgrade

    Upgrade redhat/expat to a version that resolves this vulnerability.

    Fixed in 0:2.2.5-4.el8_4.3
  4. Upgrade

    Upgrade redhat/expat to a version that resolves this vulnerability.

    Fixed in 2.4.4
  5. Upgrade

    Upgrade debian/expat to a version that resolves this vulnerability.

    Fixed in 2.5.0-1+deb12u2Fixed in 2.5.0-1+deb12u5Fixed in 2.8.3-1~deb13u1Fixed in 2.9.0-1~deb13u1Fixed in 2.9.0-1Fixed in 2.10.0-1
  6. Upgrade

    Upgrade alpine/expat to a version that resolves this vulnerability.

    Fixed in 2.2.10-r1
  7. Upgrade

    Upgrade alpine/expat to a version that resolves this vulnerability.

    Fixed in 2.2.10-r3
  8. Upgrade

    Upgrade alpine/expat to a version that resolves this vulnerability.

    Fixed in 2.4.4-r0
  9. Upgrade

    Upgrade alpine/qt5-qtwebengine to a version that resolves this vulnerability.

    Fixed in 5.15.3_git20211127-r4
  10. Upgrade

    Upgrade alpine/qt5-qtwebengine to a version that resolves this vulnerability.

    Fixed in 5.15.3_git20220121-r4
  11. Upgrade

    Upgrade android/platform/external/expat to a version that resolves this vulnerability.

    Fixed in 10:2022-09-01
  12. Upgrade

    Upgrade android/platform/external/expat to a version that resolves this vulnerability.

    Fixed in 11:2022-09-01
  13. Upgrade

    Upgrade android/platform/external/expat to a version that resolves this vulnerability.

    Fixed in 12:2022-09-01
  14. Upgrade

    Upgrade android/platform/external/expat to a version that resolves this vulnerability.

    Fixed in 12L:2022-09-01
  15. Upgrade

    Upgrade debian/expat to a version that resolves this vulnerability.

    Fixed in 2.4.3-2
  16. Upgrade

    Upgrade Expat (libexpat) to a version that resolves this vulnerability.

    Fixed in 2.4.4

Event History

Jan 23, 2022
CVE Published
12:00 AM
Jan 24, 2022
CVE Published
via MITRE·01:06 AM
Data Sourced
via MITRE·01:06 AM
Description
Data Sourced
via NVD·02:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·02:15 AM
DescriptionSeverityAffected Software
Data Sourced
via Red Hat·08:06 PM
DescriptionSeverityAffected Software
May 10, 2022
Exploit Published
via GitHub·09:22 AM
Sep 1, 2022
Advisory Published
via OSV·12:00 AM
Sep 30, 2026
Data Sourced
via Android·12:00 AM
SeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-23852?

CVE-2022-23852 is a vulnerability in expat (libexpat) that can cause process interruption due to an integer overflow when processing a large number of prefixed XML attributes on a single tag.

2

What is the severity of CVE-2022-23852?

The severity of CVE-2022-23852 is critical with a CVSS score of 9.8.

3

What is affected by CVE-2022-23852?

Expat (libexpat) versions before 2.4.4 are affected by CVE-2022-23852.

4

How can I fix CVE-2022-23852?

To fix CVE-2022-23852, update expat to version 2.4.4.

5

Where can I find more information about CVE-2022-23852?

You can find more information about CVE-2022-23852 at the following references: [link1](https://github.com/libexpat/libexpat/pull/550), [link2](https://bugzilla.suse.com/1195054), [link3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2052320).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203