CVE-2021-29440 HIGH

CVE-2021-29440: Twig allowing dangerous PHP functions by default

Vendor Getgrav
Product grav
Weakness CWE-94 · Code injection
Published April 13, 2021
Last update August 3, 2024

CVSS base score

8.4/10
Attack vector Network
Attack complexity Low
Privileges required High
User interaction Required
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 13, 2021 CVE published
August 3, 2024 Record updated