CVE-2014-3497: Swift OpenStack Swift Cross-site Scriping Vulnerability Vulnerability
MODERATECVE-2014-3497 is a MODERATE openstack swift cross-site scriping vulnerability vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Swift libraries in the PyPI ecosystem. The issue involves openstack swift cross-site scriping vulnerability. Remediation is available by upgrading affected packages to version 2.0.0.
CVE-2014-3497 at a Glance
How to Fix CVE-2014-3497
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>=2.0.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-2014-3497, 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 2.0.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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. 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-2014-3497 Affected Swift Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
swift
|
PyPI |
≥ 1.11.0
< 2.0.0
|
2.0.0
|
References
Frequently Asked Questions
What is CVE-2014-3497?
Which Swift versions are affected?
What version fixes CVE-2014-3497?
Is swift affected?
What CWE is associated with CVE-2014-3497?
How can I check PyPI dependencies for CVE-2014-3497?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-66vj-393f-hxfv",
"modified" : "2023-02-08T19:57:23Z",
"published" : "2022-05-17T04:04:46Z",
"aliases" : [ "CVE-2014-3497" ],
"summary" : "OpenStack Swift Cross-site Scriping vulnerability",
"details" : "Cross-site scripting (XSS) vulnerability in OpenStack Swift 1.11.0 through 1.13.1 allows remote attackers to inject arbitrary web script or HTML via the WWW-Authenticate header.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "swift"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.11.0"
}, {
"fixed" : "2.0.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.13.1"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-3497"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2014:0941"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2014-3497"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1110809"
}, {
"type" : "PACKAGE",
"url" : "https://opendev.org/openstack/swift"
}, {
"type" : "WEB",
"url" : "https://review.openstack.org/#/c/101031"
}, {
"type" : "WEB",
"url" : "https://review.openstack.org/#/c/101032"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200229060002/http://www.securityfocus.com/bid/68116"
}, {
"type" : "WEB",
"url" : "http://lists.openstack.org/pipermail/openstack-announce/2014-June/000243.html"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2014/06/19/10"
}, {
"type" : "WEB",
"url" : "http://www.ubuntu.com/usn/USN-2256-1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-02-08T19:57:23Z",
"nvd_published_at" : "2014-07-03T17:55:00Z"
}
}