cve.bz

CVE-2026-40194 phpseclib phpseclib: Observable Timing Discrepancy

3.7 lowEPSS 0.4%Fix available

Low (3.7) in phpseclib phpseclib. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in phpseclib/phpseclib 1.0.28, 2.0.53, 3.0.51.

On this page
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.

Severity

CVSS 3.1

3.7 low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 25th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-04-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-208 Observable Timing Discrepancy
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40194 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40194?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40194?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40194 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
phpseclib:phpseclibthrough 1.0.27
phpseclib:phpseclibfrom 2.0.0 before 2.0.53
phpseclib:phpseclibfrom 3.0.0 before 3.0.51

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-r854-jrxh-36qxPackagistphpseclib/phpseclib>=0.1.1 <1.0.281.0.28
GHSA-r854-jrxh-36qxPackagistphpseclib/phpseclib>=2.0.0 <2.0.532.0.53
GHSA-r854-jrxh-36qxPackagistphpseclib/phpseclib>=3.0.0 <3.0.513.0.51

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11php-phpseclib2.0.30-2+deb11u3DLA-4670-1
Debian12php-phpseclib2.0.42-1+deb12u4DEBIAN-CVE-2026-40194
Debian12php-phpseclib33.0.19-1+deb12u5DEBIAN-CVE-2026-40194
Debian12phpseclib1.0.20-1+deb12u4DEBIAN-CVE-2026-40194
Debian13php-phpseclib2.0.48-3+deb13u2DEBIAN-CVE-2026-40194
Debian13php-phpseclib33.0.43-2+deb13u2DEBIAN-CVE-2026-40194
Debian13phpseclib1.0.23-6+deb13u2DEBIAN-CVE-2026-40194
Debian14php-phpseclib2.0.53-1DEBIAN-CVE-2026-40194
Debian14php-phpseclib33.0.51-1DEBIAN-CVE-2026-40194
Ubuntu24.04:LTS, 26.04:LTSphp-phpseclib3no fix listedUBUNTU-CVE-2026-40194
Ubuntu25.10phpseclib, php-phpseclib, php-phpseclib3no fix listedUBUNTU-CVE-2026-40194
Ubuntu26.10, Pro:22.04:LTSphpseclib, php-phpseclib3no fix listedUBUNTU-CVE-2026-40194
UbuntuPro:16.04:LTSphp-phpseclib2.0.1-1ubuntu0.1~esm1UBUNTU-CVE-2026-40194 USN-8830-1
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTS and 2 morephpseclibno fix listedUBUNTU-CVE-2026-40194
UbuntuPro:18.04:LTSphp-phpseclib2.0.9-1ubuntu0.1~esm3UBUNTU-CVE-2026-40194 USN-8830-1
UbuntuPro:20.04:LTSphp-phpseclib2.0.23-2ubuntu0.1~esm3UBUNTU-CVE-2026-40194 USN-8830-1
UbuntuPro:22.04:LTSphp-phpseclib2.0.36-1ubuntu0.1~esm3UBUNTU-CVE-2026-40194 USN-8830-1
UbuntuPro:24.04:LTSphp-phpseclib2.0.47-1ubuntu0.1~esm1UBUNTU-CVE-2026-40194 USN-8830-1
UbuntuPro:26.04:LTSphp-phpseclib2.0.51-1ubuntu0.1~esm1UBUNTU-CVE-2026-40194 USN-8830-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-462 Cross-Domain Search Timing Severity: Medium
  • CAPEC-541 Application Fingerprinting Severity: Low
  • CAPEC-580 System Footprinting Likelihood: Low · Severity: Low

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON