PyPI package
cryptography 37.0.3 vulnerabilities, and the version that fixes all of them
cryptography 37.0.3 has 15 known vulnerabilities (4 rated high or critical); 49.0.0 fixes all of them. 49.0.0 has 1 known vulnerability of its own, so upgrade to 50.0.2, which has none. The maintainers deprecated this release.
PyPI (opens in a new tab) describes it as “cryptography is a package which provides cryptographic recipes and primitives to Python developers.”
- Known vulnerabilities
- 15
- 4 rated high or critical
- Released
- Jun 21, 2022
- Latest is 50.0.2
- Licence
- Apache-2.0 OR BSD-3-Clause
- Pulls in
- 2 packages
- Resolved by deps.dev
- Status
- Yanked release
What to upgrade to
50.0.2 is the closest release with no known vulnerabilities that we checked.
Newest 37.x release. Released Jul 5, 2022.
15 known vulnerabilities, worst rated warningFixes all 15 known vulnerabilities. Released Jun 12, 2026.
1 known vulnerability, worst rated warning50.0.2Upgrade to this
Latest release. Released Sep 30, 2026.
No known vulnerabilities
50.0.2 came out on Sep 30, 2026. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates
Hand the fix to your coding agent
One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.
Findings
- CriticalVulnerability
15 known vulnerabilities in cryptography 37.0.3
EPSS: top 1%4 rated high or critical. Most serious: CVE-2023-0286, Vulnerable OpenSSL included in cryptography wheels. Upgrading to 49.0.0 fixes all of them.
- WarningOutdated
cryptography 37.0.3 is 13 major versions behind
Latest release is 50.0.2. The maintainers deprecated 37.0.3: "Regression in OpenSSL."
Every advisory for cryptography 37.0.3
Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.
CriticalCVE-2023-0286 on OSV.dev (opens in a new tab)GHSA-x4qr-2fvf-3mr5EPSS: top 1%
Vulnerable OpenSSL included in cryptography wheels
Fixed in 39.0.1. Published Feb 8, 2023.
WarningCVE-2024-0727 on OSV.dev (opens in a new tab)GHSA-9v9h-cgj8-h64pEPSS: top 13%
Null pointer dereference in PKCS12 parsing
Fixed in 42.0.2. Published Jan 26, 2024.
WarningCVE-2023-23931 on OSV.dev (opens in a new tab)GHSA-w7pp-m8wf-vj6rEPSS: top 30%
Cipher.update_into can corrupt memory if passed an immutable python object as the outbuf
Fixed in 39.0.1. Published Feb 7, 2023.
CriticalCVE-2023-50782 on OSV.dev (opens in a new tab)GHSA-3ww4-gg4f-jr7fEPSS: top 35%
Python Cryptography package vulnerable to Bleichenbacher timing oracle attack
Fixed in 42.0.0. Published Feb 5, 2024.
WarningCVE-2023-49083 on OSV.dev (opens in a new tab)GHSA-jfhm-5ghh-2f97EPSS: top 39%
cryptography vulnerable to NULL-dereference when loading PKCS7 certificates
Fixed in 41.0.6. Published Nov 28, 2023.
CriticalCVE-2026-26007 on OSV.dev (opens in a new tab)GHSA-r6ph-v2qm-q3c2EPSS: top 69%
cryptography Vulnerable to a Subgroup Attack Due to Missing Subgroup Validation for SECT Curves
Fixed in 46.0.5. Published Feb 10, 2026.
WarningCVE-2026-69248 on OSV.dev (opens in a new tab)GHSA-m2h6-j472-rp4cEPSS: top 78%
python-cryptography verifier accepts wildcard DNS names allowing escape from permittedSubtrees
Fixed in 49.0.0. Published Aug 4, 2026.
WarningCVE-2026-69249 on OSV.dev (opens in a new tab)GHSA-jwv3-5hgf-82wwEPSS: top 85%
python-cryptography: Duplicate self-signed intermediates can cause exponential path-building
Fixed in 49.0.0. Published Aug 4, 2026.
LowCVE-2026-34073 on OSV.dev (opens in a new tab)GHSA-m959-cc7f-wv43EPSS: top 93%
cryptography has incomplete DNS name constraint enforcement on peer names
Fixed in 46.0.6. Published Mar 27, 2026.
CriticalGHSA-537c-gmf6-5ccf on OSV.dev (opens in a new tab)
Vulnerable OpenSSL included in cryptography wheels
Fixed in 48.0.1. Published Jun 15, 2026.
WarningGHSA-h4gh-qq45-vh27 on OSV.dev (opens in a new tab)
pyca/cryptography has a vulnerable OpenSSL included in cryptography wheels
Fixed in 43.0.1. Published Sep 3, 2024.
WarningGHSA-39hc-v87j-747x on OSV.dev (opens in a new tab)
Vulnerable OpenSSL included in cryptography wheels
Fixed in 38.0.3. Published Nov 2, 2022.
LowGHSA-v8gr-m533-ghj9 on OSV.dev (opens in a new tab)
Vulnerable OpenSSL included in cryptography wheels
Fixed in 41.0.4. Published Sep 21, 2023.
LowGHSA-jm77-qphf-c4w8 on OSV.dev (opens in a new tab)
pyca/cryptography's wheels include vulnerable OpenSSL
Fixed in 41.0.3. Published Aug 1, 2023.
LowGHSA-5cpq-8wj7-hf2v on OSV.dev (opens in a new tab)
Vulnerable OpenSSL included in cryptography wheels
Fixed in 41.0.0. Published Jun 2, 2023.
Is cryptography the only one?
Paste a public GitHub repo or drop your requirements.txt or pyproject.toml and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.
How this page is checked
StackPrism asks OSV.dev which advisories affect exactly cryptography 37.0.3, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and PyPI. No AI writes this page: every sentence comes from that data, refreshed every few hours.
Last checked against PyPI, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.