DEBIAN-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.
DEBIAN-CVE-2026-40194
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:DEBIAN-CVE-2026-40194
php-phpseclib
Source reference: /affected/0/package/name
- Affected versions
- 2.0.42-1
Source reference:
/affected/0/versions2.0.42-1+deb12u1Source reference:
/affected/0/versions2.0.42-1+deb12u2Source reference:
/affected/0/versions2.0.42-1+deb12u3Source reference:
/affected/0/versions - Fixed versions
- 2.0.42-1+deb12u4
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
php-phpseclib
Source reference: /affected/1/package/name
- Affected versions
- 2.0.48-3
Source reference:
/affected/1/versions2.0.48-3+deb13u1Source reference:
/affected/1/versions - Fixed versions
- 2.0.48-3+deb13u2
Source reference:
/affected/1/ranges - Prerequisites
- Not stated in this record
php-phpseclib
Source reference: /affected/2/package/name
- Affected versions
- 2.0.48-3
Source reference:
/affected/2/versions2.0.49-1Source reference:
/affected/2/versions2.0.50-1Source reference:
/affected/2/versions2.0.51-1Source reference:
/affected/2/versions2.0.52-1Source reference:
/affected/2/versions - Fixed versions
- 2.0.53-1
Source reference:
/affected/2/ranges - Prerequisites
- Not stated in this record
php-phpseclib3
Source reference: /affected/3/package/name
- Affected versions
- 3.0.19-1
Source reference:
/affected/3/versions3.0.19-1+deb12u1Source reference:
/affected/3/versions3.0.19-1+deb12u2Source reference:
/affected/3/versions3.0.19-1+deb12u3Source reference:
/affected/3/versions3.0.19-1+deb12u4Source reference:
/affected/3/versions - Fixed versions
- 3.0.19-1+deb12u5
Source reference:
/affected/3/ranges - Prerequisites
- Not stated in this record
php-phpseclib3
Source reference: /affected/4/package/name
- Affected versions
- 3.0.43-2
Source reference:
/affected/4/versions3.0.43-2+deb13u1Source reference:
/affected/4/versions - Fixed versions
- 3.0.43-2+deb13u2
Source reference:
/affected/4/ranges - Prerequisites
- Not stated in this record
php-phpseclib3
Source reference: /affected/5/package/name
- Affected versions
- 3.0.43-2
Source reference:
/affected/5/versions3.0.44-1Source reference:
/affected/5/versions3.0.44-2Source reference:
/affected/5/versions3.0.45-1Source reference:
/affected/5/versions3.0.46-1Source reference:
/affected/5/versions3.0.46-2Source reference:
/affected/5/versions3.0.47-1Source reference:
/affected/5/versions3.0.48-1Source reference:
/affected/5/versions3.0.49-1Source reference:
/affected/5/versions3.0.50-1Source reference:
/affected/5/versions - Fixed versions
- 3.0.51-1
Source reference:
/affected/5/ranges - Prerequisites
- Not stated in this record
phpseclib
Source reference: /affected/6/package/name
- Affected versions
- 1.0.20-1
Source reference:
/affected/6/versions1.0.20-1+deb12u1Source reference:
/affected/6/versions1.0.20-1+deb12u2Source reference:
/affected/6/versions1.0.20-1+deb12u3Source reference:
/affected/6/versions - Fixed versions
- 1.0.20-1+deb12u4
Source reference:
/affected/6/ranges - Prerequisites
- Not stated in this record
phpseclib
Source reference: /affected/7/package/name
- Affected versions
- 1.0.23-6
Source reference:
/affected/7/versions1.0.23-6+deb13u1Source reference:
/affected/7/versions - Fixed versions
- 1.0.23-6+deb13u2
Source reference:
/affected/7/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.0.42-1+deb12u4"
}
]
}
],
"package": {
"name": "php-phpseclib",
"purl": "pkg:deb/debian/php-phpseclib?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"2.0.42-1",
"2.0.42-1+deb12u1",
"2.0.42-1+deb12u2",
"2.0.42-1+deb12u3"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40194.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.0.48-3+deb13u2"
}
]
}
],
"package": {
"name": "php-phpseclib",
"purl": "pkg:deb/debian/php-phpseclib?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"2.0.48-3",
"2.0.48-3+deb13u1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40194.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.0.53-1"
}
]
}
],
"package": {
"name": "php-phpseclib",
"purl": "pkg:deb/debian/php-phpseclib?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"2.0.48-3",
"2.0.49-1",
"2.0.50-1",
"2.0.51-1",
"2.0.52-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40194.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.0.19-1+deb12u5"
}
]
}
],
"package": {
"name": "php-phpseclib3",
"purl": "pkg:deb/debian/php-phpseclib3?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"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"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40194.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.0.43-2+deb13u2"
}
]
}
],
"package": {
"name": "php-phpseclib3",
"purl": "pkg:deb/debian/php-phpseclib3?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"3.0.43-2",
"3.0.43-2+deb13u1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40194.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.0.51-1"
}
]
}
],
"package": {
"name": "php-phpseclib3",
"purl": "pkg:deb/debian/php-phpseclib3?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"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"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40194.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.20-1+deb12u4"
}
]
}
],
"package": {
"name": "phpseclib",
"purl": "pkg:deb/debian/phpseclib?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"1.0.20-1",
"1.0.20-1+deb12u1",
"1.0.20-1+deb12u2",
"1.0.20-1+deb12u3"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40194.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.23-6+deb13u2"
}
]
}
],
"package": {
"name": "phpseclib",
"purl": "pkg:deb/debian/phpseclib?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"1.0.23-6",
"1.0.23-6+deb13u1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40194.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #57007 · Revision 1
- Added to Heist Feed
- Publisher date