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

Published Oct 12, 2026
·
Updated

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 Software

1 affected component
Thelia Thelia<3.1.2, >=3.2.0<3.2.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Thelia to a version that resolves this vulnerability.

    Fixed in 3.1.2
  2. Upgrade

    Upgrade Thelia to a version that resolves this vulnerability.

    Fixed in 3.2.1

Event History

Oct 12, 2026
CVE Published
via MITRE·03:16 PM
Data Sourced
via MITRE·03:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An authenticated Thelia back-office user with the ability to upload files can exploit it. The attack can be performed remotely and does not require user interaction.

2

Which versions need remediation?

The affected versions are Thelia releases before 3.1.2 and 3.2.x releases before 3.2.1. Upgrading to 3.1.2 or 3.2.1, as applicable, addresses the affected version ranges.

3

What does successful exploitation allow?

An attacker can upload a PHP file using a filename with a trailing space so that validation accepts it but filename sanitization stores it as an executable .php file. The resulting code runs as the web server user from public/cache/documents/.

4

How can defenders look for possible exploitation?

Inspect public/cache/documents/ for unexpected .php files, particularly files that may have originated from uploads with trailing spaces in their names. Review back-office upload activity for suspicious authenticated users and uploaded filenames.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203