CVE-2026-75827 Grav before 2.0.15 Arbitrary File Write via error_log
Attackers with page-edit access can inject PHP code via error_log to achieve remote code execution in Grav CMS.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-75827?
CVE-2026-75827 is a critical code injection vulnerability in getgrav grav, published on 18 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Grav before 2.0.15 contains an arbitrary file write vulnerability in the Blueprint dynamic-data bare-function validation that uses an incomplete denylist instead of a positive allowlist. Attackers with page-edit or blueprint-config access can invoke the error_log function through a data directive to append PHP payloads to web-accessible files, achieving remote code execution.
Weakness: CWE-94
Which versions are affected by CVE-2026-75827?
2 open source packages ship an affected version, including getgrav/grav.
| Package | Affected | Fixed in |
|---|---|---|
getgrav/grav Packagist | All versions | 2.0.15 |
getgrav/grav Packagist | All versions | 2.0.15 |
How do I fix CVE-2026-75827?
Upgrade getgrav/grav to 2.0.15 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-75827 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-75827 exists.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-f8wv-xp27-6gq7.