SB2024030447 - Arbitrary file upload in Form plugin for Grav CMS
Published: March 4, 2024 Updated: May 20, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 vulnerability.
1) Arbitrary file upload (CVE-ID: CVE-2024-27923)
CWE-ID: CWE-434 - Unrestricted Upload of File with Dangerous Type
CVSSv4: 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:U/U:Green
The vulnerability allows a remote user to execute arbitrary code.
The vulnerability exists due to improper access control and unrestricted upload of file with dangerous type in the frontmatter form handling feature when creating a page and submitting a crafted contact form. A remote user can add the data[_json][header][form] parameter to enable frontmatter, create a form that saves a .phar file, and submit PHP code to execute arbitrary code.
Exploitation requires an account capable of creating pages.
Remediation
Install update from vendor's website.