CVE-2023-27560
JSON

7.5high

phpseclib Infinite Loop vulnerability

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.81% (higher than 58% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-hm7p-r324-hhf3

Description

Math/PrimeField.php in phpseclib 3.x before 3.0.19 has an infinite loop with composite primefields.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
phpseclib/phpseclib (Packagist)from 3.0.0 before 3.0.19GitHub Advisory Database
phpseclib phpseclibfrom 3.0.0 before 3.0.19NVD

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-835

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Math/PrimeField.php in phpseclib 3.x before 3.0.19 has an infinite loop with composite primefields.

GitHub Advisory Database

Math/PrimeField.php in phpseclib has an infinite loop with composite primefields. This vulnerability was introduced in version 3.0.0, and has been patched in 3.0.19. The CVE for this issue originally identified the the vulnerable version as 2.x, however, the vulnerable functionality was not introduced until version 3.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-27560 changed 2025-03-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-hm7p-r324-hhf3 changed 2025-03-06CC-BY-4.0
NVDCVE-2023-27560 changed 2026-06-17Public domain