CVE-2023-27560 json
phpseclib Infinite Loop vulnerability
published 2023-03-03 3 y ago modified 2026-06-17 4 mo ago also GHSA-hm7p-r324-hhf3 , EUVD-2023-1036
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 57%
- public exploits
- 0
- none known
Summary
Math/PrimeField.php in phpseclib 3.x before 3.0.19 has an infinite loop with composite primefields.
Patch / fix
- packagist phpseclib/phpseclib 3.0.19
- phpseclib phpseclib 3.0.19
- php-phpseclib3 Debian 14, Debian 13, Debian 12 3.0.19-1
debian advisories DEBIAN-CVE-2023-27560
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-27560 updated cvss 3.5
phpseclib: Math/PrimeField.php infinite loop
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 20 mo ago
Exploit prediction
0.81% chance of exploitation in the next 30 days, higher than 57% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | phpseclib/phpseclib | >=3.0.0, <3.0.19 |
3.0.19 |
Classification
- Weakness
-
- CWE-835 Loop with Unreachable Exit Condition
References
-
github.com
/phpseclib/phpseclib/commit/6298d1cd55c3ffa44533bd41906caec246b60440
web, patch
-
github.com
/phpseclib/phpseclib/commit/6298d1cd55c3ffa44533bd41906caec246b60440#commitcomment-103226722
web
-
github.com
/phpseclib/phpseclib/releases/tag/3.0.19
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2023-27560
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2023-27560.yaml
web
-
github.com
/phpseclib/phpseclib
package
Sources
- CVE List CVE-2023-27560
- GitHub Advisory GHSA-hm7p-r324-hhf3
- NVD CVE-2023-27560
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.