CVE-2013-5942 graphite-web is vulnerable to Remote Code Execution

Medium 6.8 Published Updated

Remote attackers can execute arbitrary code on Graphite servers by sending crafted serialized objects due to unsafe pickle usage.

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

What is CVE-2013-5942?

CVE-2013-5942 is a medium-severity unsafe deserialization vulnerability in n/a, published on 27 Sep 2013. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Graphite 0.9.5 through 0.9.10 uses the pickle Python module unsafely, which allows remote attackers to execute arbitrary code via a crafted serialized object, related to (1) remote_storage.py, (2) storage.py, (3) render/datalib.py, and (4) whitelist/views.py, a different vulnerability than CVE-2013-5093.

Weakness: CWE-94

Which versions are affected by CVE-2013-5942?

3 open source packages ship an affected version, including graphite-web. It affects 1 product.

PackageAffectedFixed in
graphite-web PyPIFrom 0.9.50.9.11
graphite-web PyPIFrom 0.9.50.9.11
graphite-web PyPIFrom 0.9.50.9.11

Products include Graphite Project Graphite.

How do I fix CVE-2013-5942?

Upgrade graphite-web to 0.9.11 or later.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2013-5942 being exploited?

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

Sources

Also known as DEBIAN-CVE-2013-5942, GHSA-ch3j-w953-hfcm, PYSEC-2013-34.

Is CVE-2013-5942 in your software?

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

Check your SBOMs for free