{"id":"CVE-2023-34251","state":"PUBLISHED","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.","publishedAt":"2023-06-14T21:31:31.908Z","updatedAt":"2024-12-27T16:52:56.757Z","severity":{"score":10,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["getgrav grav"],"affected":[{"vendor":"getgrav","product":"grav","versions":[{"version":"< 1.7.42","status":"affected"}]}],"references":["https://github.com/getgrav/grav/security/advisories/GHSA-f9jf-4cp4-4fq5","https://github.com/getgrav/grav/commit/9d01140a63c77075ef09b26ef57cf186138151a5","https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Twig/Extension/GravExtension.php#L174"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:06:00.499Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/34xxx/CVE-2023-34251.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-34251","state":"PUBLISHED","datePublished":"2023-06-14T21:31:31.908Z","dateUpdated":"2024-12-27T16:52:56.757Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-05-31T13:51:51.174Z"},"containers":{"cna":{"title":"Grav Server Side Template Injection vulnerability","descriptions":[{"lang":"en","value":"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":[{"vendor":"getgrav","product":"grav","versions":[{"version":"< 1.7.42","status":"affected"}]}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-f9jf-4cp4-4fq5","name":"https://github.com/getgrav/grav/security/advisories/GHSA-f9jf-4cp4-4fq5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/getgrav/grav/commit/9d01140a63c77075ef09b26ef57cf186138151a5","name":"https://github.com/getgrav/grav/commit/9d01140a63c77075ef09b26ef57cf186138151a5","tags":["x_refsource_MISC"]},{"url":"https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Twig/Extension/GravExtension.php#L174","name":"https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Twig/Extension/GravExtension.php#L174","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":10,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-06-14T22:17:20.071Z"},"source":{"advisory":"GHSA-f9jf-4cp4-4fq5","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-f9jf-4cp4-4fq5","name":"https://github.com/getgrav/grav/security/advisories/GHSA-f9jf-4cp4-4fq5","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/getgrav/grav/commit/9d01140a63c77075ef09b26ef57cf186138151a5","name":"https://github.com/getgrav/grav/commit/9d01140a63c77075ef09b26ef57cf186138151a5","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Twig/Extension/GravExtension.php#L174","name":"https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Twig/Extension/GravExtension.php#L174","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T16:01:54.348Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-12-27T16:52:48.122441Z","id":"CVE-2023-34251","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-12-27T16:52:56.757Z"}}]}}}