---
cve: "CVE-2022-31627"
severity: "HIGH"
cvss: 7.7
epss: "2%"
vendor: "PHP Group"
kev: false
exploited: false
published: "2022-07-28 06:15:07"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-06T16:17:53+02:00"
---

# CVE-2022-31627

> 7.7 HIGH

## Beschreibung

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-Vektor

```
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Hoch | good |
| PR Privilegien | Keine | bad |
| UI Interaktion | Keine | bad |
| S Scope | Unverändert | good |
| C Vertraulichkeit | Hoch | bad |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Gering | warn |

## Patch verfügbar (OSV)

- 8d84e44e7bef81b5b5d896ba1459304e94ec9b10 (Commit)

## Referenzen

- <https://bugs.php.net/bug.php?id=81723>
- <https://security.netapp.com/advisory/ntap-20220826-0008/>
- <https://security.gentoo.org/glsa/202209-20>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2022-31627) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
