{"id":"CVE-2021-24025","aliases":["CVE-2021-24025"],"related":[],"kind":"vulnerability","state":"published","title":"Due to incorrect string size calculations inside the pregquote function, a large input string passed to the function can trigger an integer…","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.&#xa0;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","source":"nvd"}],"published":"2021-03-10T15:50:30.000Z","modified":"2026-06-17T03:39:10.890Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-122","CWE-190"],"affected":[{"ranges":[{"type":"custom","introduced":"4.98.1","fixed":"unspecified","status":"unaffected"},{"version":"4.98.0","status":"affected"},{"type":"custom","introduced":"4.97.1","fixed":"unspecified","status":"unaffected"},{"version":"4.97.0","status":"affected"},{"type":"custom","introduced":"4.96.1","fixed":"unspecified","status":"unaffected"},{"version":"4.96.0","status":"affected"},{"type":"custom","introduced":"4.95.1","fixed":"unspecified","status":"unaffected"},{"version":"4.95.0","status":"affected"},{"type":"custom","introduced":"4.94.1","fixed":"unspecified","status":"unaffected"},{"version":"4.94.0","status":"affected"},{"type":"custom","introduced":"4.93.2","fixed":"unspecified","status":"unaffected"},{"type":"custom","introduced":"4.81.0","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"4.80.2","fixed":"unspecified","status":"unaffected"},{"type":"custom","introduced":"4.57.0","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"4.56.3","fixed":"unspecified","status":"unaffected"},{"type":"custom","introduced":"unspecified","fixed":"4.56.3","status":"affected"}],"vendor":"Facebook","product":"HHVM","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.56.3"},{"status":"affected","introduced":"4.57.0","lastAffected":"4.80.1"},{"status":"affected","introduced":"4.81.0","lastAffected":"4.93.1"},{"status":"affected","version":"4.94.0"},{"status":"affected","version":"4.95.0"},{"status":"affected","version":"4.96.0"},{"status":"affected","version":"4.97.0"},{"status":"affected","version":"4.98.0"}],"vendor":"facebook","product":"hhvm","cpe":"cpe:2.3:a:facebook:hhvm:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://hhvm.com/blog/2021/02/25/security-update.html","tags":["release-notes","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/facebook/hhvm/commit/08193b7f0cd3910256e00d599f0f3eb2519c44ca","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"facebook","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-24025","url":"https://www.cve.org/CVERecord?id=CVE-2021-24025","licence":"CVE Terms of Use","modified":"2024-08-03T19:14:10.116Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-24025","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-24025","licence":"Public domain","modified":"2026-06-17T03:39:10.890Z"}],"updatedAt":"2026-11-25T22:58:00.220Z","epss":{"score":0.01614,"percentile":0.76701,"date":"2026-12-01T12:00:22.000Z"}}