CVE-2023-38325 json
cryptography mishandles SSH certificates
published 2023-07-14 3 y ago modified 2026-09-10 1 mo ago also GHSA-cf7p-gm2m-833m , PYSEC-2023-112 , EUVD-2023-0059
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
Summary
The cryptography package before 41.0.2 for Python mishandles SSH certificates that have critical options.
Patch / fix
- pypi cryptography 41.0.2
- cryptography.io cryptography 41.0.2
- python-cryptography openSUSE Tumbleweed 50.0.0-1.1
- python-cryptography openSUSE Tumbleweed 41.0.2-2.1
opensuse advisories openSUSE-SU-2026:11468-1openSUSE-SU-2024:13078-1
- py3-cryptography Alpine 3.24, Alpine 3.23, Alpine 3.22 +4 more 41.0.2-r0
alpine advisories ALPINE-CVE-2023-38325
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/pyca/cryptography@1ca7adc commit
- github.com/pyca/cryptography/compare/41.0.1...41.0.2 patch
- github.com/pyca/cryptography#9208 pull request
- github.com/pyca/cryptography#7960 pull request
- github.com/pyca/cryptography/issues/9207 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-38325 updated cvss 7.5
python-cryptography: SSH certificate encoding/parsing incompatibility with OpenSSH
-
Red Hat Ansible Automation Platform 1.2 ansible-tower Red Hat Ansible Automation Platform 2 ansible-lint, ansible-navigator, python-cryptography, automation-controller, python-ansible-compat, python3x-cryptography, +1 more Red Hat Certification for Red Hat Enterprise Linux 6 redhat-certification-backend Red Hat Certification for Red Hat Enterprise Linux 8 redhat-certification-baremetal-container Red Hat Enterprise Linux 7 python-adal, python-cryptography, python2-cryptography Red Hat Enterprise Linux 8 python-cryptography, python3-cryptography, python3.11-cryptographynot affected: vulnerable code not present
+5 more productsfewer
Red Hat Enterprise Linux 9 fence-virt, fence-virtd, fence-agents, fence-virtd-cpg, fence-virtd-tcp, fence-agents-all, +54 more Red Hat Quay 3 quay/quay-rhel8 Red Hat Satellite 6 python-cryptography, python3-cryptography, python-types-cryptography, ansiblerole-foreman_scap_client, tfm-pulpcore-python-cryptography Red Hat Software Collections rh-python38-python-cryptography Red Hat Update Infrastructure 4 for Cloud Providers python-cryptography, python-types-cryptography
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.73% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/pyca/cryptography/issues/9207 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | cryptography | >=40.0.0, <41.0.2 |
41.0.2 |
Classification
- Weakness
-
- CWE-295 Improper Certificate Validation
References
-
github.com
/pyca/cryptography/pull/9208
web, patch, vendor-advisory
-
github.com
/pyca/cryptography/issues/9207
web, exploit, issue-tracking, patch, vendor-advisory, report
-
github.com
/pyca/cryptography/compare/41.0.1...41.0.2
web, patch
-
github.com
/pyca/cryptography/pull/7960
web
-
github.com
/pyca/cryptography/commit/1ca7adc97b76a9dfbd3d850628b613eb93b78fc3
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/NMCCTYY3CSNQBFFYYC5DAV6KATHWCUZK/
vendor-advisory
-
pypi.org
/project/cryptography/#history
web, release-notes, package
- security.netapp.com /advisory/ntap-20230824-0010/
-
nvd.nist.gov
/vuln/detail/CVE-2023-38325
advisory
-
github.com
/pyca/cryptography
package
-
github.com
/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2023-112.yaml
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/NMCCTYY3CSNQBFFYYC5DAV6KATHWCUZK
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/NMCCTYY3CSNQBFFYYC5DAV6KATHWCUZK
web
-
security.netapp.com
/advisory/ntap-20230824-0010
web
-
github.com
/advisories/GHSA-cf7p-gm2m-833m
advisory
Sources
- CVE List CVE-2023-38325
- GitHub Advisory GHSA-cf7p-gm2m-833m
- NVD CVE-2023-38325
- OSV PYSEC-2023-112
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.