{"id":"CVE-2024-27923","published":"2024-03-06T20:28:46Z","modified":"2024-08-02T18:35:36Z","title":"Remote Code Execution by uploading a phar file using frontmatter","vendor":"getgrav","product":"grav","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01402,"percentile":0.72692,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"},{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-f6g2-h7qv-3m5v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/getgrav/grav/commit/e3b0aa0c502aad251c1b79d1ee973dcd93711f07","tags":["x_refsource_MISC"]}],"priority":{"score":20.7,"factors":[{"name":"EPSS percentile","points":14.54},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"grav","versions":["< 1.7.43"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-08-02T18:34:03.665942Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"getgrav/grav","vulnerableRanges":["<1.7.43"],"patched":["1.7.43"],"from":["GHSA-f6g2-h7qv-3m5v"],"provenance":"source"}],"summary":{"text":"The flaw is in Grav, a content management system, where insufficient permission validation and inadequate file name validation in its frontmatter feature let users with page-writing rights upload a PHP-executable phar file. An attacker with network access and low-privilege authenticated page-writing permissions, and no user interaction, can achieve remote code execution on the server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:12:48Z"},"euvd":{"id":"EUVD-2024-0910","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-34253","published":"2023-06-14","fixed":"1.7.42","kev":false},{"cve":"CVE-2023-34448","published":"2023-06-14","fixed":"1.7.42","kev":false},{"cve":"CVE-2023-37897","published":"2023-07-18","fixed":"1.7.42.2","kev":false,"link":{"from":"CVE-2023-37897","to":"CVE-2024-27923","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:getgrav/grav","fromFixed":"1.7.42.2","toFixed":"1.7.43","daysApart":232}]}},{"cve":"CVE-2024-27923","published":"2024-03-06","fixed":"1.7.43","kev":false},{"cve":"CVE-2023-31506","published":"2024-02-09","fixed":"1.7.44","kev":false},{"cve":"CVE-2024-27921","published":"2024-03-21","fixed":"1.7.45","kev":false},{"cve":"CVE-2024-28116","published":"2024-03-21","fixed":"1.7.45","kev":false}],"package":"Packagist:getgrav/grav"}}