CVE-2013-6444: Pywbem PyWBEM TOCTOU Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-gh2c-6m38-c78j
CWE-20
Published
Advisory Summary

CVE-2013-6444 is a MODERATE pywbem toctou vulnerability vulnerability (CWE-20: Improper Input Validation) affecting Pywbem libraries in the PyPI ecosystem. The issue involves pywbem toctou vulnerability in certificate validation. Remediation is available by upgrading affected packages to version 0.8.1.

CVE-2013-6444 at a Glance

CVE Identifier CVE-2013-6444
GHSA Identifier GHSA-gh2c-6m38-c78j
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Pywbem
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2013-6444

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

pywbem fixed: 0.8.1
pip install pywbem>=0.8.1
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 pywbem

How to Check if You Are Affected

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

pip show pywbem

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Pywbem, 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

PyWBEM 0.7 and earlier does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.

CVE-2013-6444 Affected Pywbem Versions

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

References

Frequently Asked Questions

What is CVE-2013-6444?
CVE-2013-6444 is a security vulnerability in Pywbem involving PyWBEM TOCTOU vulnerability in certificate validation under CWE-20: Improper Input Validation.
Which Pywbem versions are affected?
Affected versions include releases prior to 0.8.1 across affected packages: pywbem.
What version fixes CVE-2013-6444?
Upgrading to 0.8.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pywbem affected?
Yes, pywbem is affected in releases prior to 0.8.1. Upgrade your dependency to 0.8.1 or later.
What CWE is associated with CVE-2013-6444?
CVE-2013-6444 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check PyPI dependencies for CVE-2013-6444?
Run the dependency tree command: 'pip show pywbem'. 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-gh2c-6m38-c78j",
  "modified" : "2024-10-16T20:44:42Z",
  "published" : "2022-05-17T03:46:27Z",
  "aliases" : [ "CVE-2013-6444" ],
  "summary" : "PyWBEM TOCTOU vulnerability in certificate validation",
  "details" : "PyWBEM 0.7 and earlier does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pywbem"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.8.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-6444"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pywbem/pywbem/commit/f7599379b26a685d772b2620a16316130f46c474"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1044246"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pywbem/PYSEC-2014-94.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pywbem/pywbem"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200228035408/https://www.securityfocus.com/bid/64544"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/oss-sec/2013/q4/524"
  }, {
    "type" : "WEB",
    "url" : "http://sourceforge.net/p/pywbem/code/627"
  }, {
    "type" : "WEB",
    "url" : "http://sourceforge.net/p/pywbem/mailman/message/31757312"
  }, {
    "type" : "WEB",
    "url" : "http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-29T16:26:08Z",
    "nvd_published_at" : "2014-05-05T17:06:00Z"
  }
}