Security mailing lists by PureSourceCode

CVE-2025-66297

HIGH 7.4CVSS 4.0

Grav vulnerable to Privilege Escalation and Authenticated Remote Code Execution via Twig Injection

Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a user with admin panel access and permissions to create or edit pages in Grav CMS can enable Twig processing in the page frontmatter. By injecting malicious Twig expressions, the user can escalate their privileges to admin or execute arbitrary system commands via the scheduler API. This results in both Privilege Escalation (PE) and Remote Code Execution (RCE) vulnerabilities. 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-1336
Also known as
GHSA-858q-77wx-hhx6
Sources
NVDJSONOSV GHSA-858q-77wx-hhx6JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 HIGH 7.4 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:P/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/E:P
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.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.