CVE-2022-2073 Code Injection in getgrav/grav
Attackers can execute arbitrary code in Grav CMS, requiring an upgrade to the latest version for mitigation.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-2073?
CVE-2022-2073 is a critical code injection vulnerability in Getgrav Grav, published on 29 Jun 2022. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
Code Injection in GitHub repository getgrav/grav prior to 1.7.34.
Weakness: CWE-94
Which versions are affected by CVE-2022-2073?
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.34 |
getgrav/grav Packagist | All versions | 1.7.34 |
Products include Getgrav Grav.
How do I fix CVE-2022-2073?
Upgrade getgrav/grav to 1.7.34 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2022-2073 being exploited?
There is no known exploitation of CVE-2022-2073 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-2026-42611 Grav: Stored XSS via Tag Injection
Sources
Also known as GHSA-cxgw-r5jg-7xwq.