The cryptography package before 41.0.2 for Python mishandles SSH certificates that have critical options.
Priority HIGH 72CWE-295Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-295.
Summary
The cryptography package before 41.0.2 for Python mishandles SSH certificates that have critical options.
Why it matters now
Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00726 54th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed cryptography (PyPI): 41.0.2
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | cryptography (PyPI) | 40.0.0 to before 41.0.2 | 41.0.2 | Patch available | GHSA-cf7p-gm2m-833m |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- cryptography (PyPI) Vendor— Affected 40.0.0 to before 41.0.2 Fixed in 41.0.2 Patch available GHSA-cf7p-gm2m-833m
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:cryptography.io:cryptography:*:*:*:*:*:python:*:* | 40.0.0 to before 41.0.2 | Vulnerable | Cryptography.io |
- cpe:2.3:a:cryptography.io:cryptography:*:*:*:*:*:python:*:* Versions 40.0.0 to before 41.0.2 Vulnerable ·Cryptography.io
Remediation
- Fix · GHSA-cf7p-gm2m-833m cryptography (PyPI) Fixed in 41.0.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 11 products
- Red Hat Ansible Automation Platform 1.2
- Red Hat Ansible Automation Platform 2
- Red Hat Certification for Red Hat Enterprise Linux 6
- Red Hat Certification for Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Quay 3
- Red Hat Satellite 6
- Red Hat Software Collections
- Red Hat Update Infrastructure 4 for Cloud Providers
Timeline
- 2026-10-02 Threatist record created from CVE-2023-38325
- 2026-10-03 Alias added: GHSA-cf7p-gm2m-833m
References
Patch 2
Other 9
- https://pypi.org/project/cryptography/#history
- https://security.netapp.com/advisory/ntap-20230824-0010/
- https://github.com/pyca/cryptography/pull/7960
- https://github.com/pyca/cryptography/commit/1ca7adc97b76a9dfbd3d850628b613eb93b78fc3
- https://github.com/pyca/cryptography
- https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2023-112.yaml
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NMCCTYY3CSNQBFFYYC5DAV6KATHWCUZK
- https://lists.fedoraproject.org/archives/list/[email protected]/message/NMCCTYY3CSNQBFFYYC5DAV6KATHWCUZK
- https://security.netapp.com/advisory/ntap-20230824-0010
More Cryptography.io Cryptography vulnerabilities
- TI-2023-27712 Python-cryptography: bleichenbacher timing oracle attack against rsa decryption - incomplete fix for cve-2020-25659 CVSS 3.1HIGH 7.5
- TI-2023-26748 cryptography vulnerable to NULL-dereference when loading PKCS7 certificates CVSS 3.1HIGH 7.5
- TI-2023-09729 Cipher.update_into can corrupt memory in pyca cryptography CVSS 3.1MEDIUM 6.5
- TI-2020-18562 In the cryptography package before 3.3.2 for Python, certain sequences of update calls to… CVSS 3.1CRITICAL 9.1
- TI-2024-17221 NULL pointer dereference in pyca cryptography CVSS 3.1HIGH 7.5
- TI-2016-07555 HKDF in cryptography before 1.5.2 returns an empty byte-string if used with a length less than algorithm.digest_size. CVSS 3.1HIGH 7.5
Sources
- CVE-2023-38325 · CVE Program
- CVE-2023-38325 · NVD
- FIRST EPSS
- GHSA-cf7p-gm2m-833m · GitHub Advisory Database · CC BY 4.0
- CVE-2023-38325 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences