CVE-2021-29440

published 13 Apr 2021 · updated 3 Aug 2024

Twig allowing dangerous PHP functions by default

9.9CriticalCVSS 8.4EPSS 30%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 30%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
getgrav<1.7.11

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-29440 severity on Zeptric[![CVE-2021-29440](https://zeptric.io/badge/cve/CVE-2021-29440.svg)](https://zeptric.io/cve/CVE-2021-29440)