# CVE-2026-58654: Grav - Arbitrary File Upload via Avatar Endpoint

- Severity: Medium 5.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-08T13:49:08.711Z
- Modified: 2026-07-08T18:16:33.873Z
- Weaknesses: CWE-434
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- Grav Grav: before 1.0.1 (not affected: 1.0.1)

## Every score

- VulnCheck: CVSS:4.0 5.3 Medium `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`
- VulnCheck: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-xc64-vh46-vph6> (exploit, vendor-advisory)
- <https://www.vulncheck.com/advisories/grav-arbitrary-file-upload-via-avatar-endpoint> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-58654](https://www.cve.org/CVERecord?id=CVE-2026-58654), CVE Terms of Use, modified 2026-07-08
- NVD: [CVE-2026-58654](https://nvd.nist.gov/vuln/detail/CVE-2026-58654), Public domain, modified 2026-07-08

---

Page: https://cve.day/CVE-2026-58654 · Whole record: https://cve.day/CVE-2026-58654.json · Rebuilt by cve.day 2026-11-25T22:59:27.372Z
