{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-34251","id":"CVE-2023-34251","title":"Grav Server Side Template Injection vulnerability","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.","descriptionLong":"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.","published":"2023-06-14T21:31:31.908Z","updated":"2026-10-28T02:31:05.144601328Z","reserved":"2023-05-31T13:51:51.174Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["getgrav grav"],"affectedProducts":[{"vendor":"getgrav","product":"grav","defaultStatus":null,"versions":[{"version":"< 1.7.42","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"getgrav/grav","purl":"pkg:composer/getgrav/grav","ranges":["<1.7.42"],"fixed":["1.7.42"],"advisory":"GHSA-f9jf-4cp4-4fq5"}],"cwes":["CWE-94"],"aliases":["GHSA-f9jf-4cp4-4fq5"],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-f9jf-4cp4-4fq5","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/getgrav/grav/commit/9d01140a63c77075ef09b26ef57cf186138151a5","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Twig/Extension/GravExtension.php#L174","tags":["x_refsource_MISC","x_transferred","Vendor Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/34xxx/CVE-2023-34251.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34251","tags":["advisory"]},{"url":"https://github.com/getgrav/grav/commit/244758d4383034fe4cd292d41e477177870b65ec","tags":["web"]},{"url":"https://github.com/getgrav/grav/commit/71bbed12f950de8335006d7f91112263d8504f1b","tags":["web"]},{"url":"https://github.com/getgrav/grav/commit/8c2c1cb72611a399f13423fc6d0e1d998c03e5c8","tags":["web"]},{"url":"https://github.com/getgrav/grav","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.02338,"epssPercentile":0.83959,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-34251","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34251","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-34251","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-f9jf-4cp4-4fq5","ok":true,"note":"GHSA-f9jf-4cp4-4fq5"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-34251","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}