Ubuntu CVE Tracker
UBUNTU-CVE-2023-52892
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:16.04:LTS | php-phpseclib | All versions before 2.0.1-1ubuntu0.1~esm2 (fixed in 2.0.1-1ubuntu0.1~esm2) |
| Ubuntu:Pro:16.04:LTS | phpseclib | All versions before 1.0.1-3ubuntu0.1+esm1 (fixed in 1.0.1-3ubuntu0.1+esm1) |
| Ubuntu:Pro:18.04:LTS | php-phpseclib | All versions before 2.0.9-1ubuntu0.1~esm2 (fixed in 2.0.9-1ubuntu0.1~esm2) |
| Ubuntu:Pro:18.04:LTS | phpseclib | All versions before 1.0.9-1ubuntu0.1~esm1 (fixed in 1.0.9-1ubuntu0.1~esm1) |
| Ubuntu:Pro:20.04:LTS | php-phpseclib | All versions before 2.0.23-2ubuntu0.1~esm2 (fixed in 2.0.23-2ubuntu0.1~esm2) |
| Ubuntu:Pro:20.04:LTS | phpseclib | All versions before 1.0.18-2ubuntu0.1~esm1 (fixed in 1.0.18-2ubuntu0.1~esm1) |
| Ubuntu:22.04:LTS | phpseclib | All versions before 1.0.20-1+deb12u3build0.22.04.1 (fixed in 1.0.20-1+deb12u3build0.22.04.1) |
| Ubuntu:Pro:22.04:LTS | php-phpseclib | All versions before 2.0.36-1ubuntu0.1~esm2 (fixed in 2.0.36-1ubuntu0.1~esm2) |
| Ubuntu:Pro:22.04:LTS | php-phpseclib3 | All versions before 3.0.13-1ubuntu0.1~esm1 (fixed in 3.0.13-1ubuntu0.1~esm1) |
| Ubuntu:Pro:22.04:LTS | phpseclib | All versions before 1.0.20-1ubuntu0.1~esm1 (fixed in 1.0.20-1ubuntu0.1~esm1) |
References
- https://ubuntu.com/security/CVE-2023-52892
- https://www.cve.org/CVERecord?id=CVE-2023-52892
- https://github.com/phpseclib/phpseclib/commit/6cd6e8ceab9f2b55c8cd81d2192bf98cbeaf4627
- https://github.com/phpseclib/phpseclib/issues/1943
- https://github.com/phpseclib/phpseclib/releases/tag/3.0.33
- https://github.com/phpseclib/phpseclib/commit/6cd6e8ceab9f2b55c8cd81d2192bf98cbeaf4627
- https://github.com/x509-name-testing/name_testing_artifacts
- https://ubuntu.com/security/notices/USN-7404-1
- https://ubuntu.com/security/notices/USN-8769-1