Medium severity5.9NVD Advisory· Published Mar 20, 2026· Updated May 8, 2026
CVE-2026-32935
CVE-2026-32935
Description
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
phpseclib/phpseclibPackagist | >= 3.0.0, < 3.0.50 | 3.0.50 |
phpseclib/phpseclibPackagist | >= 2.0.0, < 2.0.52 | 2.0.52 |
phpseclib/phpseclibPackagist | >= 0.1.1, < 1.0.27 | 1.0.27 |
Affected products
2Patches
1ccc21aef71ebmake unpadding constant time
1 file changed · +1 −1
phpseclib/Crypt/Base.php+1 −1 modified@@ -2003,7 +2003,7 @@ function _unpad($text) $length = ord($text[strlen($text) - 1]); - if (!$length || $length > $this->block_size) { + if (!$length | ($length > $this->block_size)) { return false; }
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
4- github.com/phpseclib/phpseclib/commit/ccc21aef71eb170e9bf819b167e67d1fd9e6e788nvdPatchWEB
- github.com/phpseclib/phpseclib/security/advisories/GHSA-94g3-g5v7-q4jgnvdPatchVendor AdvisoryWEB
- github.com/advisories/GHSA-94g3-g5v7-q4jgghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-32935ghsaADVISORY
News mentions
0No linked articles in our index yet.