# CVE-2024-27921: Grav File Upload Path Traversal vulnerability

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 60.8%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-21T21:38:29.938Z
- Modified: 2026-09-10T03:50:10.651Z
- Also known as: GHSA-m7hx-hw6h-mqmc
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- getgrav grav: < 1.7.45; before 1.7.45
- getgrav/grav (Packagist): before 1.7.45

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-m7hx-hw6h-mqmc> (exploit, vendor-advisory, web)
- <https://github.com/getgrav/grav/commit/5928411b86bab05afca2b33db4e7386a44858e99> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-27921> (advisory)
- <https://github.com/getgrav/grav> (package)

## Sources

- CVE List: [CVE-2024-27921](https://www.cve.org/CVERecord?id=CVE-2024-27921), CVE Terms of Use, modified 2025-04-10
- GitHub Advisory Database: [GHSA-m7hx-hw6h-mqmc](https://github.com/advisories/GHSA-m7hx-hw6h-mqmc), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-27921](https://nvd.nist.gov/vuln/detail/CVE-2024-27921), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27921 · Whole record: https://cve.day/CVE-2024-27921.json · Rebuilt by cve.day 2026-11-25T22:58:37.825Z
