HIGH7.5
GHSA-ff7q-6vwh-v9m4
Name confusion in x509 Subject Alternative Name fields
Quick fix
GHSA-ff7q-6vwh-v9m4 — phpseclib/phpseclib: upgrade to the fixed version with the command below.
composer require phpseclib/phpseclib:^1.0.22Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/phpseclib/phpseclib
Introduced in:
0Fixed in: 1.0.22Fix
composer require phpseclib/phpseclib:^1.0.22Packagist/phpseclib/phpseclib
Introduced in:
2.0.0Fixed in: 2.0.46Fix
composer require phpseclib/phpseclib:^2.0.46Packagist/phpseclib/phpseclib
Introduced in:
3.0.0Fixed in: 3.0.33Fix
composer require phpseclib/phpseclib:^3.0.33References
- 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]