CVE-2021-29440CWE-94

Twig allowing dangerous PHP functions by default

High · published April 13, 2021

CVSS v3.1
8.4
EPSS
30%
Percentile
98.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.4 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.29896 · 98.2th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2021-04-13T19:55Z
EPSS history
Timeline
  • 13 APR 19:55Z
    Twig allowing dangerous PHP functions by default
    cvelistv5