Timing Attack Affecting phpseclib/phpseclib package, versions <1.0.27>=2.0.0, <2.0.52>=3.0.0, <3.0.50


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-PHPSECLIBPHPSECLIB-15701264
  • published20 Mar 2026
  • disclosed20 Mar 2026
  • creditUnknown

Introduced: 20 Mar 2026

NewCVE-2026-32935  (opens in a new tab)
CWE-208  (opens in a new tab)

How to fix?

Upgrade phpseclib/phpseclib to version 1.0.27, 2.0.52, 3.0.50 or higher.

Overview

phpseclib/phpseclib is a PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

Affected versions of this package are vulnerable to Timing Attack via the AES algorithm in CBC mode. An attacker can recover sensitive information by exploiting timing differences during decryption operations.

Workaround

This issue can be mitigated by using AES in CTR, CFB or OFB modes.

CVSS Base Scores

version 4.0
version 3.1