phpseclib's AES-CBC unpadding susceptible to padding oracle timing attack
Package
Affected versions
>= 3.0.0, <= 3.0.49
>= 2.0.0, <= 2.0.51
<= 1.0.26
Patched versions
3.0.50
2.0.52
1.0.27
Description
Published to the GitHub Advisory Database
Mar 19, 2026
Reviewed
Mar 19, 2026
Published by the National Vulnerability Database
Mar 20, 2026
Last updated
Mar 20, 2026
Impact
Those using AES in CBC mode may be susceptible to a padding oracle timing attack.
Patches
phpseclib/phpseclib@ccc21ae
Workarounds
Use AES in CTR, CFB or OFB modes
References