| 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, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-4518-1 |
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+deb12u3 | fixed |
| trixie | 2.0.48-3 | fixed |
| trixie (security) | 2.0.48-3+deb13u1 | fixed |
| forky, sid | 2.0.52-1 | fixed |
| php-phpseclib3 (PTS) | bookworm | 3.0.19-1+deb12u3 | vulnerable |
| bookworm (security) | 3.0.19-1+deb12u4 | fixed |
| trixie | 3.0.43-2 | fixed |
| trixie (security) | 3.0.43-2+deb13u1 | fixed |
| forky, sid | 3.0.50-1 | fixed |
| phpseclib (PTS) | bullseye | 1.0.19-3+deb11u2 | vulnerable |
| bullseye (security) | 1.0.19-3+deb11u3 | fixed |
| bookworm | 1.0.20-1+deb12u2 | vulnerable |
| bookworm (security) | 1.0.20-1+deb12u3 | fixed |
| trixie | 1.0.23-6 | fixed |
| trixie (security) | 1.0.23-6+deb13u1 | fixed |
| sid | 1.0.27-1 | fixed |
The information below is based on the following data on fixed versions.
Notes
[bullseye] - php-phpseclib <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