{"id":"DEBIAN-CVE-2026-40194","details":"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.","modified":"2026-09-14T17:03:11.654665113Z","published":"2026-04-10T21:16:27.583Z","upstream":["CVE-2026-40194"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-40194"}],"affected":[{"package":{"name":"php-phpseclib","ecosystem":"Debian:12","purl":"pkg:deb/debian/php-phpseclib?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.42-1+deb12u4"}]}],"versions":["2.0.42-1","2.0.42-1+deb12u1","2.0.42-1+deb12u2","2.0.42-1+deb12u3"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40194.json"}},{"package":{"name":"php-phpseclib","ecosystem":"Debian:13","purl":"pkg:deb/debian/php-phpseclib?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.48-3+deb13u2"}]}],"versions":["2.0.48-3","2.0.48-3+deb13u1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40194.json"}},{"package":{"name":"php-phpseclib","ecosystem":"Debian:14","purl":"pkg:deb/debian/php-phpseclib?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.53-1"}]}],"versions":["2.0.48-3","2.0.49-1","2.0.50-1","2.0.51-1","2.0.52-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40194.json"}},{"package":{"name":"php-phpseclib3","ecosystem":"Debian:12","purl":"pkg:deb/debian/php-phpseclib3?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.19-1+deb12u5"}]}],"versions":["3.0.19-1","3.0.19-1+deb12u1","3.0.19-1+deb12u2","3.0.19-1+deb12u3","3.0.19-1+deb12u4"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40194.json"}},{"package":{"name":"php-phpseclib3","ecosystem":"Debian:13","purl":"pkg:deb/debian/php-phpseclib3?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.43-2+deb13u2"}]}],"versions":["3.0.43-2","3.0.43-2+deb13u1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40194.json"}},{"package":{"name":"php-phpseclib3","ecosystem":"Debian:14","purl":"pkg:deb/debian/php-phpseclib3?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.51-1"}]}],"versions":["3.0.43-2","3.0.44-1","3.0.44-2","3.0.45-1","3.0.46-1","3.0.46-2","3.0.47-1","3.0.48-1","3.0.49-1","3.0.50-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40194.json"}},{"package":{"name":"phpseclib","ecosystem":"Debian:12","purl":"pkg:deb/debian/phpseclib?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.20-1+deb12u4"}]}],"versions":["1.0.20-1","1.0.20-1+deb12u1","1.0.20-1+deb12u2","1.0.20-1+deb12u3"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40194.json"}},{"package":{"name":"phpseclib","ecosystem":"Debian:13","purl":"pkg:deb/debian/phpseclib?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.23-6+deb13u2"}]}],"versions":["1.0.23-6","1.0.23-6+deb13u1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40194.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}