CVE-2026-40194
Reported by github_m · Published April 10, 2026
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| phpseclib | phpseclib | >= 0.1.1, < 1.0.28, >= 2.0.0, < 2.0.53, >= 3.0.0, < 3.0.51 |
| phpseclib | phpseclib | 0.1.1, 3.0.0, 2.0.0 |
| phpseclib | phpseclib | 0.1.1, 2.0.0, 3.0.0 |
| wolfi | nextcloud-server-33 | 0 |
| chainguard | nextcloud-server-32 | 0 |
| alpine | cacti | 0, 0 |
| wolfi | nextcloud-server-32 | 0 |
| chainguard | nextcloud-server-33 | 0 |
Timeline
- Apr 10, 2026 CVE Published
- Apr 10, 2026 PoC Published
- Apr 11, 2026 EPSS Score (30 in total, the first dated here)
- Apr 11, 2026 Security Advisory
- May 8, 2026 CVE Updated
- Jun 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-40194
vulnetix vdb fixes CVE-2026-40194
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-40194/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/phpseclib/phpseclib/security/advisories/GHSA-r854-jrxh-36qx x_refsource_CONFIRM
- https://github.com/phpseclib/phpseclib/commit/ffe48b6b1b1af6963327f0a5330e3aa004a194ac x_refsource_MISC
- https://github.com/phpseclib/phpseclib/releases/tag/1.0.28 x_refsource_MISC
- https://github.com/phpseclib/phpseclib/releases/tag/2.0.53 x_refsource_MISC
- https://github.com/phpseclib/phpseclib/releases/tag/3.0.51 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-40194 advisory
- https://github.com/advisories/GHSA-r854-jrxh-36qx advisory
- https://github.com/phpseclib/phpseclib url