CVE Explorer
CVE-2025-66294
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:b34267b19b0f67b6d34e959732ed4fd767cb197462d550ebfa4235b2b4c60f0c · sha256:c8fa2379f89982d5… · /containers/cna/problemTypes/0/descriptions/0
{"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:b34267b19b0f67b6d34e959732ed4fd767cb197462d550ebfa4235b2b4c60f0c · sha256:c8fa2379f89982d5… · /containers/cna/problemTypes/1/descriptions/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:b34267b19b0f67b6d34e959732ed4fd767cb197462d550ebfa4235b2b4c60f0c · sha256:c8fa2379f89982d5… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":8.7,"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","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:b34267b19b0f67b6d34e959732ed4fd767cb197462d550ebfa4235b2b4c60f0c · sha256:c8fa2379f89982d5… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
2 source assertions{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:b34267b19b0f67b6d34e959732ed4fd767cb197462d550ebfa4235b2b4c60f0c · sha256:c8fa2379f89982d5… · /containers/cna/problemTypes/0/descriptions/0
{"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:b34267b19b0f67b6d34e959732ed4fd767cb197462d550ebfa4235b2b4c60f0c · sha256:c8fa2379f89982d5… · /containers/cna/problemTypes/1/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:b34267b19b0f67b6d34e959732ed4fd767cb197462d550ebfa4235b2b4c60f0c · sha256:c8fa2379f89982d5… · /containers/cna/references/1
{"name":"https://github.com/getgrav/grav/security/advisories/GHSA-662m-56v4-3r8f","tags":["x_refsource_CONFIRM"],"url":"https://github.com/getgrav/grav/security/advisories/GHSA-662m-56v4-3r8f"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:b34267b19b0f67b6d34e959732ed4fd767cb197462d550ebfa4235b2b4c60f0c · sha256:c8fa2379f89982d5… · /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.