cve.bz

CVE-2023-38325 cryptography.io cryptography: Improper Certificate Validation

7.5 highExploit referenceEPSS 0.7%Fix available

High (7.5) in cryptography.io cryptography. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in cryptography 41.0.2.

On this page
The cryptography package before 41.0.2 for Python mishandles SSH certificates that have critical options.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 55th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2024-10-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-295 Improper Certificate Validation
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-38325 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-38325?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-38325?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-38325 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
cryptography.io:cryptographyfrom 40.0.0 before 41.0.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-cf7p-gm2m-833mPyPIcryptography>=40.0.0 <41.0.241.0.2
PYSEC-2023-112PyPIcryptography>=40.0.0 <41.0.241.0.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
openSUSETumbleweedpython-cryptography41.0.2-2.1openSUSE-SU-2024:13078-1
openSUSETumbleweedpython-cryptography50.0.0-1.1openSUSE-SU-2026:11468-1
Alpinev3.18, v3.19, v3.20 and 4 morepy3-cryptography41.0.2-r0ALPINE-CVE-2023-38325

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

OpenSSH certificate parsing was introduced in python-cryptography v40.0.0 and fixed in upstream release v41.0.2. Since, Red Hat Enterprise Linux - 7, 8, 9 ships lower versions of python-cryptography (releases < v40.0.0), those are not affected by this CVE.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 1.2ansible-towerNot affected
Red Hat Ansible Automation Platform 2ansible-lintNot affected
Red Hat Ansible Automation Platform 2ansible-navigatorNot affected
Red Hat Ansible Automation Platform 2automation-controllerNot affected
Red Hat Ansible Automation Platform 2python3x-ansible-compatNot affected
Red Hat Ansible Automation Platform 2python3x-cryptographyNot affected
Red Hat Ansible Automation Platform 2python-ansible-compatNot affected
Red Hat Ansible Automation Platform 2python-cryptographyNot affected
Red Hat Certification for Red Hat Enterprise Linux 6redhat-certification-backendNot affected
Red Hat Certification for Red Hat Enterprise Linux 8redhat-certification-baremetal-containerNot affected
Red Hat Enterprise Linux 7python-adalNot affected
Red Hat Enterprise Linux 7python-cryptographyNot affected
Red Hat Enterprise Linux 8python3.11-cryptographyNot affected
Red Hat Enterprise Linux 8python39:3.9/python-cryptographyNot affected
Red Hat Enterprise Linux 8python-cryptographyNot affected
Red Hat Enterprise Linux 9fence-agentsNot affected
Red Hat Enterprise Linux 9python3.11-cryptographyNot affected
Red Hat Enterprise Linux 9python-cryptographyNot affected
Red Hat Quay 3quay/quay-rhel8Not affected
Red Hat Satellite 6ansiblerole-foreman_scap_clientNot affected
6 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-38325.

Attack patterns (CAPEC)

  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON