CVE-2022-25236: Critical severity Libexpat Project Libexpat vulnerability

Published Feb 16, 2022
·
Updated

A flaw was found in expat. Passing one or more namespace separator characters in the "xmlns[:prefix]" attribute values made expat send malformed tag names to the XML processor on top of expat. This issue causes arbitrary code execution depending on how unexpected cases are handled inside the XML processor.

Other sources

xmlparse.c in Expat (aka libexpat) before 2.4.5 allows attackers to insert namespace-separator characters into namespace URIs.

Affected Software

91 affected componentsFixes available
redhat/expat<0:2.0.1-14.el6_10
0:2.0.1-14.el6_10
redhat/firefox<0:91.7.0-3.el7_9
0:91.7.0-3.el7_9
redhat/thunderbird<0:91.7.0-2.el7_9
0:91.7.0-2.el7_9
redhat/expat<0:2.1.0-14.el7_9
0:2.1.0-14.el7_9
redhat/firefox<0:91.7.0-3.el8_5
0:91.7.0-3.el8_5
redhat/thunderbird<0:91.7.0-2.el8_5
0:91.7.0-2.el8_5
redhat/mingw-expat<0:2.4.8-1.el8
0:2.4.8-1.el8
redhat/expat<0:2.2.5-4.el8_5.3
0:2.2.5-4.el8_5.3
redhat/firefox<0:91.7.0-3.el8_1
0:91.7.0-3.el8_1
redhat/thunderbird<0:91.7.0-2.el8_1
0:91.7.0-2.el8_1
redhat/expat<0:2.2.5-3.el8_1.1
0:2.2.5-3.el8_1.1
redhat/firefox<0:91.7.0-3.el8_2
0:91.7.0-3.el8_2
redhat/thunderbird<0:91.7.0-2.el8_2
0:91.7.0-2.el8_2
redhat/expat<0:2.2.5-3.el8_2.2
0:2.2.5-3.el8_2.2
redhat/firefox<0:91.7.0-3.el8_4
0:91.7.0-3.el8_4
redhat/thunderbird<0:91.7.0-2.el8_4
0:91.7.0-2.el8_4
redhat/expat<0:2.2.5-4.el8_4.2
0:2.2.5-4.el8_4.2
redhat/redhat-virtualization-host<0:4.3.22-20220330.1.el7_9
0:4.3.22-20220330.1.el7_9
Libexpat Project Libexpat<2.4.5
Debian Debian Linux=10.0
Debian Debian Linux=11.0
Oracle HTTP Server=12.2.1.3.0
Oracle HTTP Server=12.2.1.4.0
Oracle ZFS Storage Appliance Kit=8.8
Siemens SINEMA Remote Connect Server<3.1
redhat/expat<2.4.5
2.4.5
alpine/expat<2.2.10-r2
2.2.10-r2
alpine/expat<2.2.10-r4
2.2.10-r4
alpine/expat<2.4.5-r0
2.4.5-r0
alpine/expat<2.4.5-r0
2.4.5-r0
alpine/expat<2.4.5-r0
2.4.5-r0
alpine/expat<2.4.5-r0
2.4.5-r0
alpine/expat<2.4.5-r0
2.4.5-r0
alpine/expat<2.4.5-r0
2.4.5-r0
alpine/expat<2.4.5-r0
2.4.5-r0
alpine/expat<2.4.5-r0
2.4.5-r0
alpine/expat<2.4.5-r0
2.4.5-r0
alpine/expat<2.4.5-r0
2.4.5-r0
alpine/expat<2.4.5-r0
2.4.5-r0
debian/expat<2.4.5-1
2.4.5-1
debian/expat<2.4.5-1
2.4.5-1
debian/expat<2.4.5-1
2.4.5-1
debian/libxmltok*
debian/expat
2.2.0-2+deb9u52.2.6-2+deb10u32.2.10-2+deb11u22.4.5-1
debian/libxmltok<=1.2-4
ubuntu/expat<2.1.0-4ubuntu1.4+esm4
2.1.0-4ubuntu1.4+esm4
ubuntu/coin3<3.1.4~abc9f50-4ubuntu2+esm2
3.1.4~abc9f50-4ubuntu2+esm2
ubuntu/xmlrpc-c<1.33.06-0ubuntu1+esm1
1.33.06-0ubuntu1+esm1
ubuntu/expat<2.1.0-7ubuntu0.16.04.5+esm2
2.1.0-7ubuntu0.16.04.5+esm2
ubuntu/coin3<3.1.4~abc9f50+dfsg1-1ubuntu0.1~esm2
3.1.4~abc9f50+dfsg1-1ubuntu0.1~esm2
ubuntu/insighttoolkit<3.20.1+git20120521-6ubuntu0.1~esm1
3.20.1+git20120521-6ubuntu0.1~esm1
ubuntu/libxmltok<1.2-3ubuntu0.16.04.1~esm2
1.2-3ubuntu0.16.04.1~esm2
ubuntu/swish-e<2.4.7-4ubuntu0.1~esm1
2.4.7-4ubuntu0.1~esm1
ubuntu/ayttm<0.6.3-3ubuntu0.1~esm1
0.6.3-3ubuntu0.1~esm1
ubuntu/cableswig<0.1.0+git20150808-2ubuntu0.1~esm1
0.1.0+git20150808-2ubuntu0.1~esm1
ubuntu/insighttoolkit4*
ubuntu/matanza*
ubuntu/xmlrpc-c<1.33.14-1ubuntu1+esm1
1.33.14-1ubuntu1+esm1
ubuntu/expat<2.2.5-3ubuntu0.4
2.2.5-3ubuntu0.4
ubuntu/coin3<3.1.4~abc9f50+dfsg3-2ubuntu0.1~esm1
3.1.4~abc9f50+dfsg3-2ubuntu0.1~esm1
ubuntu/libxmltok<1.2-4ubuntu0.18.04.1~esm1
1.2-4ubuntu0.18.04.1~esm1
ubuntu/matanza*
ubuntu/swish-e<2.4.7-5ubuntu1+esm1
2.4.7-5ubuntu1+esm1
ubuntu/tdom*
ubuntu/xmlrpc-c<1.33.14-8ubuntu0.18.04.1~esm1
1.33.14-8ubuntu0.18.04.1~esm1
ubuntu/expat<2.2.9-1ubuntu0.2
2.2.9-1ubuntu0.2
ubuntu/libxmltok<1.2-4ubuntu0.20.04.1~esm1
1.2-4ubuntu0.20.04.1~esm1
ubuntu/matanza*
ubuntu/swish-e<2.4.7-6ubuntu0.1~esm1
2.4.7-6ubuntu0.1~esm1
ubuntu/xmlrpc-c<1.33.14-8ubuntu0.20.04.1~esm1
1.33.14-8ubuntu0.20.04.1~esm1
ubuntu/firefox<1:1snap1-0ubuntu1
1:1snap1-0ubuntu1
ubuntu/matanza*
ubuntu/thunderbird*
ubuntu/libxmltok<1.2-4ubuntu0.22.04.1~esm1
1.2-4ubuntu0.22.04.1~esm1
ubuntu/swish-e<2.4.7-6.1ubuntu0.1~esm1
2.4.7-6.1ubuntu0.1~esm1
ubuntu/xmlrpc-c<1.33.14-10ubuntu0.1~esm1
1.33.14-10ubuntu0.1~esm1
ubuntu/libxmltok<1.2-4.1ubuntu1
1.2-4.1ubuntu1
ubuntu/matanza*
ubuntu/thunderbird*
ubuntu/swish-e<2.4.7-6.2ubuntu0.1~esm1
2.4.7-6.2ubuntu0.1~esm1
ubuntu/xmlrpc-c<1.33.14-12ubuntu0.1~esm1
1.33.14-12ubuntu0.1~esm1
ubuntu/matanza*
ubuntu/swish-e*
ubuntu/thunderbird*
ubuntu/matanza*
ubuntu/swish-e*
ubuntu/tdom*
ubuntu/thunderbird*
ubuntu/matanza*
ubuntu/thunderbird*
ubuntu/swish-e<2.4.7-7.1ubuntu0.1~esm1
2.4.7-7.1ubuntu0.1~esm1

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.0.1-14.el6_10
  2. Upgrade

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

    Fixed in 0:91.7.0-3.el7_9
  3. Upgrade

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

    Fixed in 0:91.7.0-2.el7_9
  4. Upgrade

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

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

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

    Fixed in 0:91.7.0-3.el8_5
  6. Upgrade

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

    Fixed in 0:91.7.0-2.el8_5
  7. Upgrade

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

    Fixed in 0:2.4.8-1.el8
  8. Upgrade

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

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

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

    Fixed in 0:91.7.0-3.el8_1
  10. Upgrade

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

    Fixed in 0:91.7.0-2.el8_1
  11. Upgrade

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

    Fixed in 0:2.2.5-3.el8_1.1
  12. Upgrade

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

    Fixed in 0:91.7.0-3.el8_2
  13. Upgrade

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

    Fixed in 0:91.7.0-2.el8_2
  14. Upgrade

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

    Fixed in 0:2.2.5-3.el8_2.2
  15. Upgrade

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

    Fixed in 0:91.7.0-3.el8_4
  16. Upgrade

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

    Fixed in 0:91.7.0-2.el8_4
  17. Upgrade

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

    Fixed in 0:2.2.5-4.el8_4.2
  18. Upgrade

    Upgrade redhat/redhat-virtualization-host to a version that resolves this vulnerability.

    Fixed in 0:4.3.22-20220330.1.el7_9
  19. Upgrade

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

    Fixed in 2.4.5
  20. Upgrade

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

    Fixed in 2.2.10-r2
  21. Upgrade

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

    Fixed in 2.2.10-r4
  22. Upgrade

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

    Fixed in 2.4.5-r0
  23. Upgrade

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

    Fixed in 2.4.5-1
  24. Upgrade

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

    Fixed in 2.2.0-2+deb9u5Fixed in 2.2.6-2+deb10u3Fixed in 2.2.10-2+deb11u2Fixed in 2.4.5-1
  25. Upgrade

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

    Fixed in 2.1.0-4ubuntu1.4+esm4
  26. Upgrade

    Upgrade ubuntu/coin3 to a version that resolves this vulnerability.

    Fixed in 3.1.4~abc9f50-4ubuntu2+esm2
  27. Upgrade

    Upgrade ubuntu/xmlrpc-c to a version that resolves this vulnerability.

    Fixed in 1.33.06-0ubuntu1+esm1
  28. Upgrade

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

    Fixed in 2.1.0-7ubuntu0.16.04.5+esm2
  29. Upgrade

    Upgrade ubuntu/coin3 to a version that resolves this vulnerability.

    Fixed in 3.1.4~abc9f50+dfsg1-1ubuntu0.1~esm2
  30. Upgrade

    Upgrade ubuntu/insighttoolkit to a version that resolves this vulnerability.

    Fixed in 3.20.1+git20120521-6ubuntu0.1~esm1
  31. Upgrade

    Upgrade ubuntu/libxmltok to a version that resolves this vulnerability.

    Fixed in 1.2-3ubuntu0.16.04.1~esm2
  32. Upgrade

    Upgrade ubuntu/swish-e to a version that resolves this vulnerability.

    Fixed in 2.4.7-4ubuntu0.1~esm1
  33. Upgrade

    Upgrade ubuntu/ayttm to a version that resolves this vulnerability.

    Fixed in 0.6.3-3ubuntu0.1~esm1
  34. Upgrade

    Upgrade ubuntu/cableswig to a version that resolves this vulnerability.

    Fixed in 0.1.0+git20150808-2ubuntu0.1~esm1
  35. Upgrade

    Upgrade ubuntu/xmlrpc-c to a version that resolves this vulnerability.

    Fixed in 1.33.14-1ubuntu1+esm1
  36. Upgrade

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

    Fixed in 2.2.5-3ubuntu0.4
  37. Upgrade

    Upgrade ubuntu/coin3 to a version that resolves this vulnerability.

    Fixed in 3.1.4~abc9f50+dfsg3-2ubuntu0.1~esm1
  38. Upgrade

    Upgrade ubuntu/libxmltok to a version that resolves this vulnerability.

    Fixed in 1.2-4ubuntu0.18.04.1~esm1
  39. Upgrade

    Upgrade ubuntu/swish-e to a version that resolves this vulnerability.

    Fixed in 2.4.7-5ubuntu1+esm1
  40. Upgrade

    Upgrade ubuntu/xmlrpc-c to a version that resolves this vulnerability.

    Fixed in 1.33.14-8ubuntu0.18.04.1~esm1
  41. Upgrade

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

    Fixed in 2.2.9-1ubuntu0.2
  42. Upgrade

    Upgrade ubuntu/libxmltok to a version that resolves this vulnerability.

    Fixed in 1.2-4ubuntu0.20.04.1~esm1
  43. Upgrade

    Upgrade ubuntu/swish-e to a version that resolves this vulnerability.

    Fixed in 2.4.7-6ubuntu0.1~esm1
  44. Upgrade

    Upgrade ubuntu/xmlrpc-c to a version that resolves this vulnerability.

    Fixed in 1.33.14-8ubuntu0.20.04.1~esm1
  45. Upgrade

    Upgrade ubuntu/firefox to a version that resolves this vulnerability.

    Fixed in 1:1snap1-0ubuntu1
  46. Upgrade

    Upgrade ubuntu/libxmltok to a version that resolves this vulnerability.

    Fixed in 1.2-4ubuntu0.22.04.1~esm1
  47. Upgrade

    Upgrade ubuntu/swish-e to a version that resolves this vulnerability.

    Fixed in 2.4.7-6.1ubuntu0.1~esm1
  48. Upgrade

    Upgrade ubuntu/xmlrpc-c to a version that resolves this vulnerability.

    Fixed in 1.33.14-10ubuntu0.1~esm1
  49. Upgrade

    Upgrade ubuntu/libxmltok to a version that resolves this vulnerability.

    Fixed in 1.2-4.1ubuntu1
  50. Upgrade

    Upgrade ubuntu/swish-e to a version that resolves this vulnerability.

    Fixed in 2.4.7-6.2ubuntu0.1~esm1
  51. Upgrade

    Upgrade ubuntu/xmlrpc-c to a version that resolves this vulnerability.

    Fixed in 1.33.14-12ubuntu0.1~esm1
  52. Upgrade

    Upgrade ubuntu/swish-e to a version that resolves this vulnerability.

    Fixed in 2.4.7-7.1ubuntu0.1~esm1
  53. Upgrade

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

    Fixed in 2.4.5
  54. Compensating control

    Restrict applications using the expat (libexpat) library from processing untrusted XML content, since there is no known mitigation other than this restriction.

