{"id":"CVE-2023-52892","aliases":["CVE-2023-52892","GHSA-ff7q-6vwh-v9m4"],"related":[],"kind":"vulnerability","state":"published","title":"Name confusion in x509 Subject Alternative Name fields","summary":"In phpseclib before 1.0.22, 2.x before 2.0.46, and 3.x before 3.0.33, some characters in Subject Alternative Name fields in TLS certificates are incorrectly allowed to have a special meaning in regular expressions (such as a + wildcard), leading to name confusion in X.509 certificate host verification.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In phpseclib before 1.0.22, 2.x before 2.0.46, and 3.x before 3.0.33, some characters in Subject Alternative Name fields in TLS certificates are incorrectly allowed to have a special meaning in regular expressions (such as a + wildcard), leading to name confusion in X.509 certificate host verification.","source":"cvelist"},{"lang":"es","text":"En phpseclib anterior a 1.0.22, 2.x anterior a 2.0.46 y 3.x anterior a 3.0.33, se permite incorrectamente que algunos caracteres en los campos Nombre alternativo del sujeto en los certificados TLS tengan un significado especial en expresiones regulares (como + comodín), lo que genera confusión de nombres en la verificación del host de certificados X.509.","source":"nvd"}],"published":"2024-06-27T00:00:00.000Z","modified":"2026-06-17T06:43:52.450Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-436"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.0.22","status":"affected"},{"type":"custom","introduced":"2.0","fixed":"2.0.46","status":"affected"},{"type":"custom","introduced":"3.0","fixed":"3.0.33","status":"affected"}],"vendor":"phpseclib","product":"phpseclib","cpe":"cpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.22"}],"ecosystem":"Packagist","package":"phpseclib/phpseclib","purl":"pkg:composer/phpseclib/phpseclib","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.46"}],"ecosystem":"Packagist","package":"phpseclib/phpseclib","purl":"pkg:composer/phpseclib/phpseclib","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"3.0.33"}],"ecosystem":"Packagist","package":"phpseclib/phpseclib","purl":"pkg:composer/phpseclib/phpseclib","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.0.0","fixed":"1.0.22"},{"status":"affected","introduced":"2.0.0","fixed":"2.0.46"},{"status":"affected","introduced":"3.0.0","fixed":"3.0.33"}],"vendor":"phpseclib","product":"phpseclib","cpe":"cpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/phpseclib/phpseclib/issues/1943","tags":["exploit","issue-tracking","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/phpseclib/phpseclib/releases/tag/3.0.33","tags":["release-notes","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/phpseclib/phpseclib/commit/6cd6e8ceab9f2b55c8cd81d2192bf98cbeaf4627","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/x509-name-testing/name_testing_artifacts","tags":["not-applicable","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52892","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/phpseclib/phpseclib","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2024-08-21T19:54:11.710Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-52892","url":"https://www.cve.org/CVERecord?id=CVE-2023-52892","licence":"CVE Terms of Use","modified":"2024-08-21T20:02:23.834Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ff7q-6vwh-v9m4","url":"https://github.com/advisories/GHSA-ff7q-6vwh-v9m4","licence":"CC-BY-4.0","modified":"2024-06-28T19:13:30.745Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-52892","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52892","licence":"Public domain","modified":"2026-06-17T06:43:52.450Z"}],"updatedAt":"2026-11-25T22:58:34.186Z","epss":{"score":0.00376,"percentile":0.33596,"date":"2026-12-02T12:00:21.000Z"}}