CVE-2023-38325 cryptography mishandles SSH certificates
The Python cryptography library mishandles SSH certificates with critical options, allowing attackers to bypass security checks.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-38325?
CVE-2023-38325 is a high-severity vulnerability in n/a, published on 14 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The cryptography package before 41.0.2 for Python mishandles SSH certificates that have critical options.
Weakness: CWE-295
Which versions are affected by CVE-2023-38325?
3 open source packages ship an affected version, including cryptography. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
cryptography PyPI | From 40.0.0 | 41.0.2 |
cryptography PyPI | From 40.0.0 | 41.0.2 |
cryptography PyPI | From 40.0.0 | 41.0.2 |
Linux distribution packages (1)
python-cryptography openSUSE:Tumbleweed | All versions | 41.0.2-2.1 |
Products include Cryptography.io Cryptography.
How do I fix CVE-2023-38325?
Upgrade cryptography to 41.0.2 or later.
Is CVE-2023-38325 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-38325 exists.
Other vulnerabilities in n/a
- CVE-2020-36242 PyCA Cryptography symmetrically encrypting large values can lead to integer overflow
- CVE-2026-26007 cryptography Subgroup Attack Due to Missing Subgroup Validation for SECT Curves
- CVE-2024-26130 cryptography NULL pointer dereference with pkcs12.serialize_key_and_certificates when called with a non-matching certificate and private key and an hmac_hash override
- CVE-2026-39892 cryptography has a buffer overflow if non-contiguous buffers were passed to APIs
- CVE-2023-49083 cryptography vulnerable to NULL-dereference when loading PKCS7 certificates
Sources
Also known as ALPINE-CVE-2023-38325, GHSA-cf7p-gm2m-833m, PYSEC-2023-112, openSUSE-SU-2024:13078-1.