CVE-2022-25314: Integer Overflow

Published Feb 18, 2022
·
Updated

An integer overflow flaw was found in expat. This issue affects the encoding name parameter at the parser creation time, which is often hard-coded (rather than user input), takes a value in the gigabytes to trigger, and on a 64-bit machine. This flaw can cause a denial of service.

Other sources

In Expat (aka libexpat) before 2.4.5, there is an integer overflow in copyString.

Affected Software

15 affected componentsFixes available
redhat/mingw-expat<0:2.4.8-1.el8
0:2.4.8-1.el8
redhat/expat<0:2.2.5-8.el8_6.2
0:2.2.5-8.el8_6.2
redhat/expat<0:2.2.10-12.el9_0.2
0:2.2.10-12.el9_0.2
debian/expat
2.2.6-2+deb10u42.2.6-2+deb10u62.2.10-2+deb11u52.5.0-12.5.0-2
redhat/expat<2.4.5
2.4.5
Libexpat Project Libexpat<2.4.5
Debian Debian Linux=10.0
Debian Debian Linux=11.0
Fedoraproject Fedora=34
Fedoraproject Fedora=35
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
Google Android

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

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

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

    Fixed in 0:2.2.5-8.el8_6.2
  3. Upgrade

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

    Fixed in 0:2.2.10-12.el9_0.2
  4. Upgrade

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

    Fixed in 2.2.6-2+deb10u4Fixed in 2.2.6-2+deb10u6Fixed in 2.2.10-2+deb11u5Fixed in 2.5.0-1Fixed in 2.5.0-2
  5. Upgrade

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

    Fixed in 2.4.5
  6. Upgrade

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

    Fixed in 2.4.5
  7. Compensating control

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

Event History

Feb 18, 2022
CVE Published
via MITRE·04:25 AM
Data Sourced
via MITRE·04:25 AM
Description
Feb 21, 2022
Data Sourced
via Red Hat·04:45 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-25314?

CVE-2022-25314 is a vulnerability in Expat (aka libexpat) before 2.4.5 that involves an integer overflow in copyString.

2

What is the severity of CVE-2022-25314?

The severity of CVE-2022-25314 is high, with a severity value of 7.5.

3

How does CVE-2022-25314 affect expat?

CVE-2022-25314 affects the encoding name parameter at the parser creation time in expat, potentially causing a denial of service.

4

How can I fix CVE-2022-25314?

To fix CVE-2022-25314, update Expat to version 2.4.5 or newer.

5

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

More information about CVE-2022-25314 can be found in the references: [1] [2] [3].

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