CVE-2014-7960: Swift Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-g6x3-55qv-x6p2
Published
Advisory Summary

CVE-2014-7960 is a MODERATE remote code execution vulnerability (General Security Weakness) affecting Swift libraries in the PyPI ecosystem. The issue involves openstack swift metadata constraints are not correctly enforced. Remediation is available by upgrading affected packages to version 2.2.0.

CVE-2014-7960 at a Glance

CVE Identifier CVE-2014-7960
GHSA Identifier GHSA-g6x3-55qv-x6p2
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Swift
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2014-7960

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.2.0
pip install swift>=2.2.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-7960, 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.2.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 General Security Weakness. 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

OpenStack Object Storage (Swift) before 2.2.0 allows remote authenticated users to bypass the max_meta_count and other metadata constraints via multiple crafted requests which exceed the limit when combined.

CVE-2014-7960 Affected Swift Versions

1 component(s)
Fixed Versions:
2.2.0
Product / Package Ecosystem Affected Versions Fixed Version
swift
PyPI
< 2.2.0
2.2.0

References

NVD — CVE-2014-7960 NVD
https://nvd.nist.gov/vuln/detail/CVE-2014-7960
Security Fix Commit FIX COMMIT
https://github.com/openstack/swift/commit/06800cbe446ce4c937a57b69517b55c3bba9b6e1
Security Fix Commit FIX COMMIT
https://github.com/openstack/swift/commit/2c4622a28ea04e1c6b2382189b0a1f6cccdc9c0f
Security Fix Commit FIX COMMIT
https://github.com/openstack/swift/commit/5b2c27a5874c2b5b0a333e4955b03544f6a8119f
bugs.launchpad.net/swift/+bug/1365350 WEB
https://bugs.launchpad.net/swift/+bug/1365350
exchange.xforce.ibmcloud.com/vulnerabilities/969... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/96901
Swift Source Repository REPOSITORY
https://github.com/openstack/swift
Swift Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2015-10/msg00025.html
rhn.redhat.com/errata/rhsa-2015-08... WEB
http://rhn.redhat.com/errata/RHSA-2015-0835.html
rhn.redhat.com/errata/rhsa-2015-08... WEB
http://rhn.redhat.com/errata/RHSA-2015-0836.html
rhn.redhat.com/errata/rhsa-2015-14... WEB
http://rhn.redhat.com/errata/RHSA-2015-1495.html
Swift Security Information SECURITY
http://www.openwall.com/lists/oss-security/2014/10/07/39
Swift Security Information SECURITY
http://www.openwall.com/lists/oss-security/2014/10/08/7
Swift Security Information SECURITY
http://www.oracle.com/technetwork/topics/security/bulletinjan2015-2370101.html
Swift Security Information SECURITY
http://www.securityfocus.com/bid/70279
www.ubuntu.com/usn/usn-2704-1 WEB
http://www.ubuntu.com/usn/USN-2704-1

Frequently Asked Questions

What is CVE-2014-7960?
CVE-2014-7960 is a security vulnerability in Swift involving OpenStack Swift metadata constraints are not correctly enforced under General Security Weakness.
Which Swift versions are affected?
Affected versions include releases prior to 2.2.0 across affected packages: swift.
What version fixes CVE-2014-7960?
Upgrading to 2.2.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.2.0. Upgrade your dependency to 2.2.0 or later.
What CWE is associated with CVE-2014-7960?
CVE-2014-7960 is classified under General Security Weakness.
How can I check PyPI dependencies for CVE-2014-7960?
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-g6x3-55qv-x6p2",
  "modified" : "2024-05-14T21:30:43Z",
  "published" : "2022-05-17T01:13:59Z",
  "aliases" : [ "CVE-2014-7960" ],
  "summary" : "OpenStack Swift metadata constraints are not correctly enforced",
  "details" : "OpenStack Object Storage (Swift) before 2.2.0 allows remote authenticated users to bypass the max_meta_count and other metadata constraints via multiple crafted requests which exceed the limit when combined.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "swift"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-7960"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/swift/commit/06800cbe446ce4c937a57b69517b55c3bba9b6e1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/swift/commit/2c4622a28ea04e1c6b2382189b0a1f6cccdc9c0f"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/swift/commit/5b2c27a5874c2b5b0a333e4955b03544f6a8119f"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/swift/+bug/1365350"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/96901"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/swift"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2015-10/msg00025.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-0835.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-0836.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-1495.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2014/10/07/39"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2014/10/08/7"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/bulletinjan2015-2370101.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/70279"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-2704-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T21:30:43Z",
    "nvd_published_at" : "2014-10-17T15:55:00Z"
  }
}