CVE-2012-4406 OpenStack Object Storage (swift) Code Injection vulnerability
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.
| Package | Affected | Fixed in |
|---|---|---|
swift PyPI | All versions | 1.7.0 |
swift PyPI | All versions | 1.7.0 |
swift PyPI | All versions | 1.7.0 |
Linux distribution packages (6)
openstack-swift Red Hat:openstack:1::el6 | All versions | 0:1.4.8-5.el6 |
openstack-swift-account Red Hat:openstack:1::el6 | All versions | 0:1.4.8-5.el6 |
openstack-swift-container Red Hat:openstack:1::el6 | All versions | 0:1.4.8-5.el6 |
openstack-swift-doc Red Hat:openstack:1::el6 | All versions | 0:1.4.8-5.el6 |
openstack-swift-object Red Hat:openstack:1::el6 | All versions | 0:1.4.8-5.el6 |
openstack-swift-proxy Red Hat:openstack:1::el6 | All versions | 0: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.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as DEBIAN-CVE-2012-4406, GHSA-v7mh-3jgf-r26c, PYSEC-2026-545, RHSA-2012:1379.