CVE-2024-27354Phpseclib
High 7.5 No auth needed
Follow: this CVE · Phpseclib · Phpseclib We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 52
- Auth required
- No
- Published
- Mar 1, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-400
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
An issue was discovered in phpseclib 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36. An attacker can construct a malformed certificate containing an extremely large prime to cause a denial of service (CPU consumption for an isPrime primality check). NOTE: this issue was introduced when attempting to fix CVE-2023-27560.
What to do
- Apply the vendor's security update for Phpseclib.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | phpseclib/phpseclib |
≥ 0.1.1 < 1.0.23 |
1.0.23 |
composer require "phpseclib/phpseclib:^1.0.23" |
| Packagist | phpseclib/phpseclib |
≥ 2.0.0 < 2.0.47 |
2.0.47 |
composer require "phpseclib/phpseclib:^2.0.47" |
| Packagist | phpseclib/phpseclib |
≥ 3.0.0 < 3.0.36 |
3.0.36 |
composer require "phpseclib/phpseclib:^3.0.36" |
Per OSV / GitHub Advisories (GHSA-2528-jw5q-ww88). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| phpseclib | phpseclib | ≥ 1.0.0 < 1.0.23 |
| phpseclib | phpseclib | ≥ 2.0.0 < 2.0.47 |
| phpseclib | phpseclib | ≥ 3.0.0 < 3.0.36 |
| debian | debian_linux | 10.0 |
Official sources
References
Links published by the sources. Open them with care.
- gist.github.com Third Party Advisory
- github.com Product
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory