CVE-2026-61457
published medium CVSS 4.0 · 5.3Grav before 1.0.3 Remote Code Execution via File Upload Extension Bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| getgrav | — | grav0 to < 1.0.3 (affected · semver) · 1.0.3 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
The Grav API plugin (getgrav/grav-plugin-api) before 1.0.3 contains a file upload extension bypass in the API media controller. HandlesMediaUploads::validateFileExtension() inspects only the final file extension via pathinfo($filename, PATHINFO_EXTENSION), so a user with api.media.write permission can upload a file with a double extension such as shell.php.jpg to bypass the dangerous extensions blocklist. The web server may then execute the file as PHP, resulting in remote code execution.
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:L/VI:L/VA:N/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| getgrav | grav | 0 to < 1.0.3 (affected · semver)1.0.3 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-434 Unrestricted Upload of File with Dangerous Type
References
2- GitHub Security Advisory (GHSA-66v2-vxxf-xc3v) https://github.com/getgrav/grav/security/advisories/GHSA-66v2-vxxf-xc3v
- VulnCheck Advisory: Grav before 1.0.3 Remote Code Execution via File Upload Extension Bypass https://www.vulncheck.com/advisories/grav-before-remote-code-execution-via-file-upload-extension-bypass
Provider assertions
2VulnCheck · cna
Grav before 1.0.3 Remote Code Execution via File Upload Extension Bypass
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2bb38a1869526f29720f080cca685e6f4cb553c8c6171d9245c893be3824bf76
- Ingested
- 23 Sep 2026, 09:24:40 UTC
- Source record
- Official CVE record