CVE-2024-27354: phpseclib: guardrails needed on isPrime and randomPrime

CVE-2024-27354 · Severity: low · CVSS 3.1 · Published 2026-05-06

phpseclib: guardrails needed on isPrime and randomPrime

Technologies: phpseclib/phpseclib (Packagist). Vendors: Packagist.

Quick answers

Is CVE-2024-27354 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-27354 being exploited in the wild.
How severe is CVE-2024-27354?
Low severity, with a CVSS score of 3.1, published 6 May 2026.
Which products and versions are affected?
phpseclib/phpseclib (Packagist) ECOSYSTEM:introduced=0.1.1,fixed=1.0.23.
Is there a fix for CVE-2024-27354?
Yes. phpseclib/phpseclib (Packagist): upgrade to 1.0.23 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2024-27354?
Check whether you run phpseclib/phpseclib (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • phpseclib/phpseclib (Packagist): upgrade to 1.0.23 or later
    composer require phpseclib/phpseclib:^1.0.23

Affected products

  • phpseclib/phpseclib (Packagist) ECOSYSTEM:introduced=0.1.1,fixed=1.0.23

Identifiers

  • CVE-2024-27354
  • GHSA-2528-jw5q-ww88

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.