CVE-2021-24025Facebook Hhvm
Critical 9.8 No auth needed
Follow: this CVE · Facebook · Facebook Hhvm We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 76
- Auth required
- No
- Published
- Mar 10, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Hhvm.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| hhvm | < 4.56.3 | |
| hhvm | ≥ 4.57.0 ≤ 4.80.1 | |
| hhvm | ≥ 4.81.0 ≤ 4.93.1 | |
| hhvm | 4.94.0 | |
| hhvm | 4.95.0 | |
| hhvm | 4.96.0 | |
| hhvm | 4.97.0 | |
| hhvm | 4.98.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- hhvm.com Release Notes Third Party Advisory