Vulnerabilities · 2022 · Php
CVE-2022-31627
Php vulnerability
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.
Affected products
Php. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugs.php.net/bug.php?id=81723 · Exploit
- security.gentoo.org/glsa/202209-20 · Third Party Advisory
- security.netapp.com/advisory/ntap-20220826-0008/ · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-31627
- cve.org/CVERecord?id=CVE-2022-31627
More vulnerabilities in Php products
CVE-2025-14180CVE-2025-14178CVE-2025-14177CVE-2025-6491CVE-2025-1861CVE-2025-1736CVE-2025-1735CVE-2025-1734All 740
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.