What’s Vulnerable › Vulnerabilities
CVE-2024-27923: Remote Code Execution by uploading a phar file using frontmatter
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-03-21 · updated 2026-06-17
- Weakness: CWE-287
Description
Grav is a content management system (CMS). Prior to version 1.7.43, users who may write a page may use the `frontmatter` feature due to insufficient permission validation and inadequate file name validation. This may lead to remote code execution. Version 1.7.43 fixes this issue.
Affected products
- getgrav grav: before 1.7.43 — fixed in 1.7.43
How to fix
Upgrade to a fixed version: getgrav grav 1.7.43. Check the vendor advisory for mitigations.
References
- https://github.com/getgrav/grav/commit/e3b0aa0c502aad251c1b79d1ee973dcd93711f07
- https://github.com/getgrav/grav/security/advisories/GHSA-f6g2-h7qv-3m5v
- https://github.com/getgrav/grav/commit/e3b0aa0c502aad251c1b79d1ee973dcd93711f07
- https://github.com/getgrav/grav/security/advisories/GHSA-f6g2-h7qv-3m5v
Get alerted when CVE-2024-27923 or the next vulnerability affects your stack