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… (CVE-2026-109397)
Description
Thelia versions before 3.1.2 and 3.2.x before 3.2.1 have an unrestricted file upload vulnerability. Authenticated back-office users can upload PHP files by exploiting a filename handling flaw involving trailing spaces. This allows storing executable PHP files in the public cache directory, enabling code execution as the web server user.
CVSS v3.1
Score 7.2high
Affected software
pkg:github/thelia/theliaRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Thelia before 3.1.2 and 3.2.x before 3.2.1 arises from inconsistent filename validation and sanitization. FileProcessorService validates the raw filename including a trailing space, but FileManager::sanitizeFileName() removes the trailing space before storing the file. This discrepancy allows an attacker with back-office authentication to upload PHP files with a trailing space appended to the filename, bypassing restrictions. The uploaded PHP file is stored under public/cache/documents/ and can be executed by the web server, leading to remote code execution.
Potential Impact
Successful exploitation allows authenticated back-office users to execute arbitrary PHP code on the server with the privileges of the web server user. This can lead to full compromise of the affected system, including data theft, service disruption, or further network pivoting.
Mitigation Recommendations
The vulnerability is fixed in Thelia versions 3.1.2 and 3.2.1. Users should upgrade to these or later versions to remediate the issue. Patch status is not explicitly confirmed in the input data, but the version boundaries indicate these are the fixed releases. No vendor advisory content was provided to confirm patch availability or alternative mitigations.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-hjxm-gpw4-w4q7
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-109397"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6acd55582cdf04f656da85ad
Added to database: 10/12/2026, 21:47:04 UTC
Last enriched: 10/12/2026, 22:00:02 UTC
Last updated: 10/12/2026, 22:48:22 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.