Advisory record · GHSA-hm7p-r324-hhf3

phpseclib Infinite Loop vulnerability

CVSS 7.5 HighEPSS 0.0081 · 57th percentile

Published by the GitHub Advisory Database at 3 Mar 2023, 06:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
phpseclib/phpseclibPackagist>=3.0.0, <3.0.193.0.19
Identifiers
GHSA-hm7p-r324-hhf3 · CVE-2023-27560 · PKSA-qrgb-4pgm-cz41
Weakness (CWE)
CWE-835
Published
3 Mar 2023
Updated
6 Mar 2025

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

phpseclib/phpseclib versions 3.0.0 up to but not including 3.0.19 contain an infinite loop in Math/PrimeField.php when working with composite primefields. The source does not describe what an attacker must do to trigger it or what the resulting impact is. Upgrade to version 3.0.19, which contains the fix.

Written 4 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.5 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS 0.0081, the 57th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:27 UTC First seen by agentprime
  2. 31 Oct 2026, 14:27 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.