Advisory

GHSA-94g3-g5v7-q4jg

Also known as: CVE-2026-32935

Summary

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-03-19 16:42 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

phpseclib/phpseclib

Packagist · All systems

Affected

  • introduced 3.0.0, fixed 3.0.50 (ecosystem)

Fixed versions

3.0.50

Fix

The export has no generic command for this ecosystem.

phpseclib/phpseclib

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.0.52 (ecosystem)

Fixed versions

2.0.52

Fix

The export has no generic command for this ecosystem.

phpseclib/phpseclib

Packagist · All systems

Affected

  • introduced 0.1.1, fixed 1.0.27 (ecosystem)

Fixed versions

1.0.27

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences