Back to overview

CVE-2026-58654

MEDIUM
4.3
CVSS 3.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.

Metadata

CVE ID
CVE-2026-58654
State
PUBLISHED
Assigner
VulnCheck
Reserved
2026-07-01 21:54 UTC
Published
2026-07-08 13:49 UTC
Last updated
2026-07-08 13:49 UTC
Primary CWE
CWE-434
Unrestricted Upload of File with Dangerous Type
Vendor / Product
Grav / Grav
Sources
cve.org  ·  NVD

Severity & Metrics

4.3 MEDIUM CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Affected products (1)
VendorProductPlatformVersions
Grav Grav 0 < 1.0.1, 1.0.1
Weakness (CWE)
CWESourceDescription
CWE-434 cna Unrestricted Upload of File with Dangerous Type
CVSS scores (2)
ScoreSeverityVersionSourceVector
5.3 MEDIUM 4.0 cna 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
4.3 MEDIUM 3.1 cna CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
References (2)
Back to overview