GHSA-94g3-g5v7-q4jg
phpseclib's AES-CBC unpadding susceptible to padding oracle timing attack
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Packagist | phpseclib/phpseclib | >= 3.0.0, < 3.0.50 | 3.0.50 |
| Packagist | phpseclib/phpseclib | >= 2.0.0, < 2.0.52 | 2.0.52 |
| Packagist | phpseclib/phpseclib | >= 0.1.1, < 1.0.27 | 1.0.27 |
Details
As written in the advisory (Markdown source, shown as plain text).
### 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
External links from the advisory. They lead to third-party sites.