Vulnerability · Published Jun 14, 2023 · Assigned by GitHub_M
CVE-2023-34251Grav Server Side Template Injection vulnerability
Critical 10.0
In plain English
A critical-severity code injection in grav from getgrav. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.3% (higher than 84% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)10.0Critical
Exploit odds (30 days)2.3%top 16.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
Grav is a flat-file content management system. Versions prior to 1.7.42 are vulnerable to server side template injection. Remote code execution is possible by embedding malicious PHP code on the administrator screen by a user with page editing privileges. Version 1.7.42 contains a fix for this issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | getgrav/grav | 1.7.42 | GHSA-f9jf-4cp4-4fq5 |
Affected products (as reported)
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/getgrav/grav/security/advisories/GHSA-f9jf-4cp4-4fq5 x_refsource_CONFIRM
- https://github.com/getgrav/grav/commit/9d01140a63c77075ef09b26ef57cf186138151a5 x_refsource_MISC
- https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Twig/Extension/GravExtension.php#L174 x_refsource_MISC