Security mailing lists by PureSourceCode

CVE-2025-66294

HIGH 8.7CVSS 4.0

Grav is vulnerable to RCE via SSTI through Twig Sandbox Bypass

Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a Server-Side Template Injection (SSTI) vulnerability exists in Grav that allows authenticated attackers with editor permissions to execute arbitrary commands on the server and, under certain conditions, may also be exploited by unauthenticated attackers. This vulnerability stems from weak regex validation in the cleanDangerousTwig method. This vulnerability is fixed in 1.8.0-beta.27.

Published
1 Dec 2025
Last modified
26 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-1336CWE-94
Also known as
GHSA-662m-56v4-3r8f
Sources
NVDJSONOSV GHSA-662m-56v4-3r8fJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 HIGH 8.7 CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD getgrav grav
cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
>= 1.7.48, < 1.8.0 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta1:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta10:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta11:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta12:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta13:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta14:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta15:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta16:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta17:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta18:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta19:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta2:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta20:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta21:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta22:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta23:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta24:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta25:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta26:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta3:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta4:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta5:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta6:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta7:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta8:*:*:*:*:*:*
= 1.8.0
NVD getgrav grav
cpe:2.3:a:getgrav:grav:1.8.0:beta9:*:*:*:*:*:*
= 1.8.0
OSV Packagist getgrav/grav < 1.8.0-beta.27 1.8.0-beta.27

References

History

  • 25 Nov 2026 20:59 UTC · NVD: first stored (published 1 Dec 2025)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 2 Dec 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.