Infinite loop in phpseclib - CVE-2023-27560

 

Infinite loop in phpseclib - CVE-2023-27560

Published: June 7, 2023 / Updated: May 21, 2026


Vulnerability identifier: #VU77053
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-27560
CWE-ID: CWE-835
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to infinite loop with composite primefields within Math/PrimeField.php. A remote attacker can consume all available system resources and cause denial of service conditions.


Affected software

phpseclib
API Portal

How to mitigate CVE-2023-27560

Install updates from vendor's website.

phpseclib - update to 3.0.19
API Portal - update to May 2023

External References

Related Security Bulletins