{"id":"CVE-2018-6345","url":"https://www.cyber-defence.io/tools/cve/CVE-2018-6345","generatedAt":"2026-10-28T21:17:12.931Z","title":"The function number_format is vulnerable to a heap overflow issue when its second argument ($dec_points) is excessively large.","description":"The function number_format is vulnerable to a heap overflow issue when its second argument ($dec_points) is excessively large. The internal implementation of the function will cause a string to be created with an invalid length, which can then interact poorly with other functions. This affects all supported versions of HHVM (3.30.1 and 3.27.5 and below).","published":"2019-01-15T22:29:00.000Z","lastModified":"2026-06-17T02:01:43.000Z","status":"Modified","sourceIdentifier":"cve-assign@fb.com","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-122","CWE-787"],"affected":["facebook/hhvm"],"epss":{"score":0.01748,"percentile":0.7771,"date":"2026-10-27","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (1.75%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"https://github.com/facebook/hhvm/commit/190ffdf6c8b1ec443be202c7d69e63a7e3da25e3","tags":["Patch","Third Party Advisory"],"source":"cve-assign@fb.com"},{"url":"https://hhvm.com/blog/2019/01/14/hhvm-3.30.2.html","tags":["Release Notes","Vendor Advisory"],"source":"cve-assign@fb.com"},{"url":"https://github.com/facebook/hhvm/commit/190ffdf6c8b1ec443be202c7d69e63a7e3da25e3","tags":["Patch","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://hhvm.com/blog/2019/01/14/hhvm-3.30.2.html","tags":["Release Notes","Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-6345","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}