CVE Explorer
CVE-2025-66297
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"grav","vendor":"getgrav","versions":[{"status":"affected","version":"< 1.8.0-beta.27"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:13be69c09fb2f55dabc1bf1468bb24dfa1c554072994bdf793b2ede51259ffcd · sha256:db84895b42c20deb… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":7.4,"baseSeverity":"HIGH","privilegesRequired":"LOW","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:13be69c09fb2f55dabc1bf1468bb24dfa1c554072994bdf793b2ede51259ffcd · sha256:db84895b42c20deb… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-1336","description":"CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:13be69c09fb2f55dabc1bf1468bb24dfa1c554072994bdf793b2ede51259ffcd · sha256:db84895b42c20deb… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458","tags":["x_refsource_MISC"],"url":"https://github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:13be69c09fb2f55dabc1bf1468bb24dfa1c554072994bdf793b2ede51259ffcd · sha256:db84895b42c20deb… · /containers/cna/references/1
{"name":"https://github.com/getgrav/grav/security/advisories/GHSA-858q-77wx-hhx6","tags":["x_refsource_CONFIRM"],"url":"https://github.com/getgrav/grav/security/advisories/GHSA-858q-77wx-hhx6"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:13be69c09fb2f55dabc1bf1468bb24dfa1c554072994bdf793b2ede51259ffcd · sha256:db84895b42c20deb… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.