---
cve: "CVE-2022-31631"
severity: "CRITICAL"
cvss: 9.1
epss: "2.2%"
vendor: "PHP Group"
kev: false
exploited: false
published: "2025-02-12 22:10:45"
tags: [cve, security, critical]
source: tsecurity.de CVE-Dossier
exported: "2026-09-06T17:02:37+02:00"
---

# CVE-2022-31631

> 9.1 CRITICAL

## Beschreibung

In PHP versions 8.0.* before 8.0.27, 8.1.* before 8.1.15, 8.2.* before 8.2.2 when using PDO::quote() function to quote user-supplied data for SQLite, supplying an overly long string may cause the driver to incorrectly quote the data, which may further lead to SQL injection vulnerabilities.

## CVSS-Vektor

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

| 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 | Hoch | bad |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Keine | good |

## Patch verfügbar (OSV)

- f325ad215d0c9d1cc5cc533ca0819b0d57fe42a3 (Commit)
- 010300fb6bcd7c8e755cb63f9af159927b7831e8 (Commit)

## Referenzen

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

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