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.
Severity (CVSS)
| Base score | 9.3 |
|---|---|
| Severity | Critical |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-94 — Improper Control of Generation of Code ('Code Injection')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| getgrav | grav | 0 to <2.0.15; 2.0.15 |
References
- https://github.com/getgrav/grav/security/advisories/GHSA-f8wv-xp27-6gq7 (vendor-advisory)
- https://www.vulncheck.com/advisories/grav-before-arbitrary-file-write-via-error-log (third-party-advisory)
Generated from the official CVE List on 19 Aug 2026 07:05 UTC.