cvedb.io
CVE-2026-40194
LOW · CVSS 3.7
EPSS exploitation probability: 0%
Published 2026-04-10T21:16:27.583 · Last modified 2026-06-17T10:44:51.140

Summary

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.

Affected products

phpseclib — phpseclib

Does this affect you?

Add your gear to cvedb and we'll alert you only when phpseclib ships something exploited.

Check my exposure →

References

This product uses data from the NVD API but is not endorsed or certified by the NVD. Informational only; not professional security advice.