---
cve: "CVE-2022-31630"
severity: "MEDIUM"
cvss: 6.5
epss: "2.2%"
vendor: "PHP Group"
kev: false
exploited: false
published: "2022-11-14 07:15:09"
tags: [cve, security, medium]
source: tsecurity.de CVE-Dossier
exported: "2026-09-08T12:01:28+02:00"
---

# CVE-2022-31630

> 6.5 MEDIUM

## Beschreibung

In PHP versions prior to 7.4.33, 8.0.25 and 8.1.12, when using imageloadfont() function in gd extension, it is possible to supply a specially crafted font file, such as if the loaded font is used with imagechar() function, the read outside allocated buffer will be used. This can lead to crashes or disclosure of confidential information. 

## CVSS-Vektor

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

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

## Patch verfügbar (OSV)

- dca8d5565b947270a29f232bc54efd9df3b92b94 (Commit)
- 145b4e6e2f319a92cd5bc27f426bcbec2dd0add9 (Commit)

## Referenzen

- <https://bugs.php.net/bug.php?id=81739>

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