Vulnerabilities · 2023 · Getgrav
CVE-2023-34251
Getgrav Grav 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.
Affected products
Grav. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Getgrav Grav runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Twig/Extension/GravExtension.p · Vendor Advisory
- github.com/getgrav/grav/security/advisories/GHSA-f9jf-4cp4-4fq5 · Exploit
- github.com/getgrav/grav/commit/9d01140a63c77075ef09b26ef57cf186138151a5 · Patch
- nvd.nist.gov/vuln/detail/CVE-2023-34251
- cve.org/CVERecord?id=CVE-2023-34251
More vulnerabilities in Getgrav products
CVE-2025-66844CVE-2025-66843CVE-2025-66312CVE-2025-66311CVE-2025-66310CVE-2025-66309CVE-2025-66308CVE-2025-66307All 62
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.