- 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.
- Source
- security-advisories@github.com
- NVD status
- Modified
- Products
- phpseclib
CVSS 3.1
- Type
- Secondary
- Base score
- 3.7
- Impact score
- 1.4
- Exploitability score
- 2.2
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
- Severity
- LOW
- security-advisories@github.com
- CWE-208
- Hype score
- Not currently trending
[
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:*",
"matchCriteriaId": "8315BEB0-7CC2-4BF7-8951-086898B9D909",
"versionEndIncluding": "1.0.27",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:*",
"matchCriteriaId": "88F1EA13-1048-43B5-8AE5-52D81EE17470",
"versionEndExcluding": "2.0.53",
"versionStartIncluding": "2.0.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:*",
"matchCriteriaId": "595DB51F-4A57-4D49-A951-E45590487A83",
"versionEndExcluding": "3.0.51",
"versionStartIncluding": "3.0.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
]