CVE-2012-2921 feedparser denial of service vulnerability

Medium 5.0 Published Updated

Remote attackers can cause denial of service via memory consumption using crafted XML entities in non-ASCII documents.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2012-2921?

CVE-2012-2921 is a medium-severity denial of service vulnerability in n/a, published on 21 May 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-399

Which versions are affected by CVE-2012-2921?

3 open source packages ship an affected version, including feedparser. It affects 1 product.

PackageAffectedFixed in
feedparser PyPIAll versions5.1.2
feedparser PyPIAll versions5.1.2
feedparser PyPIAll versions5.1.2

Products include Mark Pilgrim Feedparser.

How do I fix CVE-2012-2921?

Upgrade feedparser to 5.1.2 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2012-2921 being exploited?

There is no known exploitation of CVE-2012-2921 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2012-2921, GHSA-hjf3-r7gw-9rwg, PYSEC-2012-14.

Is CVE-2012-2921 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free