GHSA-5cpq-8wj7-hf2v: Cryptography Vulnerable OpenSSL Included Vulnerability
LOWGHSA-5cpq-8wj7-hf2v 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.0.
GHSA-5cpq-8wj7-hf2v at a Glance
How to Fix GHSA-5cpq-8wj7-hf2v
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.0
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-5cpq-8wj7-hf2v, 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.0), 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-5cpq-8wj7-hf2v Affected Cryptography Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cryptography
|
PyPI |
≥ 0.5
< 41.0.0
|
41.0.0
|
References
Frequently Asked Questions
What is GHSA-5cpq-8wj7-hf2v?
Which Cryptography versions are affected?
What version fixes GHSA-5cpq-8wj7-hf2v?
Is cryptography affected?
What CWE is associated with GHSA-5cpq-8wj7-hf2v?
How can I check PyPI dependencies for GHSA-5cpq-8wj7-hf2v?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5cpq-8wj7-hf2v",
"modified" : "2023-06-02T17:13:10Z",
"published" : "2023-06-02T17:13:10Z",
"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 0.5-40.0.2 are vulnerable to a security issue. More details about the vulnerability itself can be found in https://www.openssl.org/news/secadv/20230530.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.5"
}, {
"fixed" : "41.0.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 40.0.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pyca/cryptography/security/advisories/GHSA-5cpq-8wj7-hf2v"
}, {
"type" : "WEB",
"url" : "https://github.com/pyca/cryptography/commit/8708245ccdeaff21d65eea68a4f8d2a7c5949a22"
}, {
"type" : "WEB",
"url" : "https://cryptography.io/en/latest/changelog/#v41-0-0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pyca/cryptography"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2023-06-02T17:13:10Z",
"nvd_published_at" : null
}
}