CVE-2026-58654
published medium CVSS 4.0 · 5.3Grav - Arbitrary File Upload via Avatar Endpoint
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Grav | — | Grav0 to < 1.0.1 (affected · semver) · 1.0.1 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 4.3 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Grav | Grav | 0 to < 1.0.1 (affected · semver)1.0.1 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-434 Unrestricted Upload of File with Dangerous Type
References
2- GitHub Security Advisory (GHSA-xc64-vh46-vph6) https://github.com/getgrav/grav/security/advisories/GHSA-xc64-vh46-vph6
- VulnCheck Advisory: Grav - Arbitrary File Upload via Avatar Endpoint https://www.vulncheck.com/advisories/grav-arbitrary-file-upload-via-avatar-endpoint
Provider assertions
2VulnCheck · cna
Grav - Arbitrary File Upload via Avatar Endpoint
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e244639c7681b1b9ef3494db603a65e59a93579cf16d21f5f8e10a0b01518040
- Ingested
- 23 Sep 2026, 09:22:29 UTC
- Source record
- Official CVE record