GHSA-r854-jrxh-36qx · Severity: low · Ecosystem: composer — phpseclib has a variable-time HMAC comparison in SSH2::get_binary_packet() using != instead of hash_equals()
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.
Conclusion & alert: CVE-2026-40194 is rated Low Risk (23.9/100): CVSS Low severity, with low exploitation likelihood (EPSS 0.33%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.01% | 0.33% | +0.32% |
| 2 | 2026-04-11 | — | 0.01% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 3.7 | 3.1 | LOW |
|
2.2 | 1.4 | [email protected] |
GHSA-r854-jrxh-36qx · Severity: low · Ecosystem: composer — phpseclib has a variable-time HMAC comparison in SSH2::get_binary_packet() using != instead of hash_equals()
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2026-40194 not yet assigned priority: Debian including 3 source packages (php-phpseclib, php-phpseclib3, phpseclib), 13 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 11, open 2. | https://security-tracker.debian.org/tracker/CVE-2026-40194 |
ubuntu
|
medium | CVE-2026-40194 medium priority: Ubuntu including 3 source packages (php-phpseclib, php-phpseclib3, phpseclib), 21 status rows across 8 suites (bionic, focal, jammy, noble, questing, resolute, upstream, xenial): needs-triage 19, released 2. | https://ubuntu.com/security/CVE-2026-40194 |