High

phpseclib Infinite Loop vulnerability

  • Disclosed: 03.03.2023
  • Updated: 11.10.2026 10:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package phpseclib/phpseclib >= 3.0.0, < 3.0.19 3.0.19

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness (CWE)
CWE-835
Platform
Composer
Package
phpseclib/phpseclib
Disclosed
03.03.2023
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-hm7p-r324-hhf3 - CC BY 4.0

Vulnerability history: phpseclib/phpseclib

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (11) in the archive
Total entries
11
First → latest
04.2021 09.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 8
  • Medium 2
  • Low 1

Disclosures per year

  1. 2021: 1
  2. 2022: 0
  3. 2023: 1
  4. 2024: 1
  5. 2025: 0
  6. 2026: 8
Severity:
  1. High · 7.5 CVE-2023-49316 >= 3.0.0, < 3.0.34 3.0.34
  2. High · 7.5 CVE-2024-27355 >= 2.0.0, < 2.0.47, >= 3.0.0, < 3.0.36, >= 0.1.1, < 1.0.23 2.0.47, 3.0.36, 1.0.23
  3. High · 7.5 CVE-2024-27354 >= 0.1.1, < 1.0.23, >= 2.0.0, < 2.0.47, >= 3.0.0, < 3.0.36 1.0.23, 2.0.47, 3.0.36
  4. High · 7.5 CVE-2026-44167 >= 0.1.1, < 1.0.29, >= 2.0.0, < 2.0.54, >= 3.0.0, < 3.0.52 1.0.29, 2.0.54, 3.0.52
  5. High CVE-2026-32935 >= 3.0.0, < 3.0.50, >= 2.0.0, < 2.0.52, >= 0.1.1, < 1.0.27 3.0.50, 2.0.52, 1.0.27
  6. High · 7.5 CVE-2023-52892 < 1.0.22, >= 2.0.0, < 2.0.46, >= 3.0.0, < 3.0.33 1.0.22, 2.0.46, 3.0.33
  7. phpseclib Infinite Loop vulnerability this entry
    High · 7.5 CVE-2023-27560 >= 3.0.0, < 3.0.19 3.0.19
  8. High · 7.5 CVE-2021-30130 >= 3.0.0, < 3.0.7, < 2.0.31 3.0.7, 2.0.31

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.