GHSA-v8gr-m533-ghj9: Cryptography Vulnerable OpenSSL Included Vulnerability

LOW
Published
Advisory Summary

GHSA-v8gr-m533-ghj9 is a LOW vulnerable openssl included vulnerability (General Security Weakness) affecting Cryptography libraries in the PyPI ecosystem. The issue involves vulnerable openssl included in cryptography wheels. Remediation is available by upgrading affected packages to version 41.0.4.

GHSA-v8gr-m533-ghj9 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-v8gr-m533-ghj9
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Cryptography
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix GHSA-v8gr-m533-ghj9

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

cryptography fixed: 41.0.4
pip install cryptography>=41.0.4
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 cryptography

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-v8gr-m533-ghj9, inspect your installed packages using pip:

pip show cryptography

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

Note: The pip show cryptography 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 Cryptography, 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

pyca/cryptography's wheels include a statically linked copy of OpenSSL. The versions of OpenSSL included in cryptography 2.5-41.0.3 are vulnerable to several security issues. More details about the vulnerabilities themselves can be found in https://www.openssl.org/news/secadv/20230908.txt. If you are building cryptography source ("sdist") then you are responsible for upgrading your copy of OpenSSL. Only users installing from wheels built by the cryptography project (i.e., those distributed on PyPI) need to update their cryptography versions.

GHSA-v8gr-m533-ghj9 Affected Cryptography Versions

1 component(s)
Fixed Versions:
41.0.4
Product / Package Ecosystem Affected Versions Fixed Version
cryptography
PyPI
≥ 2.5
< 41.0.4
41.0.4

References

Frequently Asked Questions

What is GHSA-v8gr-m533-ghj9?
GHSA-v8gr-m533-ghj9 is a security vulnerability in Cryptography involving Vulnerable OpenSSL included in cryptography wheels under General Security Weakness.
Which Cryptography versions are affected?
Affected versions include releases prior to 41.0.4 across affected packages: cryptography.
What version fixes GHSA-v8gr-m533-ghj9?
Upgrading to 41.0.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cryptography affected?
Yes, cryptography is affected in releases prior to 41.0.4. Upgrade your dependency to 41.0.4 or later.
What CWE is associated with GHSA-v8gr-m533-ghj9?
GHSA-v8gr-m533-ghj9 is classified under General Security Weakness.
How can I check PyPI dependencies for GHSA-v8gr-m533-ghj9?
Run the dependency tree command: 'pip show cryptography'. 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-v8gr-m533-ghj9",
  "modified" : "2023-09-21T17:07:01Z",
  "published" : "2023-09-21T17:07:01Z",
  "aliases" : [ ],
  "summary" : "Vulnerable OpenSSL included in cryptography wheels",
  "details" : "pyca/cryptography's wheels include a statically linked copy of OpenSSL. The versions of OpenSSL included in cryptography 2.5-41.0.3 are vulnerable to several security issues. More details about the vulnerabilities themselves can be found in https://www.openssl.org/news/secadv/20230908.txt.\n\nIf you are building cryptography source (\"sdist\") then you are responsible for upgrading your copy of OpenSSL. Only users installing from wheels built by the cryptography project (i.e., those distributed on PyPI) need to update their cryptography versions.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "cryptography"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5"
      }, {
        "fixed" : "41.0.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pyca/cryptography/security/advisories/GHSA-v8gr-m533-ghj9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pyca/cryptography/commit/fc11bce6930e591ce26a2317b31b9ce2b3e25512"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pyca/cryptography"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-09-21T17:07:01Z",
    "nvd_published_at" : null
  }
}