Skip to content
WatchlistHigh

CVE-2021-29440Grav Code Injection

Grav's Twig processing allowing dangerous PHP functions by default

Published Apr 16, 2021 · Updated May 4, 2026 · Also known as GHSA-g8r4-p96j-xfxc

Key Facts

Patch immediately
  • CVE-2021-29440 is a high-severity vulnerability (CVSS 7.2 v3.1) affecting Grav (Getgrav), getgrav/grav (composer).
  • It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
  • EPSS estimates a 30% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Grav 1.7.11, getgrav/grav 1.7.11.
  • Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.

Scores

CVSS v3.1

7.2

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

EPSS (30-day exploit likelihood)

30%

Higher than 98.1% of all scored CVEs

Exploit maturity

Proof of concept

ATLAS score

45/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Proof of concept

Public exploit code

2

Proof-of-concept links

In-the-wild evidence

1

Reports of active use

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.

Affected Products

3 affected entries in total
ProductAffected versionsFixed in
GravGetgrav>= < 1.7.111.7.11
getgrav/gravcomposerSee advisory1.7.11

Patched Releases

Grav

1.7.11

getgrav/grav

1.7.11

Timeline

  1. Publicly disclosed

    Apr 16, 2021

  2. Last updated

    May 4, 2026

Weakness Type

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

FAQ

Common Questions.

Is CVE-2021-29440 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Oct 19, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.