CVE-2015-1856: Swift OpenStack Swift Unauthorized Delete Of Vulnerability

MODERATE
Advisory Identifier: GHSA-cc77-5vw4-7pwg
Published
Advisory Summary

CVE-2015-1856 is a MODERATE openstack swift unauthorized delete of vulnerability (General Security Weakness) affecting Swift libraries in the PyPI ecosystem. The issue involves openstack swift unauthorized delete of versioned swift object. Remediation is available by upgrading affected packages to version 2.3.0.

CVE-2015-1856 at a Glance

CVE Identifier CVE-2015-1856
GHSA Identifier GHSA-cc77-5vw4-7pwg
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-2015-1856

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.3.0
pip install swift>=2.3.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-2015-1856, 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.3.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.3.0, when allow_version is configured, allows remote authenticated users to delete the latest version of an object by leveraging listing access to the x-versions-location container.

CVE-2015-1856 Affected Swift Versions

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

References

NVD — CVE-2015-1856 NVD
https://nvd.nist.gov/vuln/detail/CVE-2015-1856
bugs.launchpad.net/swift/+bug/1430645 WEB
https://bugs.launchpad.net/swift/+bug/1430645
git.openstack.org/cgit/openstack/swif... WEB
https://git.openstack.org/cgit/openstack/swift/commit/?id=5bb7c286ebb4a54e4d2bd5a02845644d1c651183
git.openstack.org/cgit/openstack/swif... WEB
https://git.openstack.org/cgit/openstack/swift/commit/?id=85afe9316570855c87ea731d0627f6f8f2b73264
git.openstack.org/cgit/openstack/swif... WEB
https://git.openstack.org/cgit/openstack/swift/commit/?id=dd9d97458ea007024220a78dba8dd663e8b425d7
git.openstack.org/cgit/openstack/swif... WEB
https://git.openstack.org/cgit/openstack/swift/commit/?id=f6525758ab2456d688430699338993439597a789
Swift Source Repository REPOSITORY
https://github.com/openstack/swift
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2015-August/163113.html
lists.openstack.org/pipermail/openstack... WEB
http://lists.openstack.org/pipermail/openstack-announce/2015-April/000349.html
Swift Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2015-10/msg00025.html
rhn.redhat.com/errata/rhsa-2015-16... WEB
http://rhn.redhat.com/errata/RHSA-2015-1681.html
rhn.redhat.com/errata/rhsa-2015-16... WEB
http://rhn.redhat.com/errata/RHSA-2015-1684.html
rhn.redhat.com/errata/rhsa-2015-18... WEB
http://rhn.redhat.com/errata/RHSA-2015-1845.html
rhn.redhat.com/errata/rhsa-2015-18... WEB
http://rhn.redhat.com/errata/RHSA-2015-1846.html
Swift Security Information SECURITY
http://www.oracle.com/technetwork/topics/security/bulletinapr2015-2511959.html
Swift Security Information SECURITY
http://www.securityfocus.com/bid/74182
www.ubuntu.com/usn/usn-2704-1 WEB
http://www.ubuntu.com/usn/USN-2704-1

Frequently Asked Questions

What is CVE-2015-1856?
CVE-2015-1856 is a security vulnerability in Swift involving OpenStack Swift Unauthorized delete of versioned Swift object under General Security Weakness.
Which Swift versions are affected?
Affected versions include releases prior to 2.3.0 across affected packages: swift.
What version fixes CVE-2015-1856?
Upgrading to 2.3.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.3.0. Upgrade your dependency to 2.3.0 or later.
What CWE is associated with CVE-2015-1856?
CVE-2015-1856 is classified under General Security Weakness.
How can I check PyPI dependencies for CVE-2015-1856?
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-cc77-5vw4-7pwg",
  "modified" : "2024-05-14T21:30:46Z",
  "published" : "2022-05-14T03:59:19Z",
  "aliases" : [ "CVE-2015-1856" ],
  "summary" : "OpenStack Swift Unauthorized delete of versioned Swift object",
  "details" : "OpenStack Object Storage (Swift) before 2.3.0, when allow_version is configured, allows remote authenticated users to delete the latest version of an object by leveraging listing access to the x-versions-location container.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "swift"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-1856"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/swift/+bug/1430645"
  }, {
    "type" : "WEB",
    "url" : "https://git.openstack.org/cgit/openstack/swift/commit/?id=5bb7c286ebb4a54e4d2bd5a02845644d1c651183"
  }, {
    "type" : "WEB",
    "url" : "https://git.openstack.org/cgit/openstack/swift/commit/?id=85afe9316570855c87ea731d0627f6f8f2b73264"
  }, {
    "type" : "WEB",
    "url" : "https://git.openstack.org/cgit/openstack/swift/commit/?id=dd9d97458ea007024220a78dba8dd663e8b425d7"
  }, {
    "type" : "WEB",
    "url" : "https://git.openstack.org/cgit/openstack/swift/commit/?id=f6525758ab2456d688430699338993439597a789"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/swift"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-August/163113.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.openstack.org/pipermail/openstack-announce/2015-April/000349.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2015-10/msg00025.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-1681.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-1684.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-1845.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-1846.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/bulletinapr2015-2511959.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/74182"
  }, {
    "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:46Z",
    "nvd_published_at" : "2015-04-17T17:59:00Z"
  }
}