CVE-2021-24025
JSON

9.8critical

Due to incorrect string size calculations inside the pregquote function, a large input string passed to the function can trigger an integer…

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
1.61% (higher than 76% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
facebook

Description

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.

Affected

Product or packageVersionsReported by
Facebook HHVM4.98.0, 4.97.0, 4.96.0, 4.95.0, 4.94.0, from 4.81.0 before unspecified, from 4.57.0 before unspecified, from unspecified before 4.56.3 and 3 more
Not affected: from 4.98.1 before unspecified, from 4.97.1 before unspecified, from 4.96.1 before unspecified, from 4.95.1 before unspecified, from 4.94.1 before unspecified, from 4.93.2 before unspecified
CVE List, NVD

All scores

NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

NVD (es)

Debido a cálculos de tamaño de cadena incorrectos dentro de la función preg_quote, una cadena de entrada grande pasada a la función puede desencadenar un desbordamiento de enteros que conlleva a un desbordamiento de la pila. Este problema afecta a versiones de HHVM anteriores a 4.56.3, todas las versiones entre 4.57.0 y 4.80.1, todas las versiones entre 4.81.0 y 4.93.1 y versiones 4.94.0, 4.95.0, 4.96.0, 4.97.0 , 4.98.0

References

Sources

SourceRecordLicence
CVE ListCVE-2021-24025 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-24025 changed 2026-06-17Public domain