CVE-2021-3924 Path Traversal in getgrav/grav
Attackers can exploit a path traversal vulnerability in Grav CMS to read arbitrary files from the server.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-3924?
CVE-2021-3924 is a high-severity path traversal vulnerability in Getgrav Grav, published on 5 Nov 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
grav is vulnerable to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Weakness: CWE-22
Which versions are affected by CVE-2021-3924?
2 open source packages ship an affected version, including getgrav/grav. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
getgrav/grav Packagist | All versions to 1.7.24 | None |
getgrav/grav Packagist | All versions to 1.7.24 | None |
Products include Getgrav Grav.
How do I fix CVE-2021-3924?
No fix has been published for CVE-2021-3924 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-3924 being exploited?
There is no known exploitation of CVE-2021-3924 in the wild and no public exploit code.
Other vulnerabilities in Getgrav Grav
- CVE-2023-34251 Grav Server Side Template Injection vulnerability
- CVE-2025-46199 Cross-site scripting in n/a
- CVE-2021-47812 GravCMS 1.10.7 - Arbitrary YAML Write/Update (Unauthenticated) (2)
- CVE-2025-66844 Grav may be vulnerable to SSRF attack via Twig Templates
- CVE-2022-2073 Code Injection in getgrav/grav
Sources
Also known as GHSA-8c5p-4362-9333.