Live threats

All CVEs / Phpseclib

CVE-2023-27560Phpseclib

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
0.9%
probability of exploitation in 30 days · percentile 57
Auth required
No
Published
Mar 3, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-835
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Phpseclib.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist phpseclib/phpseclib ≥ 3.0.0 < 3.0.19 3.0.19 composer require "phpseclib/phpseclib:^3.0.19"

Per OSV / GitHub Advisories (GHSA-hm7p-r324-hhf3). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
phpseclibphpseclib≥ 3.0.0 < 3.0.19

Official sources

References

Links published by the sources. Open them with care.