๐Ÿ” CVE Alert

CVE-2026-58654

MEDIUM 4.3

Grav - Arbitrary File Upload via Avatar Endpoint

CVSS Score
4.3
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-434
Vendor grav
Product grav
Published Jul 8, 2026
Last Updated Jul 8, 2026
Stay Ahead of the Next One

Get instant alerts for grav grav

Be the first to know when new medium vulnerabilities affecting grav grav are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

Affected Versions

Grav / Grav
0 < 1.0.1

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/getgrav/grav/security/advisories/GHSA-xc64-vh46-vph6 vulncheck.com: https://www.vulncheck.com/advisories/grav-arbitrary-file-upload-via-avatar-endpoint

Credits

๐Ÿ” nicl4ssic