Lack of data validation - Path Traversal In php-phpseclib
Description
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.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
debian 12 | 3.0.19-1+deb12u5 | ||
debian 12 | 2.0.42-1+deb12u4 | ||
debian 11 | 2.0.30-2+deb11u3 | ||
debian 13 | 2.0.48-3+deb13u2 | ||
debian 13 | 3.0.43-2+deb13u2 | ||
debian 11 | - | ||
packagist | 1.0.28, 2.0.53, 3.0.51 | ||
debian 12 | 1.0.20-1+deb12u4 | ||
debian 13 | 1.0.23-6+deb13u2 | ||
debian 14 | 3.0.51-1 |
1-10 of 11
10
Aliases
References