Buffer overflow in PHP
CVE-2022-31627
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.7 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L.
EPSS exploit prediction
EPSS: 0.021 (81.8th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 82nd percentile — 81.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.021 · newest: 0.021 · change: +0.001
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
References
- bugs.php.net/bug.php (Exploit, Patch, Third Party Advisory, Issue Tracking)
- security.netapp.com/advisory/ntap-20220826-0008/ (Third Party Advisory)
- security.gentoo.org/glsa/202209-20 (vendor-advisory, Third Party Advisory)
Frequently asked questions
- What is CVE-2022-31627?
- CVE-2022-31627 is a high-severity vulnerability in PHP, classified under CWE-590. CVSS score: 7.7/10. Published 2022-07-28.
- How severe is CVE-2022-31627?
- High severity. CVSS v3 base score is 7.7 out of 10.
- Is CVE-2022-31627 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.