{"id":"BIT-libphp-2022-31627","summary":"Heap buffer overflow in finfo_buffer","details":"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.","aliases":["BIT-php-2022-31627","BIT-php-min-2022-31627","CVE-2022-31627"],"modified":"2025-08-11T15:13:24.767047Z","published":"2025-08-11T13:53:38.342Z","database_specific":{"severity":"Critical","cpes":["cpe:2.3:a:php:php:*:*:*:*:*:*:*:*"]},"references":[{"type":"WEB","url":"https://bugs.php.net/bug.php?id=81723"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31627"},{"type":"WEB","url":"https://security.gentoo.org/glsa/202209-20"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220826-0008/"}],"affected":[{"package":{"name":"libphp","ecosystem":"Bitnami","purl":"pkg:bitnami/libphp"},"ranges":[{"type":"SEMVER","events":[{"introduced":"8.1.0"},{"fixed":"8.1.8"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/libphp/BIT-libphp-2022-31627.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}],"schema_version":"1.7.3"}