{"id":"CVE-2026-109397","state":"PUBLISHED","title":"Thelia before 3.1.2 and 3.2.x before 3.2.1 File Upload RCE via Filename Trailing Space","description":"Thelia before 3.1.2 and 3.2.x before 3.2.1 contains an unrestricted file upload vulnerability that allows authenticated back-office users to upload PHP files by appending a trailing space to filenames. FileProcessorService validates the raw filename but FileManager::sanitizeFileName() strips the space, storing an executable .php file under public/cache/documents/ for code execution as the web server user.","publishedAt":"2026-10-12T15:16:43.107Z","updatedAt":"2026-10-13T16:57:16.106Z","severity":{"score":8.6,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck"},"assigner":"VulnCheck","products":["Thelia Thelia"],"affected":[{"vendor":"Thelia","product":"Thelia","packageURL":"pkg:composer/thelia/thelia","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.1.2","versionType":"semver"},{"version":"3.2.0","status":"affected","lessThan":"3.2.1","versionType":"semver"}],"repo":"https://github.com/thelia/thelia"}],"references":["https://github.com/thelia/thelia/security/advisories/GHSA-5524-qfxp-33v9","https://github.com/thelia/thelia/commit/6b706f5cb96e6b12d890c6d16edb1c9d1fd8191a","https://github.com/thelia/thelia/commit/b71258902b5dd278007d0f37ddad45f76d06d5bc","https://github.com/thelia/thelia/blob/3.2.0/core/lib/Thelia/Core/File/Service/FileProcessorService.php#L119-L160","https://github.com/thelia/thelia/releases/tag/3.1.2","https://github.com/thelia/thelia/releases/tag/3.2.1","https://www.vulncheck.com/advisories/thelia-before-3.1.2-and-3.2-x-before-3.2.1-file-upload-rce-via-filename-trailing-space"],"weaknesses":["CWE-434"],"ingestedAt":"2026-10-29T20:10:33.477Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/109xxx/CVE-2026-109397.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-109397","state":"PUBLISHED","datePublished":"2026-10-12T15:16:43.107Z","dateUpdated":"2026-10-13T16:57:16.106Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-10-12T14:40:48.115Z"},"containers":{"cna":{"title":"Thelia before 3.1.2 and 3.2.x before 3.2.1 File Upload RCE via Filename Trailing Space","descriptions":[{"lang":"en","value":"Thelia before 3.1.2 and 3.2.x before 3.2.1 contains an unrestricted file upload vulnerability that allows authenticated back-office users to upload PHP files by appending a trailing space to filenames. FileProcessorService validates the raw filename but FileManager::sanitizeFileName() strips the space, storing an executable .php file under public/cache/documents/ for code execution as the web server user."}],"affected":[{"vendor":"Thelia","product":"Thelia","packageURL":"pkg:composer/thelia/thelia","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.1.2","versionType":"semver"},{"version":"3.2.0","status":"affected","lessThan":"3.2.1","versionType":"semver"}],"repo":"https://github.com/thelia/thelia"}],"references":[{"url":"https://github.com/thelia/thelia/security/advisories/GHSA-5524-qfxp-33v9","tags":["vendor-advisory"],"name":"GitHub Security Advisory (GHSA-5524-qfxp-33v9)"},{"url":"https://github.com/thelia/thelia/commit/6b706f5cb96e6b12d890c6d16edb1c9d1fd8191a","tags":["patch"]},{"url":"https://github.com/thelia/thelia/commit/b71258902b5dd278007d0f37ddad45f76d06d5bc","tags":["patch"]},{"url":"https://github.com/thelia/thelia/blob/3.2.0/core/lib/Thelia/Core/File/Service/FileProcessorService.php#L119-L160","tags":["technical-description"]},{"url":"https://github.com/thelia/thelia/releases/tag/3.1.2","tags":["release-notes"],"name":"Thelia 3.1.2 Release Notes"},{"url":"https://github.com/thelia/thelia/releases/tag/3.2.1","tags":["release-notes"],"name":"Thelia 3.2.1 Release Notes"},{"url":"https://www.vulncheck.com/advisories/thelia-before-3.1.2-and-3.2-x-before-3.2.1-file-upload-rce-via-filename-trailing-space","name":"VulnCheck Advisory: Thelia before 3.1.2 and 3.2.x before 3.2.1 File Upload RCE via Filename Trailing Space","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"HIGH","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.6,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.2,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-434","lang":"en","description":"Unrestricted Upload of File with Dangerous Type","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-12T15:16:43.107Z"},"datePublic":"2026-10-06T10:16:07.000Z","credits":[{"lang":"en","value":"HunterSploit","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-13T16:40:48.601402Z","id":"CVE-2026-109397","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-13T16:57:16.106Z"}}]}}}