Skip to main content
VulnerabilityPublished

CVE-2025-66299: getgrav/grav · Grav is Vulnerable to Security Sandbox Bypass with SSTI (Server Side Template Injection)

Affects getgrav/gravSource GCVE Database

0
Compare
Authoritative record:CVE-2025-66299· High 8.8

Not known to be exploited · CVSS 8.8 High : upgrade to 1.8.0-beta.27 soon.

Data as of 21 Nov 2026, 03:46 UTC

CVSS 3.1 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 1.8.0-beta.27
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Dec 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.

What to do

Upgrade getgrav/grav to 1.8.0-beta.27.

Affected software

ProductAffectedFixed in
Packagistgetgrav/gravAffected
  • <1.8.0-beta.27
Fixed in
  • 1.8.0-beta.27

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in Grav CMS version 1.8.0-beta.27 that fixes this vulnerability. Users should upgrade to this version or later to remediate the issue. No additional mitigation steps are required if the patch is applied.

Description

Grav CMS versions prior to 1.8.0-beta.27 are vulnerable to a Server-Side Template Injection (SSTI) that allows authenticated users with editor permissions to execute arbitrary code on the server. The vulnerability arises from a bypass of the Twig sandbox protection, enabling an attacker to add dangerous PHP functions to the safe filters whitelist and execute them via Twig templates. This leads to remote code execution on the underlying server, potentially resulting in full server compromise. A patch is available in version 1.8.0-beta.27.

References

Community reviews

Loading reviews…