GitHub Advisoryadvisory · Packagist
GHSA-ff7q-6vwh-v9m4 Name confusion in x509 Subject Alternative Name fields
HIGH
Official page ↗
- Aliases
- CVE-2023-52892
- Ecosystem
- Packagist
- Packages
- phpseclib/phpseclib
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-436
- Reviewed
- 2024-06-28
Affected packages
• Packagist phpseclib/phpseclib: < 1.0.22 → fixed in 1.0.22
• Packagist phpseclib/phpseclib: >= 2.0.0, < 2.0.46 → fixed in 2.0.46
• Packagist phpseclib/phpseclib: >= 3.0.0, < 3.0.33 → fixed in 3.0.33
Description
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.
Related
Alias · CVE (1)
- CVE-2023-52892 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… vulnerability
Weakness · CWE (1)
- CWE-436 Interpretation Conflict weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-52892 advisory
- https://github.com/phpseclib/phpseclib/issues/1943 web
- https://github.com/phpseclib/phpseclib/commit/6cd6e8ceab9f2b55c8cd81d2192bf98cbeaf4627 web
- https://github.com/phpseclib/phpseclib package
- https://github.com/phpseclib/phpseclib/releases/tag/3.0.33 web
- https://github.com/x509-name-testing/name_testing_artifacts web