CVE-2023-0286
X.400 address type confusion in X.509 GeneralName
Also known as GHSA-x4qr-2fvf-3mr5, PYSEC-2026-800, RUSTSEC-2023-0006
Mitigation
- Upgrade cryptography to 39.0.1 or later.
- Upgrade openssl-src to one of 111.25.0, 300.0.12 (or later in the same release line).
Who should check
- Projects that depend on PyPI package cryptography (>= 0.8.1, < 39.0.1)
- Projects that depend on crates.io package openssl-src (< 111.25.0)
- Anyone running OpenSSL >= 3.0.0, < 3.0.8; >= 1.1.1, < 1.1.1t; >= 1.0.2, < 1.0.2zg
Vulnerability facts
- Affected
- cryptography >= 0.8.1, < 39.0.1; openssl-src < 111.25.0
- Fixed in
- 39.0.1, 111.25.0, 300.0.12
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: High
- EPSS
- 5.22% chance of exploitation in 30 days (percentile 93, 2026-11-26)
- CWE
- CWE-843
- Modified
Description
There is a type confusion vulnerability relating to X.400 address processing inside an X.509 GeneralName. X.400 addresses were parsed as an ASN1_STRING but the public structure definition for GENERAL_NAME incorrectly specified the type of the x400Address field as ASN1_TYPE. This field is subsequently interpreted by the OpenSSL function GENERAL_NAME_cmp as an ASN1_TYPE rather than an ASN1_STRING. When CRL checking is enabled (i.e. the application sets the X509_V_FLAG_CRL_CHECK flag), this vulnerability may allow an attacker to pass arbitrary pointers to a memcmp call, enabling them to read memory contents or enact a denial of service. In most cases, the attack requires the attacker to provide both the certificate chain and CRL, neither of which need to have a valid signature. If the attacker only controls one of these inputs, the other input must already contain an X.400 address as a CRL distribution point, which is uncommon. As such, this vulnerability is most likely to only affect applications which have implemented their own functionality for retrieving CRLs over a network.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI cryptography | >= 0.8.1, < 39.0.1 | 39.0.1 | osv |
| crates.io openssl-src | < 111.25.0 | 111.25.0, 300.0.12 | osv |
| OpenSSL | >= 3.0.0, < 3.0.8; >= 1.1.1, < 1.1.1t; >= 1.0.2, < 1.0.2zg | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-0286. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-0286.md Affected: cryptography >= 0.8.1, < 39.0.1; openssl-src < 111.25.0 Fixed in: 39.0.1, 111.25.0, 300.0.12 Steps: 1. Search this machine and project for cryptography (PyPI), openssl-src (crates.io), OpenSSL: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=2f7530077e0ef79d98718138716bc51ca0cad658
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=2c6c9d439b484e1ba9830d8454a34fa4f80fdfe9
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=fd2af07dc083a350c959147097003a14a5e8ac4d
Other
- https://ftp.openbsd.org/pub/OpenBSD/patches/7.2/common/018_x509.patch.sig
- https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.6.2-relnotes.txt
- https://security.gentoo.org/glsa/202402-08
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2023-0003
- https://cert-portal.siemens.com/productcert/html/ssa-203374.html
- https://cert-portal.siemens.com/productcert/html/ssa-794697.html
- https://cert-portal.siemens.com/productcert/html/ssa-561322.html
- https://cert-portal.siemens.com/productcert/html/ssa-264815.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-943925.html
- https://cert-portal.siemens.com/productcert/html/ssa-455250.html
- https://cert-portal.siemens.com/productcert/html/ssa-556635.html
- https://cert-portal.siemens.com/productcert/html/ssa-879734.html
- https://cert-portal.siemens.com/productcert/html/ssa-625862.html
- https://cert-portal.siemens.com/productcert/html/ssa-337522.html
- https://cert-portal.siemens.com/productcert/html/ssa-769027.html
- https://cert-portal.siemens.com/productcert/html/ssa-028723.html
- https://access.redhat.com/security/cve/cve-2023-0286
- https://github.com/pyca/cryptography
- https://pypi.org/project/cryptography
- https://crates.io/crates/openssl-src
FAQ
Is CVE-2023-0286 being exploited?
There is no confirmed exploitation: CVE-2023-0286 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 5.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-0286?
High: CVSS 7.4 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2023-0286?
cryptography >= 0.8.1, < 39.0.1; openssl-src < 111.25.0.
Is there a fix for CVE-2023-0286?
Yes. Fixed in 39.0.1, 111.25.0, 300.0.12. Upgrade cryptography to 39.0.1 or later. Upgrade openssl-src to one of 111.25.0, 300.0.12 (or later in the same release line).
How do I check if I'm affected by CVE-2023-0286?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.