{"affected":[{"defaultStatus":"unaffected","ecosystem":"composer","packageName":"getgrav/grav-plugin-form","product":"grav-plugin-form","source":"CNA: VulnCheck","vendor":"getgrav","versions":[{"lessThan":"9.2.4","status":"affected","version":"0","versionType":"semver"}]}],"cveId":"CVE-2026-137305","cwes":["CWE-94"],"description":"Grav Form plugin before 9.2.4 contains a code injection vulnerability that allows page authors to write uploads into Twig template folders by setting an unchecked file field destination in Form::uploadFiles(). Attackers can upload .txt or .svg files containing Twig and have them rendered as trusted templates outside the sandbox, executing code as the web server user.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":8.7,"severity":"high","source":"CNA: VulnCheck","vector":"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"},{"score":8.8,"severity":"high","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1795657037193,"publishedAt":1795657037193,"references":[{"source":"CNA: VulnCheck","tags":["vendor-advisory","third-party-advisory"],"url":"https://github.com/getgrav/grav/security/advisories/GHSA-4grx-p93p-25w8"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/getgrav/grav-plugin-form/commit/3daa9cb66c43b6d472473dcbf0c312c8e66b1769"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/grav-form-plugin-before-9.2.4-code-injection-via-file-field-upload-destination"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/getgrav/grav-plugin-form/commit/3daa9cb66c43b6d472473dcbf0c312c8e66b1769"}],"revision":"7ff085cd953f6cbe6ed877a2a8dedf2bb3e6e29ce2e3e2d87b8f95efb06b80c3","sources":[{"modifiedAt":1795657037193,"name":"CNA: VulnCheck","retrievedAt":1795658906000,"url":"https://www.cve.org/CVERecord?id=CVE-2026-137305"}],"ssvc":null,"status":"published","title":"Grav Form Plugin before 9.2.4 Code Injection via File Field Upload Destination","updatedAt":1795658906000}