# CVE-2023-49316: Phpseclib needs guardrails on large binaryfield integers

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.96%, higher than 62% of CVEs (2026-12-01)
- Published: 2023-11-27T00:00:00.000Z
- Modified: 2026-06-17T06:35:48.733Z
- Also known as: GHSA-2f25-pfq3-c7h8
- Weaknesses: CWE-400, CWE-834
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- phpseclib/phpseclib (Packagist): from 3.0.0 before 3.0.34
- phpseclib phpseclib: from 3.0.0 before 3.0.34

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/phpseclib/phpseclib/commit/964d78101a70305df33f442f5490f0adb3b7e77f> (patch, web)
- <https://github.com/phpseclib/phpseclib/releases/tag/3.0.34> (release-notes, web)
- <https://github.com/phpseclib/phpseclib/security/advisories/GHSA-2f25-pfq3-c7h8> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-49316> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2023-49316.yaml> (web)
- <https://github.com/phpseclib/phpseclib> (package)

## Sources

- CVE List: [CVE-2023-49316](https://www.cve.org/CVERecord?id=CVE-2023-49316), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-2f25-pfq3-c7h8](https://github.com/advisories/GHSA-2f25-pfq3-c7h8), CC-BY-4.0, modified 2026-05-08
- NVD: [CVE-2023-49316](https://nvd.nist.gov/vuln/detail/CVE-2023-49316), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-49316 · Whole record: https://cve.day/CVE-2023-49316.json · Rebuilt by cve.day 2026-11-25T22:58:30.743Z
