{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": [
              "cpe:2.3:a:facebook:hhvm:*:*:*:*:*:*:*:*",
              "cpe:2.3:a:facebook:hhvm:4.94.0:*:*:*:*:*:*:*",
              "cpe:2.3:a:facebook:hhvm:4.95.0:*:*:*:*:*:*:*",
              "cpe:2.3:a:facebook:hhvm:4.96.0:*:*:*:*:*:*:*",
              "cpe:2.3:a:facebook:hhvm:4.97.0:*:*:*:*:*:*:*",
              "cpe:2.3:a:facebook:hhvm:4.98.0:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "4.56.3"
              },
              {
                "introduced": "4.57.0"
              },
              {
                "last_affected": "4.80.1"
              },
              {
                "introduced": "4.81.0"
              },
              {
                "last_affected": "4.93.1"
              },
              {
                "introduced": "4.94.0"
              },
              {
                "last_affected": "4.94.0"
              },
              {
                "introduced": "4.95.0"
              },
              {
                "last_affected": "4.95.0"
              },
              {
                "introduced": "4.96.0"
              },
              {
                "last_affected": "4.96.0"
              },
              {
                "introduced": "4.97.0"
              },
              {
                "last_affected": "4.97.0"
              },
              {
                "introduced": "4.98.0"
              },
              {
                "last_affected": "4.98.0"
              }
            ],
            "source": [
              "CPE_RANGE",
              "CPE_STRING",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1e8015b71d689f612ecf4995544a200d5c5617a3"
            },
            {
              "introduced": "ce87598e3c65a922a6e25c7119e2446f1fa6a4b6"
            },
            {
              "last_affected": "70d73a611d41dc26949c8385dc2da034f1fd4361"
            },
            {
              "introduced": "75407bf7bfdd694f18e2660c4e78aeeacb07b622"
            },
            {
              "last_affected": "a69b8df29629617761fa9eda1c17cde81b321e11"
            },
            {
              "introduced": "510a8a05894483f0f398f380df8587a03d52bf2d"
            },
            {
              "last_affected": "4cd5c1d9e75effa0dd1dd8a53dfd47c62111f956"
            },
            {
              "fixed": "08193b7f0cd3910256e00d599f0f3eb2519c44ca"
            }
          ],
          "repo": "https://github.com/facebook/hhvm",
          "type": "GIT"
        }
      ],
      "versions": [
        "4.94.0",
        "4.95.0",
        "4.96.0",
        "4.97.0",
        "4.98.0"
      ]
    }
  ],
  "database_specific": {},
  "details": "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.",
  "id": "CVE-2021-24025",
  "modified": "2026-07-08T05:38:54.329667247Z",
  "published": "2021-03-10T16:15:16.750Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://hhvm.com/blog/2021/02/25/security-update.html"
    },
    {
      "type": "FIX",
      "url": "https://github.com/facebook/hhvm/commit/08193b7f0cd3910256e00d599f0f3eb2519c44ca"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}