# CVE-2026-109397: Thelia before 3.1.2 and 3.2.x before 3.2.1 File Upload RCE via Filename Trailing Space

- Severity: High 8.6 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-10-12T15:16:43.107Z
- Modified: 2026-10-13T20:41:35.943Z
- Weaknesses: CWE-434
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- Thelia Thelia: before 3.1.2; from 3.2.0 before 3.2.1

## Every score

- VulnCheck: CVSS:4.0 8.6 High `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`
- VulnCheck: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/thelia/thelia/security/advisories/GHSA-5524-qfxp-33v9> (vendor-advisory)
- <https://github.com/thelia/thelia/commit/6b706f5cb96e6b12d890c6d16edb1c9d1fd8191a> (patch)
- <https://github.com/thelia/thelia/commit/b71258902b5dd278007d0f37ddad45f76d06d5bc> (patch)
- <https://github.com/thelia/thelia/blob/3.2.0/core/lib/Thelia/Core/File/Service/FileProcessorService.php#L119-L160> (technical-description)
- <https://github.com/thelia/thelia/releases/tag/3.1.2> (release-notes)
- <https://github.com/thelia/thelia/releases/tag/3.2.1> (release-notes)
- <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> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-109397](https://www.cve.org/CVERecord?id=CVE-2026-109397), CVE Terms of Use, modified 2026-10-13
- NVD: [CVE-2026-109397](https://nvd.nist.gov/vuln/detail/CVE-2026-109397), Public domain, modified 2026-10-13

---

Page: https://cve.day/CVE-2026-109397 · Whole record: https://cve.day/CVE-2026-109397.json · Rebuilt by cve.day 2026-11-25T22:59:43.599Z
