Skip to main content
← All vulnerabilities
CVE-2021-29440GHSA-G8R4-P96J-XFXC

Twig allowing dangerous PHP functions by default

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.7.11
1 on Exploit-DB, 1 proof of concept on GitHub

Summary

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.

Timeline

  1. CVE published
  2. Public exploit on Exploit-DB

    EDB-49961

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • getgrav grav

    fixed in 1.7.11

  • getgrav/gravPackagist

    fixed in 1.7.11

References 6

GitHub · getgrav/grav

packagist.org

packetstormsecurity.com

blog.sonarsource.com

Exploit-DB

GitHub · CsEnox/CVE-2021-29440