{"id":"CVE-2022-31627","published":"2022-07-28T05:50:09Z","modified":"2024-09-16T21:02:46Z","title":"Heap buffer overflow in finfo_buffer","vendor":"PHP","product":"PHP","tier":"tail","description":{"text":"In PHP versions 8.1.x below 8.1.8, when fileinfo functions, such as finfo_buffer, due to incorrect patch applied to the third party code from libmagic, incorrect function may be used to free allocated memory, which may lead to heap corruption.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02254,"percentile":0.83629,"provenance":"source"},"cwes":[{"id":"CWE-590","name":"Free of Memory not on the Heap"}],"references":[{"url":"https://bugs.php.net/bug.php?id=81723","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20220826-0008/","tags":["x_refsource_CONFIRM"]},{"url":"https://security.gentoo.org/glsa/202209-20","tags":["vendor-advisory","x_refsource_GENTOO"]}],"priority":{"score":22.1,"factors":[{"name":"EPSS percentile","points":16.73},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"php","affectedVersions":[{"vendor":"PHP Group","product":"PHP","versions":[">= 8.1.X, < 8.1.8"]}],"euvd":{"id":"EUVD-2022-53079","exploited":false,"provenance":"source"}}