CVE-2023-27560 phpseclib Infinite Loop vulnerability

High 7.5 Published Updated

An attacker can cause a denial of service via an infinite loop in the PrimeField component of the phpseclib library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-27560?

CVE-2023-27560 is a high-severity denial of service vulnerability in n/a, published on 3 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

Weakness: CWE-835

Which versions are affected by CVE-2023-27560?

2 open source packages ship an affected version, including phpseclib/phpseclib. It affects 1 product.

PackageAffectedFixed in
phpseclib/phpseclib PackagistFrom 3.0.03.0.19
phpseclib/phpseclib PackagistFrom 3.0.03.0.19

Products include Phpseclib Phpseclib.

How do I fix CVE-2023-27560?

Upgrade phpseclib/phpseclib to 3.0.19 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-27560 being exploited?

There is no known exploitation of CVE-2023-27560 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2023-27560, GHSA-hm7p-r324-hhf3, UBUNTU-CVE-2023-27560.

Is CVE-2023-27560 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free