CVE-2021-3818 Reliance on Cookies without Validation and Integrity Checking in getgrav/grav
Attackers can bypass security controls in Grav CMS by exploiting cookies that lack validation and integrity checks.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-3818?
CVE-2021-3818 is a medium-severity vulnerability in Getgrav Grav, published on 27 Sep 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
grav is vulnerable to Reliance on Cookies without Validation and Integrity Checking
Weakness: CWE-565
Which versions are affected by CVE-2021-3818?
2 open source packages ship an affected version, including getgrav/grav. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
getgrav/grav Packagist | All versions | 1.7.21 |
getgrav/grav Packagist | All versions | 1.7.21 |
Products include Getgrav Grav.
How do I fix CVE-2021-3818?
Upgrade getgrav/grav to 1.7.21 or later.
Is CVE-2021-3818 being exploited?
There is no known exploitation of CVE-2021-3818 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-cg3q-59w7-rvc2.