CVE Explorer
CVE-2026-40194
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"phpseclib","vendor":"phpseclib","versions":[{"status":"affected","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"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:7c5ee18c3ac58cbf5b588de107c665cadcd74808f8d1b9cc43856aa819c68546 · sha256:d11b099711203b37… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":3.7,"baseSeverity":"LOW","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:7c5ee18c3ac58cbf5b588de107c665cadcd74808f8d1b9cc43856aa819c68546 · sha256:d11b099711203b37… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-208","description":"CWE-208: Observable Timing Discrepancy","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:7c5ee18c3ac58cbf5b588de107c665cadcd74808f8d1b9cc43856aa819c68546 · sha256:d11b099711203b37… · /containers/cna/problemTypes/0/descriptions/0
Source references
6 source assertions{"name":"https://github.com/phpseclib/phpseclib/commit/ffe48b6b1b1af6963327f0a5330e3aa004a194ac","tags":["x_refsource_MISC"],"url":"https://github.com/phpseclib/phpseclib/commit/ffe48b6b1b1af6963327f0a5330e3aa004a194ac"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:7c5ee18c3ac58cbf5b588de107c665cadcd74808f8d1b9cc43856aa819c68546 · sha256:d11b099711203b37… · /containers/cna/references/1
{"name":"https://github.com/phpseclib/phpseclib/releases/tag/1.0.28","tags":["x_refsource_MISC"],"url":"https://github.com/phpseclib/phpseclib/releases/tag/1.0.28"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:7c5ee18c3ac58cbf5b588de107c665cadcd74808f8d1b9cc43856aa819c68546 · sha256:d11b099711203b37… · /containers/cna/references/2
{"name":"https://github.com/phpseclib/phpseclib/releases/tag/2.0.53","tags":["x_refsource_MISC"],"url":"https://github.com/phpseclib/phpseclib/releases/tag/2.0.53"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:7c5ee18c3ac58cbf5b588de107c665cadcd74808f8d1b9cc43856aa819c68546 · sha256:d11b099711203b37… · /containers/cna/references/3
{"name":"https://github.com/phpseclib/phpseclib/releases/tag/3.0.51","tags":["x_refsource_MISC"],"url":"https://github.com/phpseclib/phpseclib/releases/tag/3.0.51"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:7c5ee18c3ac58cbf5b588de107c665cadcd74808f8d1b9cc43856aa819c68546 · sha256:d11b099711203b37… · /containers/cna/references/4
{"name":"https://github.com/phpseclib/phpseclib/security/advisories/GHSA-r854-jrxh-36qx","tags":["x_refsource_CONFIRM"],"url":"https://github.com/phpseclib/phpseclib/security/advisories/GHSA-r854-jrxh-36qx"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:7c5ee18c3ac58cbf5b588de107c665cadcd74808f8d1b9cc43856aa819c68546 · sha256:d11b099711203b37… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/phpseclib/phpseclib/security/advisories/GHSA-r854-jrxh-36qx"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:7c5ee18c3ac58cbf5b588de107c665cadcd74808f8d1b9cc43856aa819c68546 · sha256:d11b099711203b37… · /containers/adp/0/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.