CVE-2023-52892

NameCVE-2023-52892
DescriptionIn 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4518-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php-phpseclib (PTS)bullseye2.0.30-2+deb11u2vulnerable
bullseye (security)2.0.30-2+deb11u1vulnerable
bookworm2.0.42-1+deb12u2vulnerable
bookworm (security)2.0.42-1+deb12u3fixed
trixie2.0.48-3fixed
trixie (security)2.0.48-3+deb13u1fixed
forky, sid2.0.52-1fixed
php-phpseclib3 (PTS)bookworm3.0.19-1+deb12u3vulnerable
bookworm (security)3.0.19-1+deb12u4fixed
trixie3.0.43-2fixed
trixie (security)3.0.43-2+deb13u1fixed
forky, sid3.0.50-1fixed
phpseclib (PTS)bullseye1.0.19-3+deb11u2vulnerable
bullseye (security)1.0.19-3+deb11u3fixed
bookworm1.0.20-1+deb12u2vulnerable
bookworm (security)1.0.20-1+deb12u3fixed
trixie1.0.23-6fixed
trixie (security)1.0.23-6+deb13u1fixed
sid1.0.27-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php-phpseclibsourcebookworm2.0.42-1+deb12u3
php-phpseclibsource(unstable)2.0.46-1
php-phpseclib3sourcebookworm3.0.19-1+deb12u4
php-phpseclib3source(unstable)3.0.33-1
phpseclibsourcebullseye1.0.19-3+deb11u3DLA-4518-1
phpseclibsourcebookworm1.0.20-1+deb12u3
phpseclibsource(unstable)1.0.22-1

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

Search for package or bug name: Reporting problems