CVE-2024-27355
phpseclib guardrails needed on OID length
Reported by mitre · Published March 1, 2024
phpseclib/phpseclib is fixed in 3.0.36, 2.0.47 and 1.0.23 (Packagist)
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).
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| phpseclib/phpseclib | Packagist | 3.0.36, 2.0.47, 1.0.23 |
| phpseclib | phpseclib | 3.0.36, 2.0.47, 1.0.23 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| phpseclib | phpseclib | 0.1.1, 2.0.0, 3.0.0 |
| phpseclib | phpseclib | 2.0, 3.0, 1.0 |
Timeline
- Feb 29, 2024 GitHub Gist PoC
- Mar 1, 2024 CVE Published
- Mar 2, 2024 EPSS Score (30 in total, the first dated here)
- Mar 2, 2024 PoC Published (2 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (9 in total, the first dated here)
- Jan 15, 2026 CVE Updated
- Mar 17, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-27355
vulnetix vdb fixes CVE-2024-27355
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-27355/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20240305 [SECURITY] [DLA 3749-1] phpseclib security update mailing-list
- [debian-lts-announce] 20240305 [SECURITY] [DLA 3750-1] php-phpseclib security update mailing-list
- https://nvd.nist.gov/vuln/detail/CVE-2024-27355 advisory
- https://github.com/advisories/GHSA-f2qx-66wf-wvvx advisory
- https://github.com/phpseclib/phpseclib/security/advisories/GHSA-f2qx-66wf-wvvx url
- https://github.com/phpseclib/phpseclib/commit/e32531001b4d62c66c3d824ccef54ffad835eb59 patch
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2024-27355.yaml url
- https://github.com/phpseclib/phpseclib url