CVE-2023-38325 cryptography mishandles SSH certificates

High 7.5 Published Updated

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.

PackageAffectedFixed in
cryptography PyPIFrom 40.0.041.0.2
cryptography PyPIFrom 40.0.041.0.2
cryptography PyPIFrom 40.0.041.0.2
Linux distribution packages (1)
python-cryptography openSUSE:TumbleweedAll versions41.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.

Sources

Also known as ALPINE-CVE-2023-38325, GHSA-cf7p-gm2m-833m, PYSEC-2023-112, openSUSE-SU-2024:13078-1.

Is CVE-2023-38325 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free