GitHub Advisoryadvisory · Packagist
GHSA-2f25-pfq3-c7h8 Phpseclib needs guardrails on large binaryfield integers
HIGH
Official page ↗
- Aliases
- CVE-2023-49316
- Ecosystem
- Packagist
- Packages
- phpseclib/phpseclib
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-400, CWE-834
- Reviewed
- 2026-05-08
Affected packages
• Packagist phpseclib/phpseclib: >= 3.0.0, < 3.0.34 → fixed in 3.0.34
Description
Impact
Anyone loading untrusted ASN1 files (eg. X509 certificates, RSA PKCS8 private or public keys, etc)
Patches
https://github.com/phpseclib/phpseclib/commit/964d78101a70305df33f442f5490f0adb3b7e77f
Workarounds
No.
References
https://github.com/phpseclib/phpseclib/commit/964d78101a70305df33f442f5490f0adb3b7e77f
https://www.usenix.org/system/files/usenixsecurity25-shi-bing.pdf
Related
Alias · CVE (1)
- CVE-2023-49316 In Math/BinaryField.php in phpseclib 3 before 3.0.34, excessively large degrees can lead to a denial of service. vulnerability
References
- 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/phpseclib/phpseclib/commit/964d78101a70305df33f442f5490f0adb3b7e77f web
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2023-49316.yaml web
- https://github.com/phpseclib/phpseclib package
- https://github.com/phpseclib/phpseclib/releases/tag/3.0.34 web