Vulnerability · Published Feb 8, 2023 · Assigned by openssl
CVE-2023-0286X.400 address type confusion in X.509 GeneralName
High 7.4
In plain English
A high-severity type confusion in OpenSSL from OpenSSL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 69.3% (higher than 99.4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | compat-openssl10 | 1:1.0.2o-4.el8_10.1 | ALSA-2025:7895 |
| AlmaLinux:9 | compat-openssl11 | 1:1.1.1k-5.el9_6.1 | ALSA-2025:7937 |
| AlmaLinux:8 | edk2-aarch64 | 20220126gitbb1bba3d77-4.el8 | ALSA-2023:2932 |
| AlmaLinux:9 | edk2-aarch64 | 20221207gitfff6d81270b5-9.el9_2 | ALSA-2023:2165 |
| AlmaLinux:8 | edk2-ovmf | 20220126gitbb1bba3d77-4.el8 | ALSA-2023:2932 |
| AlmaLinux:9 | edk2-ovmf | 20221207gitfff6d81270b5-9.el9_2 | ALSA-2023:2165 |
| AlmaLinux:9 | edk2-tools | 20221207gitfff6d81270b5-9.el9_2 | ALSA-2023:2165 |
| AlmaLinux:9 | edk2-tools-doc | 20221207gitfff6d81270b5-9.el9_2 | ALSA-2023:2165 |
| AlmaLinux:8 | openssl | 1:1.1.1k-9.el8_7 | ALSA-2023:1405 |
| AlmaLinux:9 | openssl | 1:3.0.1-47.el9_1 | ALSA-2023:0946 |
| AlmaLinux:8 | openssl-devel | 1:1.1.1k-9.el8_7 | ALSA-2023:1405 |
| AlmaLinux:9 | openssl-devel | 1:3.0.1-47.el9_1 | ALSA-2023:0946 |
| AlmaLinux:8 | openssl-libs | 1:1.1.1k-9.el8_7 | ALSA-2023:1405 |
| AlmaLinux:9 | openssl-libs | 1:3.0.1-47.el9_1 | ALSA-2023:0946 |
| AlmaLinux:8 | openssl-perl | 1:1.1.1k-9.el8_7 | ALSA-2023:1405 |
| AlmaLinux:9 | openssl-perl | 1:3.0.1-47.el9_1 | ALSA-2023:0946 |
| Alpine:v3.20 | openssl | 3.0.8-r0 | ALPINE-CVE-2023-0286 |
| Alpine:v3.21 | openssl | 3.0.8-r0 | ALPINE-CVE-2023-0286 |
| Alpine:v3.22 | openssl | 3.0.8-r0 | ALPINE-CVE-2023-0286 |
| Alpine:v3.23 | openssl | 3.0.8-r0 | ALPINE-CVE-2023-0286 |
| Alpine:v3.24 | openssl | 3.0.8-r0 | ALPINE-CVE-2023-0286 |
| Debian:12 | openssl | 3.0.8-1 | DEBIAN-CVE-2023-0286 |
| Debian:13 | openssl | 3.0.8-1 | DEBIAN-CVE-2023-0286 |
| Debian:14 | openssl | 3.0.8-1 | DEBIAN-CVE-2023-0286 |
| PyPI | cryptography | 39.0.1 | GHSA-x4qr-2fvf-3mr5 |
| PyPI | cryptography | 39.0.1 | PYSEC-2026-800 |
| Rocky Linux:8 | compat-openssl10 | 1:1.0.2o-4.el8_10.1 | RLSA-2025:7895 |
| Rocky Linux:9 | compat-openssl11 | 1:1.1.1k-5.el9_6.1 | RLSA-2025:7937 |
| Rocky Linux:8 | openssl | 1:1.1.1k-9.el8_7 | RLSA-2023:1405 |
| Rocky Linux:9 | openssl | 1:3.0.1-47.el9_1 | RLSA-2023:0946 |
| Ubuntu:22.04:LTS | edk2 | 2022.02-3ubuntu0.22.04.4 | USN-7894-1 |
| Ubuntu:22.04:LTS | edk2 | 2022.02-3ubuntu0.22.04.4 | UBUNTU-CVE-2023-0286 |
| Ubuntu:24.04:LTS | edk2 | 2024.02-2ubuntu0.6 | USN-7894-1 |
| Ubuntu:22.04:LTS | nodejs | 12.22.9~dfsg-1ubuntu3.3 | USN-6564-1 |
| Ubuntu:22.04:LTS | nodejs | 12.22.9~dfsg-1ubuntu3.3 | UBUNTU-CVE-2023-0286 |
| Ubuntu:22.04:LTS | openssl | 3.0.2-0ubuntu1.8 | USN-5844-1 |
| Ubuntu:22.04:LTS | openssl | 3.0.2-0ubuntu1.8 | UBUNTU-CVE-2023-0286 |
Affected products (as reported)
Weakness: CWE-843 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
References
- OpenSSL Advisory vendor-advisory
- 3.0.8 git commit patch
- 1.1.1t git commit patch
- 1.0.2zg patch (premium) patch
- 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