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 package | Versions | Reported by |
|---|---|---|
| OpenSSL OpenSSL | from 3.0.0 before 3.0.8, from 1.1.1 before 1.1.1t, from 1.0.2 before 1.0.2zg | CVE List, NVD |
| cryptography (PyPI) | from 0.8.1 before 39.0.1 | GitHub 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.0 | GitHub Advisory Database, RustSec Advisory Database |
| stormshield stormshield_management_center | before 3.3.3 | NVD |
| stormshield stormshield_network_security | from 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.3 | NVD |
All scores
| CISA-ADP | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H |
| GitHub | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H |
| PyPA Advisory Database | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-0286 changed 2026-10-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-x4qr-2fvf-3mr5 changed 2026-09-10 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2023-0006 changed 2026-07-07 | CC0-1.0 |
| NVD | CVE-2023-0286 changed 2026-10-14 | Public domain |
| PyPA Advisory Database | PYSEC-2026-800 changed 2026-07-07 | CC-BY-4.0 |