GHSA-537c-gmf6-5ccf: Vulnerable OpenSSL included in cryptography wheels
High CVSS 7.5
- OSV id
- GHSA-537c-gmf6-5ccf
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| cryptography PyPI |
>= 0.5.0, < 48.0.1 | 48.0.1 |
Versions we track that it affects: cryptography 42.0.8
How to fix it
Upgrade cryptography to 48.0.1 or later.
# in requirements.txt: change the line to cryptography==48.0.1
pip install -r requirements.txt
- If it is an indirect dependency, upgrade the package that depends on it, or add a minimum version constraint for it (e.g. in constraints.txt, or as a dependency in pyproject.toml).
- Check the changelog for breaking changes (especially across major versions), update the lockfile with the package manager, and run your tests.
Not sure whether your project uses an affected version? Check your lockfile below for free.
Details
pyca/cryptography's wheels include a statically linked copy of OpenSSL. The versions of OpenSSL included in wheels prior to cryptograph 48.01 are vulnerable to a security issue. More details about the vulnerability itself can be found in https://openssl-library.org/news/secadv/20260609.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.
References
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: GitHub Advisory Database via OSV.dev (CC-BY 4.0). Severity comes from the advisory's own rating when it has one, else from its CVSS score.