8.2high
phpseclib's AES-CBC unpadding susceptible to padding oracle timing attack
- Severity
- 8.2high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.43% (higher than 38% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-94g3-g5v7-q4jg
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| phpseclib phpseclib | >= 3.0.0, < 3.0.50, >= 2.0.0, < 2.0.52, >= 0.1.1, < 1.0.27, before 1.0.27, from 2.0.0 before 2.0.52, from 3.0.0 before 3.0.50 | CVE List, NVD |
| phpseclib/phpseclib (Packagist) | from 3.0.0 before 3.0.50, from 2.0.0 before 2.0.52, from 0.1.1 before 1.0.27 | GitHub Advisory Database |
All scores
| GitHub_M | 8.2high CVSS: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 |
| GitHub | high CVSS: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 |
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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
NVD (es)
phpseclib es una biblioteca PHP de comunicaciones seguras. Los proyectos que utilizan las versiones 1.0.26 e inferiores, 2.0.0 hasta 2.0.51, y 3.0.0 hasta 3.0.49 son vulnerables a un ataque de temporización de oráculo de relleno al usar AES en modo CBC. Este problema ha sido solucionado en las versiones 1.0.27, 2.0.52 y 3.0.50.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-32935 changed 2026-05-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-94g3-g5v7-q4jg changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-32935 changed 2026-06-17 | Public domain |