CVE-2026-40194
Description
phpseclib has a variable-time HMAC comparison in SSH2::get_binary_packet() using != instead of hash_equals()
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2026-40194
Vendor advisory: security-advisories@github.com — https://github.com/phpseclib/phpseclib/security/advisories/GHSA-r854-jrxh-36qx
Vendor advisory: security-advisories@github.com — https://github.com/phpseclib/phpseclib/releases/tag/3.0.51
Vendor advisory: security-advisories@github.com — https://github.com/phpseclib/phpseclib/releases/tag/2.0.53
Vendor advisory: security-advisories@github.com — https://github.com/phpseclib/phpseclib/releases/tag/1.0.28
Vendor advisory: security-advisories@github.com — https://github.com/phpseclib/phpseclib/commit/ffe48b6b1b1af6963327f0a5330e3aa004a194ac
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | fixed | 2.0.42-1+deb12u4 |
| debian | bullseye | affected | |
| debian | forky | fixed | 2.0.53-1 |
| debian | sid | fixed | 2.0.53-1 |
| debian | trixie | fixed | 2.0.48-3+deb13u2 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Packagist | phpseclib/phpseclib | >=0.1.1,<1.0.28|>=3.0.0,<3.0.51|>=2.0.0,<2.0.53 | |
| Packagist | phpseclib/phpseclib | >=0.1.1,<1.0.28 | 1.0.28 |
| Packagist | phpseclib/phpseclib | >=2.0.0,<2.0.53 | 2.0.53 |
| Packagist | phpseclib/phpseclib | >=3.0.0,<3.0.51 | 3.0.51 |
| COMPOSER | phpseclib/phpseclib | >= 0.1.1, < 1.0.28 | 1.0.28 |
| COMPOSER | phpseclib/phpseclib | >= 3.0.0, < 3.0.51 | 3.0.51 |
| COMPOSER | phpseclib/phpseclib | >= 2.0.0, < 2.0.53 | 2.0.53 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| phpseclib | phpseclib | {"endIncluding":"1.0.27"} | |
References
- https://github.com/advisories/GHSA-r854-jrxh-36qx
- https://github.com/phpseclib/phpseclib/commit/ffe48b6b1b1af6963327f0a5330e3aa004a194ac
- https://github.com/phpseclib/phpseclib/releases/tag/1.0.28
- https://github.com/phpseclib/phpseclib/releases/tag/2.0.53
- https://github.com/phpseclib/phpseclib/releases/tag/3.0.51
- https://github.com/phpseclib/phpseclib/security/advisories/GHSA-r854-jrxh-36qx
- https://security-tracker.debian.org/tracker/CVE-2026-40194
- https://nvd.nist.gov/vuln/detail/CVE-2026-40194
- https://github.com/phpseclib/phpseclib
CWEs
CWE-208
Verify integrity in audit chain (admin only). AS-IS.