CVE-2023-34251
CVE-2023-34251 is a critical-severity vulnerability in Getgrav Grav with a CVSS 3.x base score of 9.9. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-94.
Key facts
- Severity: Critical (CVSS 3.x base score 9.9)
- EPSS exploit prediction: 2% (83rd percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-94
- Affected product: Getgrav Grav
- Published:
- Last modified:
Description
Grav is a flat-file content management system. Versions prior to 1.7.42 are vulnerable to server side template injection. Remote code execution is possible by embedding malicious PHP code on the administrator screen by a user with page editing privileges. Version 1.7.42 contains a fix for this issue.
Frequently asked questions
- What is CVE-2023-34251?
- Grav is a flat-file content management system. Versions prior to 1.7.42 are vulnerable to server side template injection. Remote code execution is possible by embedding malicious PHP code on the administrator screen by a user with page editing privileges. Version 1.7.42 contains a fix for this issue.
- How severe is CVE-2023-34251?
- CVE-2023-34251 has a CVSS 3.x base score of 9.9, rated critical severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2023-34251 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (83rd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2023-34251?
- CVE-2023-34251 affects Getgrav Grav. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2023-34251?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- When was CVE-2023-34251 published?
- CVE-2023-34251 was published on 2023-06-14 and last updated on 2026-06-17.
References
- https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Twig/Extension/GravExtension.php#L174
- https://github.com/getgrav/grav/commit/9d01140a63c77075ef09b26ef57cf186138151a5
- https://github.com/getgrav/grav/security/advisories/GHSA-f9jf-4cp4-4fq5
Affected products (1)
- cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
More vulnerabilities in Getgrav Grav
- CVE-2021-47812 — Critical (CVSS 9.8): GravCMS 1.10.7 contains an unauthenticated vulnerability that allows remote attackers to write arbitrary YAML…
- CVE-2025-46199 — Critical (CVSS 9.8): Cross Site Scripting vulnerability in grav v.1.7.48 and before allows an attacker to execute arbitrary code via a…
- CVE-2025-66301 — Critical (CVSS 9.6): Grav is a file-based Web platform. Prior to 1.8.0-beta.27, due to improper authorization checks when modifying critical…
- CVE-2026-42608 — Critical (CVSS 9.1): Grav is a file-based Web platform. Prior to 2.0.0-beta.2, there is a Path Traversal vulnerability within the FormFlash…
- CVE-2025-66844 — Critical (CVSS 9.1): In grav <1.7.49.5, a SSRF (Server-Side Request Forgery) vector may be triggered via Twig templates when page content is…
- CVE-2026-42611 — High (CVSS 8.9): Grav is a file-based Web platform. Prior to 2.0.0-beta.2, a low-privileged (with the ability to create a page) user can…
All CVEs affecting Getgrav Grav →
Other CWE-94 (Code Injection) vulnerabilities
- CVE-2026-94169 — Critical (CVSS 10.0): Improper Control of Generation of Code ('Code Injection') vulnerability in Theme-one The Grid the-grid allows Command…
- CVE-2026-106624 — Critical (CVSS 10.0): ColdFusion is affected by an Improper Control of Generation of Code ('Code Injection') vulnerability that could result…
- CVE-2026-55675 — Critical (CVSS 10.0): The Salty documentation repository builds and deploys the docs.saltbox.dev website. Prior to commit…
- CVE-2026-42696 — Critical (CVSS 10.0): Improper Control of Generation of Code ('Code Injection') vulnerability in Royal Plugins SiteVault – Backup, Restore,…
- CVE-2026-105857 — Critical (CVSS 10.0): Payload is a free and open source headless content management system. In @payloadcms/plugin-form-builder versions…
- CVE-2026-55107 — Critical (CVSS 10.0): Kobako is a Ruby gem that embeds a Wasm-isolated mruby interpreter inside applications, allowing execution of untrusted…