Improper restriction of communication channel to intended endpoints in phpseclib - #VU168999

 

Improper restriction of communication channel to intended endpoints in phpseclib - #VU168999

Published: November 21, 2026


Vulnerability identifier: #VU168999
CSH Severity: Medium
CVSS v4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-923
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to impersonate an SSH server during reconnection and obtain saved login credentials, including passwords.

The vulnerability exists due to missing server host key verification in phpseclib's SSH2 reconnect logic when it replays saved login calls after a ping-triggered reconnect or a login retry. A remote attacker can intercept or redirect the new connection to receive replayed credentials even if the client verified the original server's host key.


Affected software

phpseclib

Remediation

Install security update from vendor's website.

phpseclib - addressed in versions 1.0.32, 2.0.57, 3.0.59, 4.0.4

External References

Related Security Bulletins