# CVE-2023-0286: X.400 address type confusion in X.509 GeneralName

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.4
- **CVSS:** 7.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 5.22% (percentile 93, 2026-11-26)
- **CWE:** CWE-843
- **Aliases:** GHSA-x4qr-2fvf-3mr5, PYSEC-2026-800, RUSTSEC-2023-0006
- **Published:** 2023-02-07T12:00:00.000Z
- **Modified:** 2026-10-14T20:17:22.450Z

## 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

## 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

- PyPI `cryptography`: affected \>= 0.8.1, \< 39.0.1; fixed 39.0.1 (osv)
- crates.io `openssl-src`: affected \< 111.25.0; fixed 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)

## 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).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://www.openssl.org/news/secadv/20230207.txt>
- vendor: <https://github.com/pyca/cryptography/security/advisories/GHSA-x4qr-2fvf-3mr5>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-0286>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2023-0006.html>
- vendor: <https://github.com/advisories/GHSA-x4qr-2fvf-3mr5>
- patch: <https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=2f7530077e0ef79d98718138716bc51ca0cad658>
- patch: <https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=2c6c9d439b484e1ba9830d8454a34fa4f80fdfe9>
- patch: <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>
- other: <https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.6.2-relnotes.txt>
- other: <https://security.gentoo.org/glsa/202402-08>
- other: <https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2023-0003>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-203374.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-794697.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-561322.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-264815.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-943925.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-455250.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-556635.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-879734.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-625862.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-337522.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-769027.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-028723.html>
- other: <https://access.redhat.com/security/cve/cve-2023-0286>
- other: <https://github.com/pyca/cryptography>
- other: <https://pypi.org/project/cryptography>
- other: <https://crates.io/crates/openssl-src>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-0286>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-800> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-x4qr-2fvf-3mr5> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2023-0006> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-0286> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-0286>
