Skip to content
Fencer Vulns
high 7.5

CVE-2023-49316 json

Phpseclib needs guardrails on large binaryfield integers

published 2023-11-27 2 y ago modified 2026-06-17 4 mo ago also GHSA-2f25-pfq3-c7h8 , EUVD-2023-2993

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.8%
EPSS 0.8% chance of exploitation in 30 days, percentile 56%
public exploits
0
none known

Summary

In Math/BinaryField.php in phpseclib 3 before 3.0.34, excessively large degrees can lead to a denial of service.

Patch / fix

  • packagist phpseclib/phpseclib 3.0.34
  • phpseclib phpseclib 3.0.34
  • php-phpseclib3 Debian 12 3.0.19-1+deb12u1
  • php-phpseclib3 Debian 14, Debian 13 3.0.34-1

debian advisories DEBIAN-CVE-2023-49316

Exploit prediction

0.78% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
packagist phpseclib/phpseclib
>=3.0.0, <3.0.34
3.0.34

Classification

Weakness
  • CWE-834 Excessive Iteration
  • CWE-400 Uncontrolled Resource Consumption

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.