CVE-2024-27355: phpseclib/phpseclib · phpseclib guardrails needed on OID length
Affects phpseclib/phpseclibSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 2.0.47 soon.
Data as of 27 Oct 2026, 00:07 UTC
- Patch
- Available – fixed in 2.0.47, 3.0.36, 1.0.23
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 1 Mar 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade phpseclib/phpseclib to 2.0.47; phpseclib/phpseclib to 3.0.36; phpseclib/phpseclib to 1.0.23.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistphpseclib/phpseclib | Affected
| Fixed in
|
| Packagistphpseclib/phpseclib | Affected
| Fixed in
|
| Packagistphpseclib/phpseclib | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
### Impact Any application using that loads untrusted ASN1 files (eg. X509 certificates, RSA PKCS8 private or public keys, etc). ### Patches https://github.com/phpseclib/phpseclib/commit/e32531001b4d62c66c3d824ccef54ffad835eb59 ### Workarounds No. ### Resources https://github.com/phpseclib/phpseclib/commit/e32531001b4d62c66c3d824ccef54ffad835eb59 https://www.usenix.org/system/files/conference/usenixsecurity25/sec25cycle1-prepub-599-shi-bing.pdf
References
- github.com/phpseclib/phpseclib/security/advisories/GHSA-f2qx-66wf-wvvx (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2024-27355 (opens in a new tab)
- github.com/phpseclib/phpseclib/commit/e32531001b4d62c66c3d824ccef54ffad835eb59 (opens in a new tab)
- gist.github.com/katzj/ee72f3c2a00590812b2ea3c0c8890e0b (opens in a new tab)
- github.com/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2024-27355.yaml (opens in a new tab)
- github.com/phpseclib/phpseclib (opens in a new tab)
- github.com/phpseclib/phpseclib/blob/978d081fe50ff92879c50ff143c62a143edb0117/phpseclib/File/ASN1.php (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/03/msg00002.html (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/03/msg00003.html (opens in a new tab)