{"id":"CVE-2026-40194","sourceIdentifier":"security-advisories@github.com","published":"2026-04-10T21:16:27.583","lastModified":"2026-06-17T10:44:51.140","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"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":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"phpseclib","product":"phpseclib","versions":[{"version":">= 0.1.1, < 1.0.28","status":"affected"},{"version":">= 2.0.0, < 2.0.53","status":"affected"},{"version":">= 3.0.0, < 3.0.51","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","baseScore":3.7,"baseSeverity":"LOW","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"NONE","availabilityImpact":"NONE"},"exploitabilityScore":2.2,"impactScore":1.4}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-04-13T15:28:24.152831Z","id":"CVE-2026-40194","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-208"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:*","versionEndIncluding":"1.0.27","matchCriteriaId":"8315BEB0-7CC2-4BF7-8951-086898B9D909"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:*","versionStartIncluding":"2.0.0","versionEndExcluding":"2.0.53","matchCriteriaId":"88F1EA13-1048-43B5-8AE5-52D81EE17470"},{"vulnerable":true,"criteria":"cpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0.0","versionEndExcluding":"3.0.51","matchCriteriaId":"595DB51F-4A57-4D49-A951-E45590487A83"}]}]}],"references":[{"url":"https://github.com/phpseclib/phpseclib/commit/ffe48b6b1b1af6963327f0a5330e3aa004a194ac","source":"security-advisories@github.com","tags":["Patch"]},{"url":"https://github.com/phpseclib/phpseclib/releases/tag/1.0.28","source":"security-advisories@github.com","tags":["Release Notes"]},{"url":"https://github.com/phpseclib/phpseclib/releases/tag/2.0.53","source":"security-advisories@github.com","tags":["Release Notes"]},{"url":"https://github.com/phpseclib/phpseclib/releases/tag/3.0.51","source":"security-advisories@github.com","tags":["Release Notes"]},{"url":"https://github.com/phpseclib/phpseclib/security/advisories/GHSA-r854-jrxh-36qx","source":"security-advisories@github.com","tags":["Vendor Advisory"]},{"url":"https://github.com/phpseclib/phpseclib/security/advisories/GHSA-r854-jrxh-36qx","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","tags":["Vendor Advisory"]}]}