CVE-2024-27354

NameCVE-2024-27354
DescriptionAn issue was discovered in phpseclib 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36. An attacker can construct a malformed certificate containing an extremely large prime to cause a denial of service (CPU consumption for an isPrime primality check). NOTE: this issue was introduced when attempting to fix CVE-2023-27560.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3749-1, DLA-3750-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php-phpseclib (PTS)bullseye2.0.30-2+deb11u2fixed
bullseye (security)2.0.30-2+deb11u1vulnerable
bookworm2.0.42-1+deb12u2fixed
bookworm (security)2.0.42-1+deb12u1vulnerable
sid, trixie2.0.47-2fixed
php-phpseclib3 (PTS)bookworm3.0.19-1+deb12u3fixed
bookworm (security)3.0.19-1+deb12u2vulnerable
sid, trixie3.0.42-1fixed
phpseclib (PTS)bullseye1.0.19-3+deb11u2fixed
bullseye (security)1.0.19-3+deb11u1vulnerable
bookworm1.0.20-1+deb12u2fixed
bookworm (security)1.0.20-1+deb12u1vulnerable
sid, trixie1.0.23-2fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php-phpseclibsourcebuster2.0.30-2~deb10u3DLA-3750-1
php-phpseclibsourcebullseye2.0.30-2+deb11u2
php-phpseclibsourcebookworm2.0.42-1+deb12u2
php-phpseclibsource(unstable)2.0.47-1
php-phpseclib3sourcebookworm3.0.19-1+deb12u3
php-phpseclib3source(unstable)3.0.36-1
phpseclibsourcebuster1.0.19-3~deb10u3DLA-3749-1
phpseclibsourcebullseye1.0.19-3+deb11u2
phpseclibsourcebookworm1.0.20-1+deb12u2
phpseclibsource(unstable)1.0.23-1

Notes

https://github.com/phpseclib/phpseclib/commit/ad5dbdf2129f5e0fb644637770b7f33de8ca8575

Search for package or bug name: Reporting problems