/

CVE-2026-70356

Severity:

CRITICAL RISK

(9.1)

Unrestricted File Upload (CWE-434) in TMS Endpoint

CVE-2026-70356

Awaiting Analysis

Vulnerability type

Category:

Unrestricted File Upload

CWE:

CWE-434

Impact:

Remote Code Execution

Severity:

CRITICAL RISK

(9.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A critical vulnerability in the TMS file upload endpoint allows attackers to upload files without effective server-side type restrictions. If the uploaded file is placed in an executable web-accessible location, an attacker may run arbitrary PHP code on the server.

Affected context

The issue occurs in TMS deployments where the file upload endpoint relies on client-supplied names, extensions, or content types instead of enforcing server-side validation. Risk is increased when uploaded files are stored beneath a web-served directory that permits server-side script execution.

Exploit preconditions

  • Attack surface: TMS file upload endpoint - Required access: Access to submit files through the upload functionality;

authentication requirements depend on deployment configuration

  • Trigger point: Server-side handling and storage of an uploaded file - Why exploitation is possible: File type restrictions are not reliably

enforced, allowing executable server-side script content to reach a location

where the web server may process it

Why this happens

The vulnerability is caused by treating client-controlled upload metadata or content as trustworthy and failing to enforce an allowlist of permitted file types on the server. When executable files can be stored in a web-accessible execution context, the upload feature becomes an unintended code execution path. This behavior maps to CWE-434: Unrestricted Upload of File with Dangerous Type.

Potential impact

  • An attacker may execute arbitrary PHP code on the web server
  • The application and its underlying host could be compromised
  • Sensitive data may be accessed, modified, or exfiltrated
  • Attackers could alter application content or establish persistence
  • The server could be used to attack connected systems

General mitigation guidance

Mitigation generally focuses on making uploads non-executable and reducing trust in all client-controlled file attributes. Common defensive patterns include enforcing a strict server-side allowlist based on validated content, separating uploaded objects from web-served and executable directories, generating storage names independently of user input, and disabling script execution wherever uploads are stored. Additional controls may include size limits, malware scanning, isolated storage, restrictive permissions, and least-privilege service accounts.

How teams detect issues like this

Detection approaches include static analysis for upload handlers that use client-provided extensions or MIME types as authorization decisions, code review checks for writable web-root directories, and policy rules requiring server-side content validation. Runtime monitoring can alert on executable files appearing in upload locations, unexpected script requests, and unusual child processes spawned by the web server. Automated security review tools may help identify missing upload restrictions during development.

Sources

SourceLink
github.comgithub.com/cisagov/CSAF/blob/develop/csaf_files/OT/white/2026/icsa-26-272-02.json
cisa.govcisa.gov/news-events/ics-advisories/icsa-26-272-02
toptech.comtoptech.com/blog/tms7-version-7-8-strengthens-security

Frequently asked

questions

It may be remotely exploitable through the TMS upload endpoint when an attacker

can reach that endpoint and the uploaded content is subsequently processed by

the web server.

Authentication requirements depend on the TMS deployment and endpoint access

controls. The key requirement is permission, or an access path, to submit files.

Accept only required file types after server-side content validation, store files

outside executable web-accessible paths, and ensure uploaded content cannot be

interpreted as server-side code.

Apply centralized upload policies, use least-privilege storage permissions,

monitor upload directories, and include negative file-upload tests in code

review and security testing.

Find out what's already
exploitable in your codebase.