CVE-2022-31627Php
Critical 9.8 No auth needed
Follow: this CVE · Php · Php We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.1% probability of exploitation in 30 days · percentile 83
- Auth required
- No
- Published
- Jul 28, 2022
- Updated
- Jun 17, 2026
- Category
- Web application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Php.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| php | php | ≥ 8.1.0 < 8.1.8 |
Official sources
References
Links published by the sources. Open them with care.
- bugs.php.net Exploit Issue Tracking Patch
- security.gentoo.org Third Party Advisory
- security.netapp.com Third Party Advisory