{"id":"CVE-2021-29440","url":"https://www.cyber-defence.io/tools/cve/CVE-2021-29440","generatedAt":"2026-10-27T23:29:54.782Z","title":"Twig processing of static pages can be enabled in the front matter by any administrative user allowed to create or edit pages.","description":"Grav is a file based Web-platform. Twig processing of static pages can be enabled in the front matter by any administrative user allowed to create or edit pages. As the Twig processor runs unsandboxed, this behavior can be used to gain arbitrary code execution and elevate privileges on the instance. The issue was addressed in version 1.7.11.","published":"2021-04-13T20:15:22.000Z","lastModified":"2026-06-17T03:47:39.000Z","status":"Modified","sourceIdentifier":"security-advisories@github.com","cvss":{"version":"3.1","score":7.2,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-94"],"affected":["getgrav/grav"],"epss":{"score":0.29896,"percentile":0.98191,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":1,"verified":false,"firstPublished":"2021-06-07","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":49961,"kind":"exploit","title":"Grav CMS 1.7.10 - Server-Side Template Injection (SSTI) (Authenticated)","url":"https://www.exploit-db.com/exploits/49961","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/php/webapps/49961.py","file":"exploits/php/webapps/49961.py","published":"2021-06-07","added":"2021-06-07","updated":"2021-06-07","author":"enox","type":"webapps","platform":"php","port":null,"verified":false,"codes":["CVE-2021-29440"],"tags":null,"aliases":null,"applicationUrl":"http://www.exploit-db.comgrav-admin-v1.7.10.zip","screenshotUrl":null,"referenceUrl":null}]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 29.9%, higher than 98% of all known CVEs. Patch or mitigate before the next change window."},"changes":[],"references":[{"url":"http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"security-advisories@github.com"},{"url":"https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities","tags":["Exploit","Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc","tags":["Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://packagist.org/packages/getgrav/grav","tags":["Product","Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities","tags":["Exploit","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://packagist.org/packages/getgrav/grav","tags":["Product","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-29440","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}