CVE-2022-31627
criticalpriority · track · 40EPSS 0.021 · 82 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.7–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (25)
Products and version ranges known to be affected.
advisories (5)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2022-0601PHP: Schwachstelle ermöglicht nicht spezifizierten AngriffDeutsch2022-07-06csaf · cert_bundDE
Ein Angreifer kann eine Schwachstelle in PHP ausnutzen, um einen nicht näher spezifizierten Angriff durchzuführen.
- WID-SEC-W-2023-1737Juniper Patchday Juli 2023Deutsch2023-07-12csaf · cert_bundDE
Ein Angreifer aus dem angrenzenden Netzwerk oder ein entfernter anonymer oder lokaler Angreifer kann mehrere Schwachstellen in verschiedenen Juniper Produkten ausnutzen, um beliebigen Code auszuführen, Sicherheitsmaßnahmen zu umgehen, vertrauliche Informationen offenzulegen, einen Denial-of-Service-Zustand auszulösen und seine Privilegien zu erweitern.
- BIT-libphp-2022-31627Heap buffer overflow in finfo_buffer2025-08-11vendor · osvUS
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.
- BIT-php-2022-31627Heap buffer overflow in finfo_buffer2024-03-06vendor · osvUS
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.
- BIT-php-min-2022-31627Heap buffer overflow in finfo_buffer2025-01-14vendor · osvUS
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.
also known as (7)
Other names and identifiers for this entity.
- CNNVD-202207-679cnnvd
- EUVD-2022-53079enisa_euvd
- BDU:2022-04762fstec_bdu
- GHSA-2c24-m9rj-gq8menisa_euvd
- BIT-libphp-2022-31627osv
- BIT-php-2022-31627osv
- BIT-php-min-2022-31627osv
sources
Which sources assert this record, and when.
references (16)
External citations — patches, advisories, analysis.
- https://bugs.php.net/bug.php?id=81723cnnvd
- https://cxsecurity.com/cveshow/CVE-2022-31627/cnnvd
- https://packetstormsecurity.com/files/167799/Ubuntu-Security-Notice-USN-5530-1.htmlcnnvd
- https://packetstormsecurity.com/files/168579/Gentoo-Linux-Security-Advisory-202209-20.htmlcnnvd
- https://security.gentoo.org/glsa/202209-20cnnvd
- https://security.netapp.com/advisory/ntap-20220826-0008/cnnvd
- https://vigilance.fr/vulnerability/PHP-buffer-overflow-via-finfo-buffer-38757cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2022071405cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan