# CVE-2024-27355: phpseclib guardrails needed on OID length

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `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.57%, higher than 48% of CVEs (2026-12-01)
- Published: 2024-03-01T00:00:00.000Z
- Modified: 2026-06-17T07:19:43.123Z
- Also known as: GHSA-f2qx-66wf-wvvx
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: mitre

## Description

An issue was discovered in phpseclib 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36. When processing the ASN.1 object identifier of a certificate, a sub identifier may be provided that leads to a denial of service (CPU consumption for decodeOID).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- phpseclib phpseclib: from 1.0 before 1.0.23; from 2.0 before 2.0.47; from 3.0 before 3.0.36; from 1.0.0 before 1.0.23; from 2.0.0 before 2.0.47; from 3.0.0 before 3.0.36
- phpseclib/phpseclib (Packagist): from 2.0.0 before 2.0.47; from 3.0.0 before 3.0.36; from 0.1.1 before 1.0.23
- debian debian_linux: 10.0

## Every score

- CISA-ADP: 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`
- 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`

## References

- <https://github.com/phpseclib/phpseclib/blob/978d081fe50ff92879c50ff143c62a143edb0117/phpseclib/File/ASN1.php#L1129> (product, web)
- <https://gist.github.com/katzj/ee72f3c2a00590812b2ea3c0c8890e0b> (third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2024/03/msg00002.html> (mailing-list, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2024/03/msg00003.html> (mailing-list, third-party-advisory, web)
- <https://github.com/phpseclib/phpseclib/security/advisories/GHSA-f2qx-66wf-wvvx> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-27355> (advisory)
- <https://github.com/phpseclib/phpseclib/commit/e32531001b4d62c66c3d824ccef54ffad835eb59> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2024-27355.yaml> (web)
- <https://github.com/phpseclib/phpseclib> (package)

## Sources

- CVE List: [CVE-2024-27355](https://www.cve.org/CVERecord?id=CVE-2024-27355), CVE Terms of Use, modified 2024-08-13
- GitHub Advisory Database: [GHSA-f2qx-66wf-wvvx](https://github.com/advisories/GHSA-f2qx-66wf-wvvx), CC-BY-4.0, modified 2026-05-08
- NVD: [CVE-2024-27355](https://nvd.nist.gov/vuln/detail/CVE-2024-27355), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27355 · Whole record: https://cve.day/CVE-2024-27355.json · Rebuilt by cve.day 2026-11-25T22:58:37.225Z
