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
Other sources
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.
— MITRE
phpseclib's AES-CBC unpadding susceptible to padding oracle timing attack
— Packagist
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/phpseclib/phpseclibto a version that resolves this vulnerability.Fixed in 1.0.27 - Upgrade
Upgrade
composer/phpseclib/phpseclibto a version that resolves this vulnerability.Fixed in 2.0.52 - Upgrade
Upgrade
composer/phpseclib/phpseclibto a version that resolves this vulnerability.Fixed in 3.0.50 - Upgrade
Upgrade
debian/php-phpseclibto a version that resolves this vulnerability.Fixed in 2.0.42-1+deb12u5Fixed in 2.0.42-1+deb12u3Fixed in 2.0.48-3+deb13u3Fixed in 2.0.48-3+deb13u1Fixed in 2.0.55-1 - Upgrade
Upgrade
debian/php-phpseclib3to a version that resolves this vulnerability.Fixed in 3.0.19-1+deb12u6Fixed in 3.0.19-1+deb12u4Fixed in 3.0.43-2+deb13u3Fixed in 3.0.43-2+deb13u1Fixed in 3.0.57-1 - Upgrade
Upgrade
debian/phpseclibto a version that resolves this vulnerability.Fixed in 1.0.20-1+deb12u5Fixed in 1.0.20-1+deb12u3Fixed in 1.0.23-6+deb13u3Fixed in 1.0.23-6+deb13u1Fixed in 1.0.30-1 - Upgrade
Upgrade
phpseclibto a version that resolves this vulnerability.Fixed in 1.0.27 - Upgrade
Upgrade
phpseclibto a version that resolves this vulnerability.Fixed in 2.0.52 - Upgrade
Upgrade
phpseclibto a version that resolves this vulnerability.Fixed in 3.0.50 - Configuration
Use AES in CTR, CFB, or OFB mode instead of CBC mode.
AES mode = CTR, CFB, or OFB
Event History
Frequently Asked Questions
What is the severity of CVE-2026-32935?
CVE-2026-32935 is considered a moderate severity vulnerability due to its exploitation via a padding oracle timing attack.
How do I fix CVE-2026-32935?
To fix CVE-2026-32935, upgrade phpseclib to version 1.0.27, 2.0.52, or 3.0.50 or later.
What vulnerability does CVE-2026-32935 address?
CVE-2026-32935 addresses a susceptibility in phpseclib's AES-CBC unpadding that can be attacked using a padding oracle timing attack.
Which versions of phpseclib are affected by CVE-2026-32935?
CVE-2026-32935 affects phpseclib versions prior to 1.0.27, 2.0.52, and 3.0.50.
What is a padding oracle timing attack related to CVE-2026-32935?
A padding oracle timing attack exploits the timing discrepancies in error messages to decrypt encrypted data without knowing the key.