CVE-2026-32935phpseclib's AES-CBC unpadding susceptible to padding oracle timing attack
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.
What to do
Fixed builds are available from Debian, Packagist, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | php-phpseclib3 | Fix pending | UBUNTU-CVE-2026-32935 | |
| Ubuntu 26.04 | php-phpseclib | Fix pending | 2.0.51-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-32935 |
| Ubuntu 26.04 | php-phpseclib3 | Under investigation | UBUNTU-CVE-2026-32935 | |
| Ubuntu 26.04 | phpseclib | Fix pending | 1.0.24-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-32935 |
| Ubuntu 25.10 | php-phpseclib | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-32935 | |
| Ubuntu 25.10 | php-phpseclib3 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-32935 | |
| Ubuntu 25.10 | phpseclib | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-32935 | |
| Ubuntu 24.04 | php-phpseclib | Fix pending | 2.0.47-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-32935 |
| Ubuntu 24.04 | php-phpseclib3 | Under investigation | UBUNTU-CVE-2026-32935 | |
| Ubuntu 24.04 | phpseclib | Fix pending | 1.0.23-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-32935 |
| Ubuntu 22.04 | php-phpseclib | Fix pending | 2.0.36-1ubuntu0.1~esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-32935 |
| Ubuntu 22.04 | php-phpseclib3 | Fix pending | UBUNTU-CVE-2026-32935 | |
| Ubuntu 22.04 | phpseclib | Fixed | 1.0.20-1+deb12u3build0.22.04.1 | UBUNTU-CVE-2026-32935 |
| Ubuntu 20.04 | php-phpseclib | Fix pending | 2.0.23-2ubuntu0.1~esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-32935 |
| Ubuntu 20.04 | phpseclib | Fix pending | 1.0.18-2ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-32935 |
| Ubuntu 18.04 | php-phpseclib | Fix pending | 2.0.9-1ubuntu0.1~esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-32935 |
| Ubuntu 18.04 | phpseclib | Fix pending | 1.0.9-1ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-32935 |
| Ubuntu 16.04 | php-phpseclib | Fix pending | 2.0.1-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-32935 |
| Debian 14 | php-phpseclib | Fixed | 2.0.52-1 | DEBIAN-CVE-2026-32935 |
| Debian 14 | php-phpseclib3 | Fixed | 3.0.50-1 | DEBIAN-CVE-2026-32935 |
| Debian 13 | php-phpseclib | Fixed | 2.0.48-3+deb13u1 | DEBIAN-CVE-2026-32935 |
| Debian 13 | php-phpseclib3 | Fixed | 3.0.43-2+deb13u1 | DEBIAN-CVE-2026-32935 |
| Debian 13 | phpseclib | Fixed | 1.0.23-6+deb13u1 | DEBIAN-CVE-2026-32935 |
| Debian 12 | php-phpseclib | Fixed | 2.0.42-1+deb12u3 | DEBIAN-CVE-2026-32935 |
| Debian 12 | php-phpseclib3 | Fixed | 3.0.19-1+deb12u4 | DEBIAN-CVE-2026-32935 |
| Debian 12 | phpseclib | Fixed | 1.0.20-1+deb12u3 | DEBIAN-CVE-2026-32935 |
| Packagist library | phpseclib/phpseclib | Fixed | 3.0.50 | GHSA-94g3-g5v7-q4jg |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- phpseclib: affected: >= 3.0.0, < 3.0.50, >= 2.0.0, < 2.0.52, >= 0.1.1, < 1.0.27
References
- https://github.com/phpseclib/phpseclib/security/advisories/GHSA-94g3-g5v7-q4jg
- https://github.com/phpseclib/phpseclib/commit/ccc21aef71eb170e9bf819b167e67d1fd9e6e788
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.