CVE-2021-29440
Twig processing of static pages can be enabled in the front matter by any administrative user allowed to create or edit pages.
Does this matter?
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.
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.
- CVSS 3.1
- 7.2 HIGHCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 29.90% probability · 98th percentile
- Public exploits
- 1 in Exploit-DB · first 7 June 2021
- CISA KEV
- Not listed
- Weakness
- CWE-94
- Affected
- getgrav/grav
- Source
- security-advisories@github.com
EPSS 29.9% since 26 October 2026; no change recorded yet. The dashed line is the ten per cent mark our analysts treat as “patch before the next change window”. Points are recorded when the score first appears and whenever it moves by a percentage point or more.
Public exploits (1)
Entries in Exploit-DB that cite this CVE. Links go to the Exploit-DB page and to the file in the public repository; nothing is hosted here. A verified tick means the Exploit-DB team confirmed the exploit works against the stated version.
References
- http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.htmlExploit, Third Party Advisory, VDB Entry
- https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilitiesExploit, Third Party Advisory
- https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxcThird Party Advisory
- https://packagist.org/packages/getgrav/gravProduct, Third Party Advisory
- http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.htmlExploit, Third Party Advisory, VDB Entry
- https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilitiesExploit, Third Party Advisory
- https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxcThird Party Advisory
- https://packagist.org/packages/getgrav/gravProduct, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.