CVE-2023-27560
HIGH 7.5CVSS 3.1phpseclib Infinite Loop vulnerability
Math/PrimeField.php in phpseclib 3.x before 3.0.19 has an infinite loop with composite primefields.
- Published
- 3 Mar 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-835
- Also known as
- GHSA-hm7p-r324-hhf3
- Sources
- NVDJSONOSV GHSA-hm7p-r324-hhf3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | phpseclib | phpseclibcpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.0.19 | 3.0.19 |
| OSV | Packagist | phpseclib/phpseclib | >= 3.0.0, < 3.0.19 | 3.0.19 |
References
- https://github.com/phpseclib/phpseclib/commit/6298d1cd55c3ffa44533bd41906caec246b60440 · Patch, WEB
- https://github.com/phpseclib/phpseclib/releases/tag/3.0.19 · Release Notes, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-27560 · ADVISORY
- https://github.com/phpseclib/phpseclib/commit/6298d1cd55c3ffa44533bd41906caec246b60440#commitcomment-103226722 · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2023-27560.yaml · WEB
- https://github.com/phpseclib/phpseclib · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 3 Mar 2023)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 3 Mar 2023)