Input validation error in phpseclib - CVE-2024-27354
Published: February 27, 2024 / Updated: April 28, 2026
Vulnerability details
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to insufficient validation of user-supplied input in isPrime() and randomPrime() functions. A remote attacker can pass specially crafted input to the application and perform a denial of service (DoS) attack.
Affected software
snipe-it
Ubuntu
Fedora
php-phpseclib (Ubuntu package)
php-phpseclib
How to mitigate CVE-2024-27354
snipe-it - update to 6.3.3
php-phpseclib (Ubuntu package) - addressed in versions 1.0.1-3ubuntu0.1+esm1, 1.0.9-1ubuntu0.1~esm1, 1.0.18-2ubuntu0.1~esm1, 1.0.20-1ubuntu0.1~esm1, 2.0.1-1ubuntu0.1~esm2, 2.0.9-1ubuntu0.1~esm2, 2.0.23-2ubuntu0.1~esm2, 2.0.36-1ubuntu0.1~esm2, 3.0.13-1ubuntu0.1~esm1
php-phpseclib - addressed in versions 2.0.48-1.fc40, 2.0.48-1.fc41