{"id":"CVE-2018-6345","published":"2019-01-15T22:00:00Z","modified":"2024-08-05T06:01:48Z","title":"The function number_format is vulnerable to a heap overflow issue when its second argument ($dec_points) is…","vendor":"Meta","product":"HHVM","tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01748,"percentile":0.78225,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://github.com/facebook/hhvm/commit/190ffdf6c8b1ec443be202c7d69e63a7e3da25e3","tags":["x_refsource_MISC"]},{"url":"https://hhvm.com/blog/2019/01/14/hhvm-3.30.2.html","tags":["x_refsource_MISC"]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":15.64}]},"vendorSlug":"meta","affectedVersions":[{"vendor":"Facebook","product":"HHVM","versions":["3.30.2",">= 3.30.0, < unspecified","3.27.6",">= unspecified, < 3.27.6"]}],"euvd":{"id":"EUVD-2018-18103","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-meta-hhvm-cve-2018-6345","children":[{"from":"CVE-2018-6345","to":"CVE-2019-11929","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["hphp/runtime/base/zend-string.cpp"],"commits":["https://github.com/facebook/hhvm/commit/190ffdf6c8b1ec443be202c7d69e63a7e3da25e3","https://github.com/facebook/hhvm/commit/dbeb9a56a638e3fdcef8b691c2a2967132dae692"],"basis":"shared function","functions":["string_number_format"]}]}]}}