Описание
phpseclib is a PHP secure communications library. Starting in 0.1.1 and prior to 3.0.51, 2.0.53, and 1.0.28, phpseclib\Net\SSH2::get_binary_packet() uses PHP's != operator to compare a received SSH packet HMAC against the locally computed HMAC. != on equal-length binary strings in PHP uses memcmp(), which short-circuits on the first differing byte. This is a real variable-time comparison (CWE-208), proven by scaling benchmarks. This vulnerability is fixed in 3.0.51, 2.0.53, and 1.0.28.
Пакеты
| Пакет | Статус | Версия исправления | Релиз | Тип |
|---|---|---|---|---|
| php-phpseclib3 | fixed | 3.0.51-1 | package | |
| php-phpseclib3 | fixed | 3.0.43-2+deb13u2 | trixie | package |
| php-phpseclib3 | fixed | 3.0.19-1+deb12u5 | bookworm | package |
| php-phpseclib | fixed | 2.0.53-1 | package | |
| php-phpseclib | fixed | 2.0.48-3+deb13u2 | trixie | package |
| php-phpseclib | fixed | 2.0.42-1+deb12u4 | bookworm | package |
| phpseclib | fixed | 1.0.28-1 | package | |
| phpseclib | fixed | 1.0.23-6+deb13u2 | trixie | package |
| phpseclib | fixed | 1.0.20-1+deb12u4 | bookworm | package |
| phpseclib | postponed | bullseye | package |
Примечания
https://github.com/phpseclib/phpseclib/security/advisories/GHSA-r854-jrxh-36qx
Fixed by: https://github.com/phpseclib/phpseclib/commit/ffe48b6b1b1af6963327f0a5330e3aa004a194ac (3.0.51, 2.0.53, 1.0.28)
EPSS
Связанные уязвимости
phpseclib is a PHP secure communications library. Starting in 0.1.1 and prior to 3.0.51, 2.0.53, and 1.0.28, phpseclib\Net\SSH2::get_binary_packet() uses PHP's != operator to compare a received SSH packet HMAC against the locally computed HMAC. != on equal-length binary strings in PHP uses memcmp(), which short-circuits on the first differing byte. This is a real variable-time comparison (CWE-208), proven by scaling benchmarks. This vulnerability is fixed in 3.0.51, 2.0.53, and 1.0.28.
phpseclib is a PHP secure communications library. Starting in 0.1.1 and prior to 3.0.51, 2.0.53, and 1.0.28, phpseclib\Net\SSH2::get_binary_packet() uses PHP's != operator to compare a received SSH packet HMAC against the locally computed HMAC. != on equal-length binary strings in PHP uses memcmp(), which short-circuits on the first differing byte. This is a real variable-time comparison (CWE-208), proven by scaling benchmarks. This vulnerability is fixed in 3.0.51, 2.0.53, and 1.0.28.
phpseclib has a variable-time HMAC comparison in SSH2::get_binary_packet() using != instead of hash_equals()
EPSS