Event History

Feb 15, 2022
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
DescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
Feb 16, 2022
CVE Published
via MITRE·12:39 AM
Data Sourced
via MITRE·12:39 AM
Description
May 6, 2022
Exploit Published
via GitHub·05:19 AM
Oct 7, 2022
Data Sourced
12:58 AM
Weakness
May 16, 2023
Data Sourced
via Red Hat·04:16 PM
DescriptionSeverityAffected Software
Nov 7, 2023
Data Sourced
via NVD·03:44 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·03:44 AM
Affected Software
Nov 21, 2024
Updated
via NVD·06:51 AM
RemedyAffected Software
May 5, 2025
Updated
via NVD·05:18 PM
SeverityWeaknessAffected Software
Oct 14, 2026
Updated
via NVD·05:17 PM
Affected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the vulnerability ID of this flaw in Expat?

The vulnerability ID of this flaw in Expat is CVE-2022-25236.

2

What is the severity level of CVE-2022-25236?

The severity level of CVE-2022-25236 is critical.

3

What is the affected software of CVE-2022-25236?

The affected software of CVE-2022-25236 includes Expat (libexpat) versions before 2.4.5, Red Hat, Firefox, Thunderbird, mingw-expat, and others.

4

How can an attacker exploit CVE-2022-25236?

An attacker can exploit CVE-2022-25236 by passing namespace separator characters in the "xmlns[:prefix]" attribute values, causing expat to send malformed tag names to the XML processor.

5

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

You can find more information about CVE-2022-25236 at the following references: http://www.openwall.com/lists/oss-security/2022/02/19/1, https://github.com/libexpat/libexpat/pull/561, and https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2056371

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