CVE-2026-58654

MEDIUM

Grav - Arbitrary File Upload via Avatar Endpoint

Title source: cna
STIX 2.1

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.

References (2)

Core 2
Core References
Vendor Advisory vendor-advisory
GitHub Security Advisory (GHSA-xc64-vh46-vph6)
https://github.com/getgrav/grav/security/advisories/GHSA-xc64-vh46-vph6
Third Party Advisory third-party-advisory
VulnCheck Advisory: Grav - Arbitrary File Upload via Avatar Endpoint
https://www.vulncheck.com/advisories/grav-arbitrary-file-upload-via-avatar-endpoint

Scores

CVSS v3 4.3
EPSS 0.0026
EPSS Percentile 17.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-434
Status published
Products (2)
Grav/Grav < 1.0.1
Grav/Grav 1.0.1
Published Jul 08, 2026
Tracked Since Jul 08, 2026