Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
CVE Vulnerability Details :
CVE-2026-40194
PUBLISHED
More InfoOfficial Page
Assigner-GitHub_M
Assigner Org ID-a0819718-46f1-4df5-94e2-005712e83aaa
View Known Exploited Vulnerability (KEV) details
Published At-10 Apr, 2026 | 20:24
Updated At-13 Apr, 2026 | 15:35
Rejected At-
▼CVE Numbering Authority (CNA)
phpseclib has a variable-time HMAC comparison in SSH2::get_binary_packet() using != instead of hash_equals()

phpseclib is a PHP secure communications library. 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.

Affected Products
Vendor
phpseclib
Product
phpseclib
Versions
Affected
  • < 1.0.28
  • >= 2.0.0, < 2.0.53
  • >= 3.0.0, < 3.0.51
Problem Types
TypeCWE IDDescription
CWECWE-208CWE-208: Observable Timing Discrepancy
Type: CWE
CWE ID: CWE-208
Description: CWE-208: Observable Timing Discrepancy
Metrics
VersionBase scoreBase severityVector
3.13.7LOW
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Version: 3.1
Base score: 3.7
Base severity: LOW
Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/phpseclib/phpseclib/security/advisories/GHSA-r854-jrxh-36qx
x_refsource_CONFIRM
https://github.com/phpseclib/phpseclib/commit/ffe48b6b1b1af6963327f0a5330e3aa004a194ac
x_refsource_MISC
https://github.com/phpseclib/phpseclib/releases/tag/1.0.28
x_refsource_MISC
https://github.com/phpseclib/phpseclib/releases/tag/2.0.53
x_refsource_MISC
https://github.com/phpseclib/phpseclib/releases/tag/3.0.51
x_refsource_MISC
Hyperlink: https://github.com/phpseclib/phpseclib/security/advisories/GHSA-r854-jrxh-36qx
Resource:
x_refsource_CONFIRM
Hyperlink: https://github.com/phpseclib/phpseclib/commit/ffe48b6b1b1af6963327f0a5330e3aa004a194ac
Resource:
x_refsource_MISC
Hyperlink: https://github.com/phpseclib/phpseclib/releases/tag/1.0.28
Resource:
x_refsource_MISC
Hyperlink: https://github.com/phpseclib/phpseclib/releases/tag/2.0.53
Resource:
x_refsource_MISC
Hyperlink: https://github.com/phpseclib/phpseclib/releases/tag/3.0.51
Resource:
x_refsource_MISC
▼Authorized Data Publishers (ADP)
CISA ADP Vulnrichment
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/phpseclib/phpseclib/security/advisories/GHSA-r854-jrxh-36qx
exploit
Hyperlink: https://github.com/phpseclib/phpseclib/security/advisories/GHSA-r854-jrxh-36qx
Resource:
exploit
Details not found