CVE-2021-24025
Reported by facebook · Published March 10, 2021
Due to incorrect string size calculations inside the preg_quote function, a large input string passed to the function can trigger an integer overflow leading to a heap overflow. This issue affects HHVM versions prior to 4.56.3, all versions between 4.57.0 and 4.80.1, all versions between 4.81.0 and 4.93.1, and versions 4.94.0, 4.95.0, 4.96.0, 4.97.0, 4.98.0.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| hhvm | unspecified, 4.93.1, 4.80.1, 4.56.3 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| HHVM | 4.98.1, 4.98.0, 4.97.1 | |
| HHVM | *, 4.98.1, 4.97.1 |
Timeline
- Mar 10, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Aug 3, 2024 CVE Updated
- Apr 4, 2026 Security Advisory
- Aug 23, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-24025
vulnetix vdb fixes CVE-2021-24025
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-2021-24025/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart