{"id":"CVE-2023-0286","aliases":["CVE-2023-0286","GHSA-x4qr-2fvf-3mr5","PYSEC-2026-800","RUSTSEC-2023-0006"],"related":[],"kind":"vulnerability","state":"published","title":"X.400 address type confusion in X.509 GeneralName","summary":"There is a type confusion vulnerability relating to X.400 address processing\ninside an X.509 GeneralName. X.400 addresses were parsed as an ASN1_STRING but\nthe public structure definition for GENERAL_NAME incorrectly specified the type\nof the x400Address field as ASN1_TYPE. This field is subsequently interpreted by\nthe OpenSSL function GENERAL_NAME_cmp as an ASN1_TYPE rather than an\nASN1_STRING.\n\nWhen CRL checking is enabled (i.e. the application sets the\nX509_V_FLAG_CRL_CHECK flag), this vulnerability may allow an attacker to pass\narbitrary pointers to a memcmp call, enabling them to read memory contents or\nenact a denial of service. In most cases, the attack requires the attacker to\nprovide both the certificate chain and CRL, neither of which need to have a\nvalid signature. If the attacker only controls one of these inputs, the other\ninput must already contain an X.400 address as a CRL distribution point, which\nis uncommon. As such, this vulnerability is most likely to only affect\napplications which have implemented their own functionality for retrieving CRLs\nover a network.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"There is a type confusion vulnerability relating to X.400 address processing\ninside an X.509 GeneralName. X.400 addresses were parsed as an ASN1_STRING but\nthe public structure definition for GENERAL_NAME incorrectly specified the type\nof the x400Address field as ASN1_TYPE. This field is subsequently interpreted by\nthe OpenSSL function GENERAL_NAME_cmp as an ASN1_TYPE rather than an\nASN1_STRING.\n\nWhen CRL checking is enabled (i.e. the application sets the\nX509_V_FLAG_CRL_CHECK flag), this vulnerability may allow an attacker to pass\narbitrary pointers to a memcmp call, enabling them to read memory contents or\nenact a denial of service. In most cases, the attack requires the attacker to\nprovide both the certificate chain and CRL, neither of which need to have a\nvalid signature. If the attacker only controls one of these inputs, the other\ninput must already contain an X.400 address as a CRL distribution point, which\nis uncommon. As such, this vulnerability is most likely to only affect\napplications which have implemented their own functionality for retrieving CRLs\nover a network.","source":"cvelist"},{"lang":"en","text":"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.\n\nIf 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"There is a type confusion vulnerability relating to X.400 address processing\ninside an X.509 `GeneralName`. X.400 addresses were parsed as an `ASN1_STRING` but\nthe public structure definition for `GENERAL_NAME` incorrectly specified the type\nof the `x400Address` field as `ASN1_TYPE`. This field is subsequently interpreted by\nthe OpenSSL function `GENERAL_NAME_cmp` as an `ASN1_TYPE` rather than an\n`ASN1_STRING`.\n\nWhen CRL checking is enabled (i.e. the application sets the\n`X509_V_FLAG_CRL_CHECK` flag), this vulnerability may allow an attacker to pass\narbitrary pointers to a `memcmp` call, enabling them to read memory contents or\nenact a denial of service. In most cases, the attack requires the attacker to\nprovide both the certificate chain and CRL, neither of which need to have a\nvalid signature. If the attacker only controls one of these inputs, the other\ninput must already contain an X.400 address as a CRL distribution point, which\nis uncommon. As such, this vulnerability is most likely to only affect\napplications which have implemented their own functionality for retrieving CRLs\nover a network.","format":"markdown","source":"rustsec"}],"published":"2023-02-07T12:00:00.000Z","modified":"2026-10-14T20:17:22.450Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H","score":7.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H","score":7.4,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H","score":7.4,"rating":"HIGH"}],"cwes":["CWE-843"],"affected":[{"ranges":[{"type":"semver","introduced":"3.0.0","fixed":"3.0.8","status":"affected"},{"type":"custom","introduced":"1.1.1","fixed":"1.1.1t","status":"affected"},{"type":"custom","introduced":"1.0.2","fixed":"1.0.2zg","status":"affected"}],"vendor":"OpenSSL","product":"OpenSSL","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.8.1","status":"affected","fixed":"39.0.1"}],"ecosystem":"PyPI","package":"cryptography","purl":"pkg:pypi/cryptography","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"111.25.0"}],"ecosystem":"crates.io","package":"openssl-src","purl":"pkg:cargo/openssl-src","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"300.0.0","status":"affected","fixed":"300.0.12"}],"ecosystem":"crates.io","package":"openssl-src","purl":"pkg:cargo/openssl-src","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"111.25.0"},{"type":"semver","introduced":"300.0.0","status":"affected","fixed":"300.0.12"}],"ecosystem":"crates.io","package":"openssl-src","purl":"pkg:cargo/openssl-src","source":"rustsec"},{"ranges":[{"status":"affected","introduced":"1.0.2","fixed":"1.0.2zg"},{"status":"affected","introduced":"1.1.1","fixed":"1.1.1t"},{"status":"affected","introduced":"3.0.0","fixed":"3.0.8"}],"vendor":"openssl","product":"openssl","cpe":"cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"3.3.3"}],"vendor":"stormshield","product":"stormshield_management_center","cpe":"cpe:2.3:a:stormshield:stormshield_management_center:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"2.7.0","fixed":"2.7.11"},{"status":"affected","introduced":"2.8.0","fixed":"3.7.34"},{"status":"affected","introduced":"3.8.0","fixed":"3.11.22"},{"status":"affected","introduced":"4.0.0","fixed":"4.3.16"},{"status":"affected","introduced":"4.4.0","fixed":"4.6.3"}],"vendor":"stormshield","product":"stormshield_network_security","cpe":"cpe:2.3:a:stormshield:stormshield_network_security:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0.8.1","status":"affected","fixed":"39.0.1"}],"ecosystem":"PyPI","package":"cryptography","purl":"pkg:pypi/cryptography","source":"pysec"}],"references":[{"url":"https://www.openssl.org/news/secadv/20230207.txt","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd","pysec"]},{"url":"https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=2f7530077e0ef79d98718138716bc51ca0cad658","tags":["patch","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=2c6c9d439b484e1ba9830d8454a34fa4f80fdfe9","tags":["patch","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=fd2af07dc083a350c959147097003a14a5e8ac4d","tags":["patch","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://ftp.openbsd.org/pub/OpenBSD/patches/7.2/common/018_x509.patch.sig","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-3.6.2-relnotes.txt","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://security.gentoo.org/glsa/202402-08","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2023-0003","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-203374.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-794697.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-561322.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-264815.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-943925.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-455250.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-556635.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-879734.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-625862.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-337522.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-769027.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-028723.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/pyca/cryptography/security/advisories/GHSA-x4qr-2fvf-3mr5","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-0286","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://access.redhat.com/security/cve/cve-2023-0286","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pyca/cryptography","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0006.html","tags":["advisory","web"],"sources":["ghsa","rustsec","pysec"]},{"url":"https://crates.io/crates/openssl-src","tags":["package"],"sources":["rustsec"]},{"url":"https://pypi.org/project/cryptography","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-x4qr-2fvf-3mr5","tags":["advisory"],"sources":["pysec"]}],"credits":["David Benjamin (Google)","Hugo Landau"],"assigner":"openssl","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-03-06T15:57:22.031Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-0286","url":"https://www.cve.org/CVERecord?id=CVE-2023-0286","licence":"CVE Terms of Use","modified":"2026-10-14T19:23:44.227Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x4qr-2fvf-3mr5","url":"https://github.com/advisories/GHSA-x4qr-2fvf-3mr5","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:52.275Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2023-0006","url":"https://rustsec.org/advisories/RUSTSEC-2023-0006.html","licence":"CC0-1.0","modified":"2026-07-07T11:56:31.245Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-0286","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-0286","licence":"Public domain","modified":"2026-10-14T20:17:22.450Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-800","url":"https://osv.dev/vulnerability/PYSEC-2026-800","licence":"CC-BY-4.0","modified":"2026-07-07T11:56:31.245Z"}],"updatedAt":"2026-11-25T22:58:21.880Z","epss":{"score":0.61757,"percentile":0.99188,"date":"2026-12-01T12:00:22.000Z"}}