GHSA-jm77-qphf-c4w8: Cryptography Pyca/cryptography's Wheels Include Vulnerable OpenSSL Vulnerability
LOWGHSA-jm77-qphf-c4w8 is a LOW pyca/cryptography's wheels include vulnerable openssl vulnerability (General Security Weakness) affecting Cryptography libraries in the PyPI ecosystem. The issue involves pyca/cryptography's wheels include vulnerable openssl. Remediation is available by upgrading affected packages to version 41.0.3.
GHSA-jm77-qphf-c4w8 at a Glance
How to Fix GHSA-jm77-qphf-c4w8
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.
pip install cryptography>=41.0.3
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-jm77-qphf-c4w8, 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.3), 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
GHSA-jm77-qphf-c4w8 Affected Cryptography Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cryptography
|
PyPI |
≥ 0.8
< 41.0.3
|
41.0.3
|
References
Frequently Asked Questions
What is GHSA-jm77-qphf-c4w8?
Which Cryptography versions are affected?
What version fixes GHSA-jm77-qphf-c4w8?
Is cryptography affected?
What CWE is associated with GHSA-jm77-qphf-c4w8?
How can I check PyPI dependencies for GHSA-jm77-qphf-c4w8?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jm77-qphf-c4w8",
"modified" : "2023-08-01T22:34:41Z",
"published" : "2023-08-01T22:34:41Z",
"aliases" : [ ],
"summary" : "pyca/cryptography's wheels include vulnerable OpenSSL",
"details" : "pyca/cryptography's wheels include a statically linked copy of OpenSSL. The versions of OpenSSL included in cryptography 0.8-41.0.2 are vulnerable to several security issues. More details about the vulnerabilities themselves can be found in https://www.openssl.org/news/secadv/20230731.txt, https://www.openssl.org/news/secadv/20230719.txt, and https://www.openssl.org/news/secadv/20230714.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" : "0.8"
}, {
"fixed" : "41.0.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pyca/cryptography/security/advisories/GHSA-jm77-qphf-c4w8"
}, {
"type" : "WEB",
"url" : "https://github.com/pyca/cryptography/commit/b22271cf3c3dd8dc8978f8f4b00b5c7060b6538d"
}, {
"type" : "WEB",
"url" : "https://github.com/pyca/cryptography/commit/bfa4d95f0f356f2d535efd5c775e0fb3efe90ef2"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pyca/cryptography"
}, {
"type" : "WEB",
"url" : "https://www.openssl.org/news/secadv/20230714.txt"
}, {
"type" : "WEB",
"url" : "https://www.openssl.org/news/secadv/20230719.txt"
}, {
"type" : "WEB",
"url" : "https://www.openssl.org/news/secadv/20230731.txt"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-01T22:34:41Z",
"nvd_published_at" : null
}
}