CVE-2023-27560Phpseclib
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.9% probability of exploitation in 30 days · percentile 57
- Auth required
- No
- Published
- Mar 3, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-835
- 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
Math/PrimeField.php in phpseclib 3.x before 3.0.19 has an infinite loop with composite primefields.
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 |
≥ 3.0.0 < 3.0.19 |
3.0.19 |
composer require "phpseclib/phpseclib:^3.0.19" |
Per OSV / GitHub Advisories (GHSA-hm7p-r324-hhf3). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| phpseclib | phpseclib | ≥ 3.0.0 < 3.0.19 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Release Notes