CVE-2024-27921
HIGH 8.8CVSS 3.1Grav File Upload Path Traversal
Grav is an open-source, flat-file content management system. A file upload path traversal vulnerability has been identified in the application prior to version 1.7.45, enabling attackers to replace or create files with extensions like .json, .zip, .css, .gif, etc. This critical security flaw poses severe risks, that can allow attackers to inject arbitrary code on the server, undermine integrity of backup files by overwriting existing files or creating new ones, and exfiltrate sensitive data using CSS exfiltration techniques. Upgrading to patched version 1.7.45 can mitigate the issue.
- Published
- 21 Mar 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-m7hx-hw6h-mqmc
- Sources
- NVDJSONOSV GHSA-m7hx-hw6h-mqmcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:* |
< 1.7.45 | 1.7.45 |
| OSV | Packagist | getgrav/grav | < 1.7.45 | 1.7.45 |
References
- https://github.com/getgrav/grav/commit/5928411b86bab05afca2b33db4e7386a44858e99 · Patch, WEB
- https://github.com/getgrav/grav/security/advisories/GHSA-m7hx-hw6h-mqmc · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-27921 · ADVISORY
- https://github.com/getgrav/grav · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 21 Mar 2024)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 22 Mar 2024)