CVE-2012-4406 OpenStack Object Storage (swift) Code Injection vulnerability

Critical 9.8 Published Updated

Remote attackers can execute arbitrary code in OpenStack Object Storage by sending crafted pickle objects to memcached.

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-4406?

CVE-2012-4406 is a critical unsafe deserialization vulnerability in Fedoraproject Fedora, published on 22 Oct 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

OpenStack Object Storage (swift) before 1.7.0 uses the loads function in the pickle Python module unsafely when storing and loading metadata in memcached, which allows remote attackers to execute arbitrary code via a crafted pickle object.

Weakness: CWE-502

Which versions are affected by CVE-2012-4406?

3 open source packages ship an affected version, including swift. It affects 7 products.

PackageAffectedFixed in
swift PyPIAll versions1.7.0
swift PyPIAll versions1.7.0
swift PyPIAll versions1.7.0
Linux distribution packages (6)
openstack-swift Red Hat:openstack:1::el6All versions0:1.4.8-5.el6
openstack-swift-account Red Hat:openstack:1::el6All versions0:1.4.8-5.el6
openstack-swift-container Red Hat:openstack:1::el6All versions0:1.4.8-5.el6
openstack-swift-doc Red Hat:openstack:1::el6All versions0:1.4.8-5.el6
openstack-swift-object Red Hat:openstack:1::el6All versions0:1.4.8-5.el6
openstack-swift-proxy Red Hat:openstack:1::el6All versions0:1.4.8-5.el6

Products include Fedoraproject Fedora, Openstack Swift, Redhat Enterprise Linux Server, Redhat Gluster Storage Management Console, Redhat Gluster Storage Server for On-Premise, Redhat Storage and 1 more.

How do I fix CVE-2012-4406?

Upgrade swift to 1.7.0 or later.

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

Is CVE-2012-4406 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2012-4406, GHSA-v7mh-3jgf-r26c, PYSEC-2026-545, RHSA-2012:1379.

Is CVE-2012-4406 in your software?

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

Check your SBOMs for free