Skip to main content
EPSS 1.0%top 38%

Python: An issue was discovered in libexpat before 2.6.4. (CVE-2024-50602)

0
Medium
Published: 12/05/2024 (12/05/2024, 07:15:23 UTC)
Source: GCVE Database
Product: python

Description

A vulnerability in libexpat before version 2.6.4 causes a crash in the XML_ResumeParser function due to XML_StopParser stopping or suspending an unstarted parser. This issue affects multiple Python versions and is rated as medium severity. A patch is available to address this denial-of-service condition. Red Hat has issued a security advisory with updates for affected products.

Affected software

Affected versions
<3.9.21>=3.10.0 <3.10.16>=3.11.0 <3.11.11>=3.12.0 <3.12.8>=3.13.0 <3.13.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 15:12:44 UTC

Technical Analysis

CVE-2024-50602 is a denial-of-service vulnerability in libexpat versions prior to 2.6.4. The flaw occurs because the XML_ResumeParser function can crash if XML_StopParser is called on a parser that has not yet started. This leads to a denial-of-service condition. The vulnerability affects Python versions <3.9.21, >=3.10.0 <3.10.16, >=3.11.0 <3.11.11, >=3.12.0 <3.12.8, and >=3.13.0 <3.13.1. Red Hat has released patches for their Enterprise Linux distributions to mitigate this issue.

Potential Impact

The vulnerability allows an attacker to cause a denial-of-service (DoS) by crashing the XML parser in libexpat. This can disrupt applications or services that rely on XML parsing using the affected versions of libexpat, including certain Python versions. There is no indication of code execution or data breach from this vulnerability. No known exploits are reported in the wild.

Mitigation Recommendations

A patch is available to fix this vulnerability. Users should apply the updates provided by their vendors, such as the Red Hat advisory RHSA-2025:3350, which addresses this issue in Red Hat Enterprise Linux 9.2 Extended Update Support. Refer to the vendor advisory for detailed update instructions. No additional mitigation steps are indicated by the vendor.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Csaf Category
csaf_security_advisory
Csaf Version
2.0
Publisher
Red Hat Product Security
Advisory Id
RHSA-2025:3350
Cve Count
1

Threat ID: 6a3da1d64853345fc1827293

Added to database: 06/25/2026, 21:47:02 UTC

Last enriched: 09/08/2026, 15:12:44 UTC

Last updated: 09/10/2026, 19:36:48 UTC

Views: 18

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses