Vulnerabilities in pkg:pypi/pywbem

PACKAGE
Advisory Identifier: GHSA-f9q5-46qg-74x4
Advisory Summary

CVE-2013-6418 is a HIGH (CVSS 7.5) 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.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/pywbem

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/pywbem. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-f9q5-46qg-74x4 CVE-2013-6418 HIGH PyWBEM TOCTOU vulnerability in certificate validation
GHSA-gh2c-6m38-c78j CVE-2013-6444 MODERATE PyWBEM TOCTOU vulnerability in certificate validation

CVE-2013-6418 at a Glance

CVE Identifier CVE-2013-6418
GHSA Identifier GHSA-f9q5-46qg-74x4
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Pywbem
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-2013-6418

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-6418, 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 uses a separate connection to validate X.509 certificates, which allows man-in-the-middle attackers to spoof a peer via an arbitrary certificate.

CVE-2013-6418 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-6418?
CVE-2013-6418 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-6418?
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 is the CVSS score of CVE-2013-6418?
CVE-2013-6418 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-2013-6418?
CVE-2013-6418 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-6418?
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-f9q5-46qg-74x4",
  "modified" : "2024-10-25T21:25:56Z",
  "published" : "2022-05-17T03:46:27Z",
  "aliases" : [ "CVE-2013-6418" ],
  "summary" : "PyWBEM TOCTOU vulnerability in certificate validation",
  "details" : "PyWBEM 0.7 and earlier uses a separate connection to validate X.509 certificates, which allows man-in-the-middle attackers to spoof a peer via an arbitrary certificate.",
  "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" : "pywbem"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.8.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-6418"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pywbem/pywbem/commit/f7599379b26a685d772b2620a16316130f46c474"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1039801"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pywbem/PYSEC-2014-93.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pywbem/pywbem"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20161110005052/http://secunia.com/advisories/58327"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200228040356/http://www.securityfocus.com/bid/64544"
  }, {
    "type" : "WEB",
    "url" : "https://www.suse.com/support/update/announcement/2014/suse-su-20140580-1.html"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/oss-sec/2013/q4/531"
  }, {
    "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/bulletinjan2016-2867206.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-29T16:32:20Z",
    "nvd_published_at" : "2014-05-05T17:06:00Z"
  }
}