CVE-2023-0286
JSON

7.4high

X.400 address type confusion in X.509 GeneralName

Severity
7.4high CVSS:3.1 by CISA-ADP
Exploit likelihood
61.8% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
openssl
Also known as
GHSA-x4qr-2fvf-3mr5PYSEC-2026-800RUSTSEC-2023-0006

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

Product or packageVersionsReported by
OpenSSL OpenSSLfrom 3.0.0 before 3.0.8, from 1.1.1 before 1.1.1t, from 1.0.2 before 1.0.2zgCVE List, NVD
cryptography (PyPI)from 0.8.1 before 39.0.1GitHub Advisory Database, PyPA Advisory Database
openssl-src (crates.io)before 111.25.0, from 300.0.0 before 300.0.12, from 0.0.0-0 before 111.25.0GitHub Advisory Database, RustSec Advisory Database
stormshield stormshield_management_centerbefore 3.3.3NVD
stormshield stormshield_network_securityfrom 2.7.0 before 2.7.11, from 2.8.0 before 3.7.34, from 3.8.0 before 3.11.22, from 4.0.0 before 4.3.16, from 4.4.0 before 4.6.3NVD

All scores

CISA-ADP7.4high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
GitHub7.4high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
NVD7.4high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
PyPA Advisory Database7.4high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H

Classification

CWE-843

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

pyca/cryptography's wheels include a statically linked copy of OpenSSL. The versions of OpenSSL included in cryptography 0.8.1-39.0.0 are vulnerable to a security issue. More details about the vulnerabilities themselves can be found in https://www.openssl.org/news/secadv/20221213.txt and https://www.openssl.org/news/secadv/20230207.txt.

If you are building cryptography source ("sdist") then you are responsible for upgrading your copy of OpenSSL. Only users installing from wheels built by the cryptography project (i.e., those distributed on PyPI) need to update their cryptography versions.

RustSec Advisory Database

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.

References

https://www.openssl.org/news/secadv/20230207.txtvendor-advisory, web
https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=2f7530077e0ef79d98718138716bc51ca0cad658patch, vendor-advisory, web
https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=2c6c9d439b484e1ba9830d8454a34fa4f80fdfe9patch, vendor-advisory, web
https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=fd2af07dc083a350c959147097003a14a5e8ac4dpatch, vendor-advisory, web
https://ftp.openbsd.org/pub/OpenBSD/patches/7.2/common/018_x509.patch.sigthird-party-advisory, web
https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.6.2-relnotes.txtthird-party-advisory, web
https://security.gentoo.org/glsa/202402-08web
https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2023-0003web
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

Sources

SourceRecordLicence
CVE ListCVE-2023-0286 changed 2026-10-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-x4qr-2fvf-3mr5 changed 2026-09-10CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2023-0006 changed 2026-07-07CC0-1.0
NVDCVE-2023-0286 changed 2026-10-14Public domain
PyPA Advisory DatabasePYSEC-2026-800 changed 2026-07-07CC-BY-4.0