CVE-2026-32935

phpseclib's AES-CBC unpadding susceptible to padding oracle timing attack

Published Mar 20, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
Description
phpseclib is a PHP secure communications library. Projects using versions 0.1.1 through 1.0.26, 2.0.0 through 2.0.51, and 3.0.0 through 3.0.49 are vulnerable to a to padding oracle timing attack when using AES in CBC mode. This issue has been fixed in versions 1.0.27, 2.0.52 and 3.0.50.

Analysis

AI-generated

Technical impact

phpseclib is a PHP library for secure communications that includes AES encryption. A flaw in the AES‑CBC decryption unpadding routine allows an attacker to gain information from timing differences, enabling a padding oracle timing attack. This information‑disclosure weakness (CWE‑208) can allow full recovery of encrypted plaintexts when an adversary can manipulate or observe ciphertext processing. The vulnerability is present in phpseclib versions 0.1.1 through 1.0.26, 2.0.0 through 2.0.51, and 3.0.0 through 3.0.49.

Affected Systems

The vulnerability affects the phpseclib library across versions 0.1.1 to 1.0.26, 2.0.0 to 2.0.51, and 3.0.0 to 3.0.49. Versions 1.0.27, 2.0.52, and 3.0.50 and later contain the fix.

Risk and Exploitability

The CVSS score of 8.2 reflects high severity. The EPSS score of less than 1 % suggests a low probability of exploitation. It is not listed in CISA’s Known Exploited Vulnerabilities catalog. Based on the description, it is inferred that an attacker would need to send crafted ciphertexts to a service performing AES‑CBC decryption and measure response times to recover plaintext. The likely attack vector is remote, through network or application interfaces that accept encrypted data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade phpseclib to version 1.0.27 or later, 2.0.52 or later, or 3.0.50 or later.
  • If an upgrade is not immediately possible, restrict access to any service that performs AES‑CBC decryption to trusted clients and monitor for abnormal timing patterns.
  • Regularly check the phpseclib project for future security releases.

Generated by OpenCVE AI on May 8, 2026 at 19:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4518-1 phpseclib security update
Debian DLA Debian DLA DLA-4670-1 php-phpseclib security update
Debian DSA Debian DSA DSA-6185-1 phpseclib security update
Debian DSA Debian DSA DSA-6186-1 php-phpseclib security update
Debian DSA Debian DSA DSA-6187-1 php-phpseclib3 security update
Github GHSA Github GHSA GHSA-94g3-g5v7-q4jg phpseclib's AES-CBC unpadding susceptible to padding oracle timing attack
Ubuntu USN Ubuntu USN USN-8769-1 phpseclib vulnerability
Ubuntu USN Ubuntu USN USN-8830-1 phpseclib vulnerabilities
History
Type Values Removed Values Added
Description phpseclib is a PHP secure communications library. Projects using versions 1.0.26 and below, 2.0.0 through 2.0.51, and 3.0.0 through 3.0.49 are vulnerable to a to padding oracle timing attack when using AES in CBC mode. This issue has been fixed in versions 1.0.27, 2.0.52 and 3.0.50. phpseclib is a PHP secure communications library. Projects using versions 0.1.1 through 1.0.26, 2.0.0 through 2.0.51, and 3.0.0 through 3.0.49 are vulnerable to a to padding oracle timing attack when using AES in CBC mode. This issue has been fixed in versions 1.0.27, 2.0.52 and 3.0.50.
Type Values Removed Values Added
CPEs cpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Phpseclib
Phpseclib phpseclib
Vendors & Products Phpseclib
Phpseclib phpseclib
Type Values Removed Values Added
Description phpseclib is a PHP secure communications library. Projects using versions 1.0.26 and below, 2.0.0 through 2.0.51, and 3.0.0 through 3.0.49 are vulnerable to a to padding oracle timing attack when using AES in CBC mode. This issue has been fixed in versions 1.0.27, 2.0.52 and 3.0.50.
Title phpseclib's AES-CBC unpadding susceptible to padding oracle timing attack
Weaknesses CWE-208
References
Metrics cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-208

    Observable Timing Discrepancy

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 8, 2026, 3:19 PM
Reserved
Mar 17, 2026, 12:05 AM
Status
Modified
Published
Mar 20, 2026, 3:16 AM
Modified
Jun 17, 2026, 10:36 AM