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.
Published: 2026-10-12
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

The vulnerability in Thelia, a CWE-434: Unrestricted File Upload flaw, allows an authenticated back‑office user to upload a PHP file by adding a trailing space to the filename. FileProcessorService inspects the raw name but the subsequent sanitizeFileName call removes the space, causing the file to be stored with an executable extension under public/cache/documents/. The web server executes the file, giving the attacker the capability to run arbitrary code on the server as the web‑server user.

Affected Systems

The affected product is Thelia. Versions prior to 3.1.2 and all 3.2.x releases earlier than 3.2.1 are impacted. Updated releases 3.1.2 and 3.2.1 contain the fix.

Risk and Exploitability

The CVSS score of 8.6 classifies this flaw as High severity. An attacker must first have authenticated back‑office credentials to exploit the flaw, so the attack vector is a web‑based authenticated request. Operative exploitation requires a modern web server capable of executing PHP and not already hardening the cache directory. Because EPSS data is not available and the flaw is not listed in the CISA KEV catalog, the public exploit landscape is currently unquantified, but the high CVSS and potential for remote code execution make the risk significant.

Generated by OpenCVE AI on October 12, 2026 at 17:54 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the installation to Thelia 3.1.2 or 3.2.1, which includes the patch that prevents PHP execution of uploaded files.
  • Configure the web server to disable PHP execution in the public/cache/documents directory, for example by adding a .htaccess rule that blocks .php execution or adjusting directory permissions.
  • Configure the upload module to reject or rename files with a .php extension before storage, ensuring only safe file types are uploaded.

Generated by OpenCVE AI on October 12, 2026 at 17:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 13 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 13 Oct 2026 07:45:00 +0000

Type Values Removed Values Added
First Time appeared Thelia
Thelia thelia
Vendors & Products Thelia
Thelia thelia

Mon, 12 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
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.
Title Thelia before 3.1.2 and 3.2.x before 3.2.1 File Upload RCE via Filename Trailing Space
Weaknesses CWE-434
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-13T16:57:16.106Z

Reserved: 2026-10-12T14:40:48.115Z

Link: CVE-2026-109397

cve-icon Vulnrichment

Updated: 2026-10-13T16:40:49.717Z

cve-icon NVD

Status : Deferred

Published: 2026-10-12T16:17:05.233

Modified: 2026-10-13T20:41:35.943

Link: CVE-2026-109397

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T07:26:44Z

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type