Information Exposure Through Timing Discrepancy in phpseclib - CVE-2026-40194
Published: April 10, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose limited security-sensitive information via a timing side channel.
The vulnerability exists due to observable timing discrepancy in SSH2::get_binary_packet() in phpseclib/Net/SSH2.php when verifying received SSH packet HMAC values. A remote attacker can send specially crafted SSH packets to disclose limited security-sensitive information via a timing side channel.
The vulnerable code path is reached for non-AEAD cipher and MAC combinations, while AEAD cipher modes use a different authentication path.
Affected software
Fedora
Ubuntu
php-phpseclib (Ubuntu package)
php-phpseclib3
nextcloud
How to mitigate CVE-2026-40194
php-phpseclib (Ubuntu package) - addressed in versions 2.0.1-1ubuntu0.1~esm1, 2.0.9-1ubuntu0.1~esm3, 2.0.23-2ubuntu0.1~esm3, 2.0.36-1ubuntu0.1~esm3, 2.0.47-1ubuntu0.1~esm1, 2.0.51-1ubuntu0.1~esm1
php-phpseclib3 - addressed in versions 3.0.56-1.fc43, 3.0.56-1.fc44
nextcloud - addressed in versions 33.0.3-1.el10_2, 33.0.3-1.el10_3, 33.0.3-1.fc42, 33.0.3-1.fc43, 33.0.3-1.fc44
External References
Related Security Bulletins
- Multiple vulnerabilities in phpseclib
- Fedora 44 update for nextcloud
- Fedora 43 update for nextcloud
- Fedora EPEL 10.3 update for nextcloud
- Fedora EPEL 10.2 update for nextcloud
- Fedora 42 update for nextcloud
- Fedora 44 update for php-phpseclib3
- Fedora 43 update for php-phpseclib3
- Ubuntu update for php-phpseclib