Asymmetric denial of service In phpseclib
Description
phpseclib: guardrails needed on isPrime and randomPrime
Impact
Anyone trying to generate a prime and testing the primality of a number.
Patches
https://github.com/phpseclib/phpseclib/commit/ad5dbdf2129f5e0fb644637770b7f33de8ca8575
Workarounds
Using the GMP extension would probably help, assuming that one has its own guardrails.
Resources
https://github.com/phpseclib/phpseclib/commit/ad5dbdf2129f5e0fb644637770b7f33de8ca8575 https://www.usenix.org/system/files/conference/usenixsecurity25/sec25cycle1-prepub-599-shi-bing.pdf
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Package | Affected version | Patched versions |
|---|---|---|---|
debian 13 | 1.0.23-1 | ||
debian 12 | 2.0.42-1+deb12u2 | ||
debian 13 | 2.0.47-1 | ||
packagist | 1.0.23, 2.0.47, 3.0.36 | ||
debian 11 | 2.0.30-2+deb11u2 | ||
debian 12 | 3.0.19-1+deb12u3 | ||
debian 13 | 3.0.36-1 | ||
debian 11 | 1.0.19-3+deb11u2 | ||
debian 12 | 1.0.20-1+deb12u2 | ||
debian 14 | 2.0.47-1 |
1-10 of 11
10
Aliases
References