Patchfirst
CVE-2024-27921 High · 8.8 EPSS 60.8%

Grav File Upload Path Traversal vulnerability

Fix:upgrade grav to 1.7.45 Details ↓

getgrav · grav

Summary

A path traversal flaw in the file upload functionality of Grav, an open-source flat-file content management system, allows files to be written outside their intended directory. An attacker with low-privilege authenticated access over the network, and no user interaction required, can replace or create files with extensions such as .json, .zip, .css and .gif, which can be used to inject code, tamper with backups, or exfiltrate data.

Official description · CVE.org

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.

Breakdown
26.0 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Disclosed on 21 Mar 2024. No public exploit code or confirmed exploitation is recorded.

Affected versions and fixes

as published in the CVE record

getgrav grav

Affected: < 1.7.45

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: getgrav/grav.

Packagistgetgrav/gravGHSA-m7hx-hw6h-mqmc

Upgrade to 1.7.45

Still affected on this line by CVE-2026-42608 (fixed in 2.0.0-beta.2, a newer line).

Set the version to 1.7.45 or later in your composer.json.

The first fix for CVE-2024-27921.

Affected versions

If you runUpgrade to
All versions before 1.7.451.7.45

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

2 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close