CVE-2026-32935: phpseclib's AES-CBC unpadding susceptible to padding oracle timing attack

Published Mar 19, 2026
·
Updated

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 is a PHP secure communications library. Projects using versions 1.0.26 and below, 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.

NVD

Affected Software

6 affected componentsFixes available
composer/phpseclib/phpseclib<=1.0.26
1.0.27
composer/phpseclib/phpseclib>=2.0.0<=2.0.51
2.0.52
composer/phpseclib/phpseclib>=3.0.0<=3.0.49
3.0.50
phpseclib phpseclib<1.0.27
phpseclib phpseclib>=2.0.0<2.0.52
phpseclib phpseclib>=3.0.0<3.0.50

Event History

Mar 19, 2026
Advisory Published
via GitHub·04:42 PM
Data Sourced
via GitHub·04:42 PM
DescriptionWeaknessAffected Software
Mar 20, 2026
CVE Published
via MITRE·02:48 AM
Data Sourced
via MITRE·02:48 AM
DescriptionWeakness
Data Sourced
via NVD·03:16 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:16 AM
RemedyAffected Software
Mar 31, 58197
Event
via FIRST·12:10 PM

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203