HighGHSA-2f25-pfq3-c7h8CVE-2023-49316
Phpseclib needs guardrails on large binaryfield integers
Published 8 May 2026 · Updated 8 May 2026
Is your project on an affected phpseclib/phpseclib?
Affected package
phpseclib/phpseclibComposer
- Affected
- >=3.0.0 <3.0.34
- Fixed in
- 3.0.34
Update to the fixed version for your release line, for example:
composer require phpseclib/phpseclib:^3.0.34Details
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
Is GHSA-2f25-pfq3-c7h8 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected phpseclib/phpseclib, and gives you the command that fixes it.
More advisories for phpseclib/phpseclib
- MediumCVE-2026-84308phpseclib — non-constant-time X25519 scalar multiplication permits full private-key recovery · 8 Sept 2026
- MediumCVE-2026-55599phpseclib: X.509 certificate validation sends attacker-controlled outbound requests (server-side request forgery) via Authority Information Access · 16 Jun 2026
- HighCVE-2024-27355phpseclib guardrails needed on OID length · 8 May 2026
- HighCVE-2024-27354phpseclib: guardrails needed on isPrime and randomPrime · 6 May 2026
- HighCVE-2026-44167phpseclib has a CVE-2024-27355 mitigation bypass — OID amplification DoS in ASN1::decodeOID() · 5 May 2026
- LowCVE-2026-40194phpseclib has a variable-time HMAC comparison in SSH2::get_binary_packet() using != instead of hash_equals() · 10 Apr 2026
References
- Linkgithub.com/phpseclib/phpseclib/security/advisories/GHSA-2f25-pfq3-c7h8
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-49316
- Linkgithub.com/phpseclib/phpseclib/commit/964d78101a70305df33f442f5490f0adb3b7e77f
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2023-49316.yaml
- Packagegithub.com/phpseclib/phpseclib
- Linkgithub.com/phpseclib/phpseclib/releases/tag/3.0.34
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.