CVE-2014-3497: Swift OpenStack Swift Cross-site Scriping Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-66vj-393f-hxfv
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2014-3497
GHSA Identifier GHSA-66vj-393f-hxfv
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Swift
Package Ecosystem PyPI
Published Date
Last Updated

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.

swift fixed: 2.0.0
pip install swift>=2.0.0
Verify Direct and Transitive Dependencies

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

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.

CVE-2014-3497 Affected Swift Versions

1 component(s)
Fixed Versions:
2.0.0
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?
CVE-2014-3497 is a security vulnerability in Swift involving OpenStack Swift Cross-site Scriping vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Swift versions are affected?
Affected versions include releases prior to 2.0.0 across affected packages: swift.
What version fixes CVE-2014-3497?
Upgrading to 2.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is swift affected?
Yes, swift is affected in releases prior to 2.0.0. Upgrade your dependency to 2.0.0 or later.
What CWE is associated with CVE-2014-3497?
CVE-2014-3497 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check PyPI dependencies for CVE-2014-3497?
Run the dependency tree command: 'pip show swift'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}