CVE & CISA-KEV Catalog

CVE-2021-45960

HIGHEPSS 90th pctl
8.8
CVSS v3
NVD

Description

In Expat (aka libexpat) before 2.4.3, a left shift by 29 (or more) places in the storeAtts function in xmlparse.c can lead to realloc misbehavior (e.g., allocating too few bytes, or only freeing memory).

How to fix

Remediation Available
expatDebian
Fixed in:2.2.10-2+deb11u1CVE-2021-45960
Fixed in:2.4.3-1CVE-2021-45960
Fixed in:2.4.3-1CVE-2021-45960
Fixed in:2.4.3-1CVE-2021-45960
expatRed Hat / RHEL
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
expatRocky
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
expat-debuginfoRed Hat / RHEL
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
expat-debuginfoRocky
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
expat-debugsourceRocky
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
expat-debugsourceRed Hat / RHEL
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
expat-develRocky
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
expat-develRed Hat / RHEL
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
expatUbuntu
Fixed in:2.1.0-4ubuntu1.4+esm4USN-5288-1
Fixed in:2.1.0-7ubuntu0.16.04.5+esm2USN-5288-1
Fixed in:2.2.5-3ubuntu0.4USN-5288-1
Fixed in:2.2.9-1ubuntu0.2USN-5288-1
lib64expat1Ubuntu
Fixed in:2.1.0-4ubuntu1.4+esm4USN-5288-1
Fixed in:2.1.0-7ubuntu0.16.04.5+esm2USN-5288-1
libexpat1Ubuntu
Fixed in:2.1.0-4ubuntu1.4+esm4USN-5288-1
Fixed in:2.1.0-7ubuntu0.16.04.5+esm2USN-5288-1
Fixed in:2.2.5-3ubuntu0.4USN-5288-1
Fixed in:2.2.9-1ubuntu0.2USN-5288-1

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

4.23%probability of exploitation in 30 days
90thpercentile

High risk: more likely to be exploited than 90% of all known CVEs.

References

Related Vulnerabilities

Other CWE-682 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-30780High7.556%-Fix
CVE-2020-14422Medium5.913%-Fix
CVE-2016-7433Medium5.39.8%-Fix
CVE-2023-35641High8.87.2%-Fix
CVE-2018-8319Critical9.87.0%--
CVE-2020-0022High8.86.1%-Fix

Common questions

How do I fix CVE-2021-45960?

Published advisories record a fix for 12 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2021-45960 being actively exploited?

Not that we know of. CVE-2021-45960 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 4.2% is the estimated probability that it will be exploited in the next 30 days. That is higher than 90% of all scored CVEs.

How severe is CVE-2021-45960?

CVE-2021-45960 has a CVSS v3 base score of 8.8, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2021-45960 affect?

Published advisories record a fix for expat (Debian), expat (Red Hat / RHEL), expat (Rocky), expat-debuginfo (Red Hat / RHEL), and 8 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2021-45960
CVE-2021-45960 severity badge

Markdown

[![CVE-2021-45960](https://tridentstack.com/cve/badge/CVE-2021-45960.svg)](https://tridentstack.com/cve/CVE-2021-45960)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-45960"><img src="https://tridentstack.com/cve/badge/CVE-2021-45960.svg" alt="CVE-2021-45960"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-05-05.