# CVE-2012-2921: feedparser denial of service vulnerability

Source: https://junglewise.ai/threats/cve-2012-2921-feedparser-denial-of-service-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2012-05-21  
License: CC BY 4.0 with a link back

CVE-2012-2921 · Severity: low · CVSS 3.1 · Published 2012-05-21

Universal Feed Parser (aka feedparser or python-feedparser) before 5.1.2 allows remote attackers to cause a denial of service (memory consumption) via a crafted XML ENTITY declaration in a non-ASCII encoded document.

Technologies: [feedparser (PyPI)](https://junglewise.ai/threats/technologies/feedparser). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2012-2921 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2012-2921 being exploited in the wild.

**How severe is CVE-2012-2921?** Low severity, with a CVSS score of 3.1, published 21 May 2012.

**Which products and versions are affected?** feedparser (PyPI) ECOSYSTEM:introduced=0,fixed=5.1.2.

**Is there a fix for CVE-2012-2921?** Yes. feedparser (PyPI): upgrade to 5.1.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2012-2921?** Check whether you run feedparser (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- feedparser (PyPI): upgrade to 5.1.2 or later

  ```sh
  pip install "feedparser>=5.1.2"
  ```


## Affected products

- feedparser (PyPI) ECOSYSTEM:introduced=0,fixed=5.1.2

## Identifiers

- CVE-2012-2921
- GHSA-hjf3-r7gw-9rwg
- PYSEC-2012-14

## Related threats

- [feedparser Cross-site Scripting in XML comment parsing](https://junglewise.ai/threats/cve-2011-1157-feedparser-cross-site-scripting-in-xml-comment-parsing)
- [feedparser denial of service vulnerability](https://junglewise.ai/threats/cve-2011-1156-feedparser-denial-of-service-vulnerability)
- [feedparser Cross-site Scripting vulnerability](https://junglewise.ai/threats/cve-2011-1158-feedparser-cross-site-scripting-vulnerability)
- [feedparser cross-site scripting in nested CDATA parsing](https://junglewise.ai/threats/cve-2009-5065-feedparser-cross-site-scripting-in-nested-cdata-parsing)
