Medium severity · published Jul 8, 2026
CVE-2026-58654
Grav - Arbitrary File Upload via Avatar Endpoint
4.3
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 38% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GR
Grav · Grav
before 1.0.1 · source: vendor
Affected product
GR
Grav
Grav
More from Grav
9.8
CVE-2026-56700
Grav - Multiple Remote Code Execution Vulnerabilities via Unsafe Unserialize and Command Injection
6.5
CVE-2026-56701
Grav - XML External Entity Injection via SVG Upload
5.4
CVE-2020-37256
Grav - Cross-Site Scripting in Admin Plugin Page Editor
4.8
CVE-2026-58657
Grav - Stored CSS Injection via Markdown Image resize() Action