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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| phpseclib | phpseclib | >= 3.0.0, < 3.0.50, >= 2.0.0, < 2.0.52, >= 0.1.1, < 1.0.27 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | php-phpseclib | 2.0.52-1 | — |
| Debian 14 | php-phpseclib3 | 3.0.50-1 | — |
| Debian 13 | php-phpseclib | 2.0.48-3+deb13u1 | DSA-6186-1 |
| Debian 13 | php-phpseclib3 | 3.0.43-2+deb13u1 | DSA-6187-1 |
| Debian 13 | phpseclib | 1.0.23-6+deb13u1 | DSA-6185-1 |
| Debian 12 | php-phpseclib | 2.0.42-1+deb12u3 | DSA-6186-1 |
| Debian 12 | php-phpseclib3 | 3.0.19-1+deb12u4 | DSA-6187-1 |
| Debian 12 | phpseclib | 1.0.20-1+deb12u3 | DSA-6185-1 |
| Debian 11 | phpseclib | 1.0.19-3+deb11u3 | DLA-4518-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | php-phpseclib3 | No fix yet | — |
| Ubuntu 26.04 LTS | php-phpseclib3 | No fix yet | — |
| Ubuntu 25.10 | phpseclib +2 | No fix yet | — |
| Ubuntu 24.04 LTS | php-phpseclib3 | No fix yet | — |
| Ubuntu 22.04 LTS | phpseclib | 1.0.20-1+deb12u3build0.22.04.1 | USN-8769-1 |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 26.04 LTS | php-phpseclib | 2.0.51-1ubuntu0.1~esm1 | USN-8830-1 |
| Ubuntu Pro 26.04 LTS | phpseclib | 1.0.24-1ubuntu0.1~esm1 | USN-8769-1 |
| Ubuntu Pro 24.04 LTS | php-phpseclib | 2.0.47-1ubuntu0.1~esm1 | USN-8830-1 |
| Ubuntu Pro 24.04 LTS | phpseclib | 1.0.23-1ubuntu0.1~esm1 | USN-8769-1 |
| Ubuntu Pro 22.04 LTS | php-phpseclib | 2.0.36-1ubuntu0.1~esm3 | USN-8830-1 |
| Ubuntu Pro 22.04 LTS | php-phpseclib3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | php-phpseclib | 2.0.23-2ubuntu0.1~esm3 | USN-8830-1 |
| Ubuntu Pro 20.04 LTS | phpseclib | 1.0.18-2ubuntu0.1~esm2 | USN-8769-1 |
| Ubuntu Pro 18.04 LTS | php-phpseclib | 2.0.9-1ubuntu0.1~esm3 | USN-8830-1 |
| Ubuntu Pro 18.04 LTS | phpseclib | 1.0.9-1ubuntu0.1~esm2 | USN-8769-1 |
| Ubuntu Pro 16.04 LTS | php-phpseclib | 2.0.1-1ubuntu0.1~esm1 | USN-8830-1 |
| Ubuntu Pro 16.04 LTS | phpseclib | 1.0.1-3ubuntu0.1+esm1 | USN-8769-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | nextcloud-server-33 | 33.0.3-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | phpseclib/phpseclib | >= 3.0.0, < 3.0.50 | 3.0.50 | GHSA-94g3-g5v7-q4jg |
| Packagist | phpseclib/phpseclib | >= 2.0.0, < 2.0.52 | 2.0.52 | GHSA-94g3-g5v7-q4jg |
| Packagist | phpseclib/phpseclib | >= 0.1.1, < 1.0.27 | 1.0.27 | GHSA-94g3-g5v7-q4jg |
Advisories 7
- WID-SEC-2026-1931 Cacti: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 25, 2026
- USN-8830-1 php-phpseclib vulnerabilities Ubuntu Security Notices (USN) · Sep 28, 2026
- USN-8769-1 phpseclib vulnerability Ubuntu Security Notices (USN) · Sep 16, 2026
- DLA-4518-1 phpseclib - security update Debian Security (DSA / DLA) · Mar 30, 2026
- DSA-6185-1 phpseclib - security update Debian Security (DSA / DLA) · Mar 29, 2026
- DSA-6186-1 php-phpseclib - security update Debian Security (DSA / DLA) · Mar 29, 2026
- DSA-6187-1 php-phpseclib3 - security update Debian Security (DSA / DLA) · Mar 29, 2026