CVE-2026-32935: phpseclib's AES-CBC unpadding susceptible to padding oracle timing attack
Impact Those using AES in CBC mode may be susceptible to a padding oracle timing attack. Patches https://github.com/phpseclib/phpseclib/commit/ccc21aef71eb170e9bf819b167e67d1fd9e6e788 Workarounds Use AES in CTR, CFB or OFB modes References https://github.com/phpseclib/phpseclib/commit/ccc21aef71eb170e9bf819b167e67d1fd9e6e788
Published Mar 19, 2026 · Updated May 8, 2026
Affected packages
phpseclib/phpseclib
- Ecosystem
- Composer (PHP)
- Affected
- >= 3.0.0, <= 3.0.49
- Fixed in
- 3.0.50
- Check
composer show phpseclib/phpseclib
phpseclib/phpseclib
- Ecosystem
- Composer (PHP)
- Affected
- >= 2.0.0, <= 2.0.51
- Fixed in
- 2.0.52
- Check
composer show phpseclib/phpseclib
phpseclib/phpseclib
- Ecosystem
- Composer (PHP)
- Affected
- >= 0.1.1, <= 1.0.26
- Fixed in
- 1.0.27
- Check
composer show phpseclib/phpseclib
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
Those using AES in CBC mode may be susceptible to a padding oracle timing attack.
Patches
https://github.com/phpseclib/phpseclib/commit/ccc21aef71eb170e9bf819b167e67d1fd9e6e788
Workarounds
Use AES in CTR, CFB or OFB modes
References
https://github.com/phpseclib/phpseclib/commit/ccc21aef71eb170e9bf819b167e67d1fd9e6e788
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-84308
phpseclib — non-constant-time X25519 scalar multiplication permits full private-key recovery
medium6.3Sep 8, 2026CVE-2026-55599
phpseclib: X.509 certificate validation sends attacker-controlled outbound requests (server-side request forgery) via Authority Information Access
medium5.8Jun 16, 2026CVE-2023-49316
Phpseclib needs guardrails on large binaryfield integers
high7.5May 8, 2026CVE-2024-27355
phpseclib guardrails needed on OID length
high7.5May 8, 2026CVE-2024-27354
phpseclib: guardrails needed on isPrime and randomPrime
high7.5May 6, 2026CVE-2026-44167
phpseclib has a CVE-2024-27355 mitigation bypass — OID amplification DoS in ASN1::decodeOID()
high7.5May 5, 2026
