Advisory record · GHSA-94g3-g5v7-q4jg

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

CVSS 8.2 HighEPSS 0.0039 · 33rd percentile

Published by the GitHub Advisory Database at 19 Mar 2026, 16:42 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
phpseclib/phpseclibPackagist>=3.0.0, <3.0.50 || >=2.0.0, <2.0.52 || >=0.1.1, <1.0.273.0.50, 2.0.52, 1.0.27
Identifiers
GHSA-94g3-g5v7-q4jg · CVE-2026-32935 · PKSA-km2b-zc3b-mjm3
Weakness (CWE)
CWE-208
Published
19 Mar 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Versions of the phpseclib PHP package from 0.1.1 up to 1.0.27, from 2.0.0 up to 2.0.52, and from 3.0.0 up to 3.0.50 are affected. The source says that those using AES in CBC mode may be susceptible to a padding oracle timing attack, but it gives few other details about what an attacker needs or what they could gain. Upgrade to 1.0.27, 2.0.52, or 3.0.50, depending on the release line in use. As a workaround, the source suggests using AES in CTR, CFB, or OFB mode.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.2 High 4.0 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 CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0039, the 33rd percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:02 UTC First seen by agentprime
  2. 31 Oct 2026, 14:02 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.