Description
Math/PrimeField.php in phpseclib 3.x before 3.0.19 has an infinite loop with composite primefields.
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-phpseclib3 | 3.0.19-1 | — |
| Debian 13 | php-phpseclib3 | 3.0.19-1 | — |
| Debian 12 | php-phpseclib3 | 3.0.19-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | php-phpseclib +1 | No fix yet | — |
| Ubuntu 26.04 LTS | php-phpseclib3 +1 | No fix yet | — |
| Ubuntu 25.10 | php-phpseclib +2 | No fix yet | — |
| Ubuntu 24.04 LTS | php-phpseclib3 +1 | No fix yet | — |
| Ubuntu 22.04 LTS | ldap-account-manager | No fix yet | — |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | ldap-account-manager | No fix yet | — |
| Ubuntu 18.04 LTS | ldap-account-manager | No fix yet | — |
| Ubuntu 16.04 LTS | ldap-account-manager | No fix yet | — |
| Ubuntu Pro 26.04 LTS | php-phpseclib | No fix yet | — |
| Ubuntu Pro 24.04 LTS | php-phpseclib | No fix yet | — |
| Ubuntu Pro 22.04 LTS | php-phpseclib +1 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | php-phpseclib | No fix yet | — |
| Ubuntu Pro 18.04 LTS | php-phpseclib | No fix yet | — |
| Ubuntu Pro 16.04 LTS | php-phpseclib | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | phpseclib/phpseclib | >= 3.0.0, < 3.0.19 | 3.0.19 | GHSA-hm7p-r324-hhf3 |