CVE Explore

RCE in Getgrav Grav

CVE-2021-29440

CVSS v3
8.4 High
Public exploits
1 repository
EPSS
0.299 · 98.2th percentile
Published
2021-04-13

What to do

Fixed in
1.7.11
Affected
1 affected product

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.

Vulnerability class: RCE (Remote Code Execution)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 8.4 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H.

Attack Vector
Network AV:N
Attack Complexity
Low AC:L
Privileges Required
High PR:H
User Interaction
Required UI:R
Scope
Changed S:C
Confidentiality
High C:H
Integrity
High I:H
Availability
High A:H

EPSS exploit prediction

EPSS 0.299, 98.2th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

Weakness classification (CWE)

Public exploits and proof-of-concept code

1 public repository with exploit or proof-of-concept code for this CVE:

  • CsEnox/CVE-2021-29440 (4 stars, last pushed 2021-06-06): Unsafe Twig processing of static pages leading to RCE in Grav CMS 1.7.10

Also mentioned in 11 other repositories (ARPSyndicate/cvemon, ARPSyndicate/cve-scores, cyllective/CVEs, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.

References