Php phpseclib: 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… (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.
Php phpseclib: 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… (CVE-2026-40194)
Description
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.
CVSS v3.1
Score 3.7low
Affected software
pkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps-legacy/xenialpkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps-legacy/xenialpkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps/bionicpkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps/bionicpkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps/focalpkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps/focalpkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps/jammypkg:deb/ubuntu/php-phpseclib3?arch=source&distro=esm-apps/jammypkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps/jammypkg:deb/ubuntu/php-phpseclib3?arch=source&distro=noblepkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps/noblepkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps/noblepkg:deb/ubuntu/php-phpseclib?arch=source&distro=questingpkg:deb/ubuntu/php-phpseclib3?arch=source&distro=questingpkg:deb/ubuntu/phpseclib?arch=source&distro=questingpkg:deb/ubuntu/php-phpseclib3?arch=source&distro=resolutepkg:deb/ubuntu/php-phpseclib?arch=source&distro=esm-apps/resolutepkg:deb/ubuntu/phpseclib?arch=source&distro=esm-apps/resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-40194
- Osv Schema Version
- 1.7.0
- Ecosystems
- ["Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:Pro:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:Pro:24.04:LTS","Ubuntu:25.10","Ubuntu:26.04:LTS","Ubuntu:Pro:26.04:LTS"]
- Cvss Version
- 3.1
Patch Information
Threat ID: 6abb4194f7a7c54106cc380e
Added to database: 09/29/2026, 04:41:56 UTC
Last updated: 09/29/2026, 04:41:56 UTC
Views: 1
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.