CVE-2013-2161: Swift OpenStack Swift Unchecked User Input Vulnerability
HIGHCVE-2013-2161 is a HIGH openstack swift unchecked user input vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Swift libraries in the PyPI ecosystem. The issue involves openstack swift unchecked user input in xml responses. Remediation is available by upgrading affected packages to version 1.9.0.
CVE-2013-2161 at a Glance
How to Fix CVE-2013-2161
To remediate this vulnerability, upgrade all affected Swift dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install swift>=1.9.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show swift
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2013-2161, inspect your installed packages using pip:
pip show swift
Analyze the terminal output to locate any version of Swift in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.0), your application is affected.
Note: The pip show swift command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Swift, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2013-2161 Affected Swift Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
swift
|
PyPI |
< 1.9.0
|
1.9.0
|
References
Frequently Asked Questions
What is CVE-2013-2161?
Which Swift versions are affected?
What version fixes CVE-2013-2161?
Is swift affected?
What CWE is associated with CVE-2013-2161?
How can I check PyPI dependencies for CVE-2013-2161?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9xgv-6v35-mmcj",
"modified" : "2024-05-14T21:30:51Z",
"published" : "2022-05-14T02:10:10Z",
"aliases" : [ "CVE-2013-2161" ],
"summary" : "OpenStack Swift Unchecked user input in XML responses",
"details" : "XML injection vulnerability in account/utils.py in OpenStack Swift Folsom, Grizzly, and Havana allows attackers to trigger invalid or spoofed Swift responses via an account name.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "swift"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.9.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-2161"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/swift/commit/6659382c4fa348e1ebbce2424968dd7267ea1db1"
}, {
"type" : "WEB",
"url" : "https://github.com/openstack/swift/commit/8f9b135e0a16478a628f20224ce5babe62d4aaba"
}, {
"type" : "WEB",
"url" : "https://bugs.launchpad.net/swift/+bug/1183884"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/openstack/swift"
}, {
"type" : "WEB",
"url" : "http://github.com/openstack/swift/commit/4eed6bf5b5028409f730be97ddcfb6bfa893c976"
}, {
"type" : "WEB",
"url" : "http://github.com/openstack/swift/commit/92d7eadd328797d392758c79e258c8455874c80e"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2013-07/msg00021.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2013-0993.html"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2012/dsa-2737"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2013/06/13/4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-14T21:30:51Z",
"nvd_published_at" : "2013-08-20T22:55:00Z"
}
}