CVE-2023-49316
HIGH 7.5CVSS 3.1Phpseclib needs guardrails on large binaryfield integers
In Math/BinaryField.php in phpseclib 3 before 3.0.34, excessively large degrees can lead to a denial of service.
- Published
- 27 Nov 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-400CWE-834
- Also known as
- GHSA-2f25-pfq3-c7h8
- Sources
- NVDJSONOSV GHSA-2f25-pfq3-c7h8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | phpseclib | phpseclibcpe:2.3:a:phpseclib:phpseclib:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.0.34 | 3.0.34 |
| OSV | Packagist | phpseclib/phpseclib | >= 3.0.0, < 3.0.34 | 3.0.34 |
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
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 27 Nov 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 8 May 2026)