---
cve: "CVE-2026-58654"
severity: "MEDIUM"
cvss: 5.3
epss: "0.4%"
vendor: "Grav"
kev: false
exploited: false
published: "2026-07-08 13:49:08"
tags: [cve, security, medium]
source: tsecurity.de CVE-Dossier
exported: "2026-09-21T14:48:47+02:00"
---

# CVE-2026-58654

> 5.3 MEDIUM · 🧪 PoC

## Beschreibung

The Grav API plugin (getgrav/grav-plugin-api) 1.0.0 contains an unrestricted file upload vulnerability in the avatar upload endpoint (/api/v1/users/user/avatar). The endpoint validates only the client-declared MIME type (getClientMediaType) beginning with 'image/' and does not inspect the actual file content or restrict the resulting extension, allowing an authenticated user to store arbitrary content — including PHP code, SVG with embedded JavaScript, and polyglot payloads — under user/accounts/avatars/ with predictable filenames. Direct HTTP access to the stored files is blocked by .htaccess (returns 403), but the files persist on disk and could lead to remote code execution or stored XSS in the presence of a path traversal flaw or server misconfiguration. Fixed in 1.0.1.

## CVSS-Vektor

```
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Gering | warn |
| UI Interaktion | Keine | bad |

## Patch verfügbar (OSV)

- 2bb23efa7c54abcf6466a4f1326ee71d2bf2675d (Commit)

## Referenzen

- <https://github.com/getgrav/grav/security/advisories/GHSA-xc64-vh46-vph6>
- <https://www.vulncheck.com/advisories/grav-arbitrary-file-upload-via-avatar-endpoint>

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