Vulnerabilities

Vulnerability · CVE-2022-40674

libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.

Published Sep 14, 2022 · catalog updated Oct 14, 2026 · libexpat project

Check if you run it

No confirmed exploitation is on record for CVE-2022-40674. EPSS is 2.25%. Act only if a listed version of libexpat project is installed.

Gaps on this record

  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
Severity
High8.1
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
2.25%
Remediation
Not established
Affected products
cpe debian/debian linux · cpe fedoraproject/fedora · cpe libexpat project/libexpat

libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • cpe debian/debian linux10.0
  • cpe debian/debian linux11.0
  • cpe fedoraproject/fedora35
  • cpe fedoraproject/fedora36
  • cpe fedoraproject/fedora37
  • cpe libexpat project/libexpatversion unspecified

How to fix CVE-2022-40674

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

No confirmed exploitation is on record for CVE-2022-40674. EPSS is 2.25%. Act only if a listed version of libexpat project is installed.

Which versions are affected?

Compare what you have installed with debian/debian linux 10.0; debian/debian linux 11.0. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

CWE-416: Use After Free. EPSS 2.25%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Sep 14, 2022 · NIST NVD

    Detected

    libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.

  2. Oct 14, 2026 · NIST NVD

    Updated

    libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.

Sources

  • CVE.orgVulnerability recordCVE-2022-40674

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2022-40674

    30-day exploitation probability 2.3%

    first.org
  • NIST NVDVulnerability recordCVE-2022-40674

    libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.

    nvd.nist.gov

References

Freshness

Last verified in this catalog Oct 16, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.