{"id":"CVE-2026-137305","summary":"Grav Form Plugin before 9.2.4 Code Injection via File Field Upload Destination","details":"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.","aliases":["GHSA-4grx-p93p-25w8"],"modified":"2026-11-26T03:00:09.535941052Z","published":"2026-11-26T01:37:17.193Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137305.json","unresolved_ranges":[{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"fixed":"9.2.4"}]}]},{"extracted_events":[{"source":"DESCRIPTION","range":[{"fixed":"9.2.4"}]}]}],"cna_assigner":"VulnCheck","cwe_ids":["CWE-94"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137305.json"},{"type":"PACKAGE","url":"https://github.com/getgrav/grav-plugin-form"},{"type":"FIX","url":"https://github.com/getgrav/grav-plugin-form/commit/3daa9cb66c43b6d472473dcbf0c312c8e66b1769"},{"type":"ADVISORY","url":"https://github.com/getgrav/grav/security/advisories/GHSA-4grx-p93p-25w8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137305"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/grav-form-plugin-before-9.2.4-code-injection-via-file-field-upload-destination"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/getgrav/grav-plugin-form","events":[{"introduced":"0"},{"fixed":"3daa9cb66c43b6d472473dcbf0c312c8e66b1769"}],"database_specific":{"extracted_events":[{"source":"REFERENCES_COMMIT","range":[{"fixed":"3daa9cb66c43b6d472473dcbf0c312c8e66b1769"}]}]}}],"versions":["4.0.0","3.0.0-rc.4","3.0.0-rc.3","3.0.0-rc.2","3.0.0-rc.1","3.0.0-beta.5","3.0.0-beta.4","3.0.0-beta.3","3.0.0-beta.2","3.0.0-beta.1","2.8.0-rc.2","2.8.0-rc.1","2.0.8-rc.1","2.0.0-rc.1","1.3.0-rc.4","1.3.0-rc.3","1.3.0-rc.2","1.3.0-rc.1","1.3.0-beta.6","1.3.0-beta.4","1.3.0-beta.3","1.3.0-beta.2","1.3.0-beta.1","0.7.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-137305.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}