Thelia
Thelia before 3.1.2 and 3.2.x before 3.2.1 File Upload RCE via Filename Trailing Space
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.6high · scored by CNA · CWE-434
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Thelia Thelia
- < 3.1.2
- >= 3.2.0, < 3.2.1
Fixed in 3.1.2, 3.2.1
Mitigation
Upgrade Thelia to 3.1.2 or 3.2.1 or later.
References
- Vendor advisory github.com/thelia/thelia/security/advisories/G…
- Patch github.com/thelia/thelia/commit/6b706f5cb96e6b…
- Patch github.com/thelia/thelia/commit/b71258902b5dd2…
2 more
- Release notes github.com/thelia/thelia/releases/tag/3.1.2
- Release notes github.com/thelia/thelia/releases/tag/3.2.1
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.