SB20261121114 - Multiple vulnerabilities in phpseclib



SB20261121114 - Multiple vulnerabilities in phpseclib

Published: November 21, 2026

Security Bulletin ID SB20261121114
CSH Severity
Medium
Patch available
YES
Number of vulnerabilities 4
Exploitation vector Remote access
Highest impact Denial of service

Breakdown by Severity

Medium 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 4 vulnerabilities.


1) Permissive Regular Expression (CVE-ID: N/A)

CWE-ID: CWE-625 - Permissive Regular Expression

CVSSv4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to bypass certificate hostname verification and impersonate a host they do not control in applications that rely on the check.

The vulnerability exists due to a permissive regular expression in phpseclib's X509::validateURL() when a certificate lacks a subjectAltName extension and its commonName is converted into a pattern without escaping all regex metacharacters. A remote attacker can present a certificate signed by a CA the application trusts with regex metacharacters in its commonName to make the hostname check accept a host they do not control.


2) Improper restriction of communication channel to intended endpoints (CVE-ID: N/A)

CWE-ID: CWE-923 - Improper Restriction of Communication Channel to Intended Endpoints

CVSSv4: 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]


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.


3) Improper validation of integrity check value (CVE-ID: N/A)

CWE-ID: CWE-354 - Improper Validation of Integrity Check Value

CVSSv4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to alter decrypted data without detection.

The vulnerability exists due to missing authentication tag verification in phpseclib's libsodium-backed ChaCha20-Poly1305 decryption when the Poly1305 key is derived automatically. A remote attacker can tamper with stored or in-transit ciphertext to cause the application to accept altered plaintext.


4) Resource exhaustion (CVE-ID: N/A)

CWE-ID: CWE-400 - Resource exhaustion

CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service by exhausting CPU resources.

The vulnerability exists due to an unbounded derived-key length in phpseclib's PBES2/PBKDF2 implementation when processing password-encrypted input, so an iteration limit alone does not bound CPU usage. A remote attacker can submit a malformed password-encrypted key, PKCS#12/PFX keystore, or CMS password-recipient message to trigger excessive key derivation work.


Remediation

Install update from vendor's website.