CVE-2023-0286 X.400 address type confusion in X.509 GeneralName
Type confusion in OpenSSL allows attackers to read memory or cause denial of service when CRL checking is enabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-0286?
CVE-2023-0286 is a high-severity memory corruption vulnerability in Openssl Openssl, published on 8 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-843
Which versions are affected by CVE-2023-0286?
8 open source packages ship an affected version, including openssl-src and cryptography. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
openssl-src crates.io | All versions | 111.25.0 |
openssl-src crates.io | All versions | 111.25.0 |
openssl-src crates.io | From 0.0.0-0 | 111.25.0, 300.0.12 |
openssl-src crates.io | From 300.0.0 | 300.0.12 |
openssl-src crates.io | From 300.0.0 | 300.0.12 |
cryptography PyPI | From 0.8.1 | 39.0.1 |
2 more packages
cryptography PyPI | From 0.8.1 | 39.0.1 |
cryptography PyPI | From 0.8.1 | 39.0.1 |
Linux distribution packages (32)
compat-openssl10 AlmaLinux:8 | All versions | 1:1.0.2o-4.el8_10.1 |
compat-openssl11 AlmaLinux:9 | All versions | 1:1.1.1k-5.el9_6.1 |
openssl Red Hat:enterprise_linux:7::client | All versions | 1:1.0.2k-26.el7_9 |
openssl-debuginfo Red Hat:enterprise_linux:7::client | All versions | 1:1.0.2k-26.el7_9 |
openssl-devel Red Hat:enterprise_linux:7::client | All versions | 1:1.0.2k-26.el7_9 |
openssl-libs Red Hat:enterprise_linux:7::client | All versions | 1:1.0.2k-26.el7_9 |
openssl-perl Red Hat:enterprise_linux:7::client | All versions | 1:1.0.2k-26.el7_9 |
openssl-static Red Hat:enterprise_linux:7::client | All versions | 1:1.0.2k-26.el7_9 |
openssl-debuginfo Red Hat:enterprise_linux:7::computenode | All versions | 1:1.0.2k-26.el7_9 |
openssl-devel Red Hat:enterprise_linux:7::computenode | All versions | 1:1.0.2k-26.el7_9 |
openssl-perl Red Hat:enterprise_linux:7::computenode | All versions | 1:1.0.2k-26.el7_9 |
openssl-static Red Hat:enterprise_linux:7::computenode | All versions | 1:1.0.2k-26.el7_9 |
openssl Red Hat:enterprise_linux:7::server | All versions | 1:1.0.2k-26.el7_9 |
openssl-debuginfo Red Hat:enterprise_linux:7::server | All versions | 1:1.0.2k-26.el7_9 |
openssl-devel Red Hat:enterprise_linux:7::server | All versions | 1:1.0.2k-26.el7_9 |
openssl-libs Red Hat:enterprise_linux:7::server | All versions | 1:1.0.2k-26.el7_9 |
openssl-perl Red Hat:enterprise_linux:7::server | All versions | 1:1.0.2k-26.el7_9 |
openssl-static Red Hat:enterprise_linux:7::server | All versions | 1:1.0.2k-26.el7_9 |
openssl Red Hat:enterprise_linux:7::workstation | All versions | 1:1.0.2k-26.el7_9 |
openssl-debuginfo Red Hat:enterprise_linux:7::workstation | All versions | 1:1.0.2k-26.el7_9 |
openssl-devel Red Hat:enterprise_linux:7::workstation | All versions | 1:1.0.2k-26.el7_9 |
openssl-libs Red Hat:enterprise_linux:7::workstation | All versions | 1:1.0.2k-26.el7_9 |
openssl-perl Red Hat:enterprise_linux:7::workstation | All versions | 1:1.0.2k-26.el7_9 |
openssl-static Red Hat:enterprise_linux:7::workstation | All versions | 1:1.0.2k-26.el7_9 |
compat-openssl10 Red Hat:enterprise_linux:8::appstream | All versions | 1:1.0.2o-4.el8_10.1 |
compat-openssl10-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 1:1.0.2o-4.el8_10.1 |
compat-openssl10-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 1:1.0.2o-4.el8_10.1 |
compat-openssl11 Red Hat:enterprise_linux:9::appstream | All versions | 1:1.1.1k-5.el9_6.1 |
compat-openssl11-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 1:1.1.1k-5.el9_6.1 |
compat-openssl11-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 1:1.1.1k-5.el9_6.1 |
openssl Red Hat:rhel_aus:7.7::server | All versions | 1:1.0.2k-21.el7_7.1 |
openssl-debuginfo Red Hat:rhel_aus:7.7::server | All versions | 1:1.0.2k-21.el7_7.1 |
Products include Openssl Openssl, Stormshield Stormshield Management Center, Stormshield Stormshield Network Security.
How do I fix CVE-2023-0286?
Upgrade openssl-src to a fixed version for your release line: 111.25.0 or 300.0.12.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2023-0286 being exploited?
There is no known exploitation of CVE-2023-0286 in the wild and no public exploit code.
Other vulnerabilities in Openssl Openssl
Sources
Also known as ALPINE-CVE-2023-0286, ALSA-2025:7895, ALSA-2025:7937, AZL-13564, AZL-13701, AZL-37614 and 34 more.