MTIby Motiontic
Colour theme
VulnerabilityCVE-2026-40194GHSA-r854-jrxh-36qxWID-SEC-W-2026-1931:CVE-2026-40194

phpseclib has a variable-time HMAC comparison in SSH2::get_binary_packet() using != instead of hash_equals()

Not on CISA KEV
  • Overview

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

See the full record, free

  • Every source, score and reference in one place
  • Timeline and related records
  • Watch an entry and get an alert when it changes

Sources and credits

  • BSI CERT-Bund Source: BSI CERT-Bund
  • CISA Vulnrichment Source: CISA Vulnrichment
  • CVE List Source: CVE Program (cve.org)
  • GitHub Advisory DB Source: GitHub Advisory Database (CC BY 4.0)