ADVISORIES

GitHub Advisory Database

GHSA-94g3-g5v7-q4jg

phpseclib's AES-CBC unpadding susceptible to padding oracle timing attack

Details

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

Affected packages

EcosystemPackageAffected versions
Packagistphpseclib/phpseclib
From 3.0.0 before 3.0.50 (fixed in 3.0.50)
Packagistphpseclib/phpseclib
From 2.0.0 before 2.0.52 (fixed in 2.0.52)
Packagistphpseclib/phpseclib
From 0.1.1 before 1.0.27 (fixed in 1.0.27)

References