CVE-2015-1852: Keystonemiddleware OpenStack Keystonemiddleware And Python-keystoneclient Vulnerable Vulnerability

HIGH
Advisory Identifier: GHSA-p9wq-mjh8-q72m
CVSS 7.5
CWE-295
Published
Advisory Summary

CVE-2015-1852 is a HIGH (CVSS 7.5) openstack keystonemiddleware and python-keystoneclient vulnerable vulnerability (CWE-295: Improper Certificate Validation) affecting Keystonemiddleware libraries in the PyPI ecosystem. The issue involves openstack keystonemiddleware and python-keystoneclient vulnerable to man-in-the-middle attacks. Remediation is available by upgrading affected packages to version 1.6.0, 1.4.0.

CVE-2015-1852 at a Glance

CVE Identifier CVE-2015-1852
GHSA Identifier GHSA-p9wq-mjh8-q72m
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Keystonemiddleware
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2015-1852

To remediate this vulnerability, upgrade all affected Keystonemiddleware dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

keystonemiddleware fixed: 1.6.0
pip install keystonemiddleware>=1.6.0
python-keystoneclient fixed: 1.4.0
pip install python-keystoneclient>=1.4.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 keystonemiddleware

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2015-1852, inspect your installed packages using pip:

pip show keystonemiddleware

Analyze the terminal output to locate any version of Keystonemiddleware in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.0), your application is affected.

Note: The pip show keystonemiddleware command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Keystonemiddleware, 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

The s3_token middleware in OpenStack keystonemiddleware before 1.6.0 and python-keystoneclient before 1.4.0 disables certification verification when the "insecure" option is set in a paste configuration (paste.ini) file regardless of the value, which allows remote attackers to conduct man-in-the-middle attacks via a crafted certificate, a different vulnerability than CVE-2014-7144.

CVE-2015-1852 Affected Keystonemiddleware Versions

2 component(s)
Fixed Versions:
1.6.01.4.0
Product / Package Ecosystem Affected Versions Fixed Version
keystonemiddleware
PyPI
< 1.6.0
1.6.0
python-keystoneclient
PyPI
< 1.4.0
1.4.0

References

Frequently Asked Questions

What is CVE-2015-1852?
CVE-2015-1852 is a security vulnerability in Keystonemiddleware involving OpenStack keystonemiddleware and python-keystoneclient vulnerable to man-in-the-middle attacks under CWE-295: Improper Certificate Validation.
Which Keystonemiddleware versions are affected?
Affected versions include releases prior to 1.6.0, 1.4.0 across affected packages: keystonemiddleware, python-keystoneclient.
What version fixes CVE-2015-1852?
Upgrading to 1.6.0, 1.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is keystonemiddleware affected?
Yes, keystonemiddleware is affected in releases prior to 1.6.0. Upgrade your dependency to 1.6.0 or later.
Is python-keystoneclient affected?
Yes, python-keystoneclient is affected in releases prior to 1.4.0. Upgrade your dependency to 1.4.0 or later.
What is the CVSS score of CVE-2015-1852?
CVE-2015-1852 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2015-1852?
CVE-2015-1852 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check PyPI dependencies for CVE-2015-1852?
Run the dependency tree command: 'pip show keystonemiddleware'. 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-p9wq-mjh8-q72m",
  "modified" : "2024-09-27T17:46:37Z",
  "published" : "2022-05-17T03:17:26Z",
  "aliases" : [ "CVE-2015-1852" ],
  "summary" : "OpenStack keystonemiddleware and python-keystoneclient vulnerable to man-in-the-middle attacks",
  "details" : "The s3_token middleware in OpenStack keystonemiddleware before 1.6.0 and python-keystoneclient before 1.4.0 disables certification verification when the \"insecure\" option is set in a paste configuration (paste.ini) file regardless of the value, which allows remote attackers to conduct man-in-the-middle attacks via a crafted certificate, a different vulnerability than CVE-2014-7144.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "keystonemiddleware"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "python-keystoneclient"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-1852"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2015:1677"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2015:1685"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2015-1852"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/keystonemiddleware/+bug/1411063"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1209527"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/keystonemiddleware/PYSEC-2015-30.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/python-keystoneclient/PYSEC-2015-31.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200228060649/http://www.securityfocus.com/bid/74187"
  }, {
    "type" : "WEB",
    "url" : "http://lists.openstack.org/pipermail/openstack-announce/2015-April/000350.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-1677.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2015-1685.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/bulletinapr2015-2511959.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/USN-2705-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-08T18:13:02Z",
    "nvd_published_at" : "2015-04-17T17:59:00Z"
  }
}