CVE-2023-34251 — Grav is a flat-file content management system
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
Published
2023-06-14T21:31:31.908Z
Last modified
2024-12-27T16:52:56.757Z
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
01What is this vulnerability?
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.
02Affected products
| Vendor | Product | Versions |
|---|
| getgrav | grav | < 1.7.42 |
03Active exploitation status
Not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog. EPSS is the best forward-looking signal — see the EPSS row above.
04Recommended remediation
- Patch to a fixed version listed in the vendor advisory (see references below).
- Mitigate with WAF rules, network egress filters, or feature flags where the patch is not yet available.
- Hunt historical logs for exploitation indicators — see Detection signatures below.
05Technical details
For the full vendor write-up, exploit chains, and reference implementations, see the references list in section 09.
06Detection signatures
Ask SARA in chat to draft a starting detection for this CVE in your stack of choice.
07Related CVEs
No directly-cited follow-up CVEs in the KB record for this advisory. The references list in section 09 carries the vendor cross-references.
08Timeline
- Published: 2023-06-14T21:31:31.908Z
- Last modified: 2024-12-27T16:52:56.757Z
09References
- github.com — https://github.com/getgrav/grav/security/advisories/GHSA-f9jf-4cp4-4fq5
- github.com — https://github.com/getgrav/grav/commit/9d01140a63c77075ef09b26ef57cf186138151a5
- github.com — https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Twig/Extensi…
Want this in your SOAR or SIEM?
SARA's API returns EPSS, CVSS, KEV, and an analyst-grade summary in one call.
Read the API reference →