Name | CVE-2023-52892 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
php-phpseclib (PTS) | bullseye | 2.0.30-2+deb11u2 | vulnerable |
| bullseye (security) | 2.0.30-2+deb11u1 | vulnerable |
| bookworm | 2.0.42-1+deb12u2 | vulnerable |
| bookworm (security) | 2.0.42-1+deb12u1 | vulnerable |
| sid, trixie | 2.0.47-3 | fixed |
php-phpseclib3 (PTS) | bookworm | 3.0.19-1+deb12u3 | vulnerable |
| bookworm (security) | 3.0.19-1+deb12u2 | vulnerable |
| sid, trixie | 3.0.42-1 | fixed |
phpseclib (PTS) | bullseye | 1.0.19-3+deb11u2 | vulnerable |
| bullseye (security) | 1.0.19-3+deb11u1 | vulnerable |
| bookworm | 1.0.20-1+deb12u2 | vulnerable |
| bookworm (security) | 1.0.20-1+deb12u1 | vulnerable |
| sid, trixie | 1.0.23-3 | fixed |
The information below is based on the following data on fixed versions.
Notes
[bookworm] - phpseclib <no-dsa> (Minor issue; can be fixed via pu)
[bullseye] - phpseclib <no-dsa> (Minor issue; can be fixed via pu)
[bookworm] - php-phpseclib <no-dsa> (Minor issue; can be fixed via pu)
[bullseye] - php-phpseclib <no-dsa> (Minor issue; can be fixed via pu)
[bookworm] - php-phpseclib3 <no-dsa> (Minor issue; can be fixed via pu)
https://github.com/phpseclib/phpseclib/commit/6cd6e8ceab9f2b55c8cd81d2192bf98cbeaf4627 (1.0.22, 2.0.46, 3.0.33)
https://github.com/phpseclib/phpseclib/issues/1943