Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
7DescriptionCVE.org
A vulnerability was identified in ThingsGateway 12. This affects an unknown part of the file /api/file/download. The manipulation of the argument fileName leads to path traversal. Remote exploitation of the attack is possible. The exploit is publicly available and might be used. The vendor was contacted early about this disclosure but did not respond in any way.
AnalysisAI
Path traversal in ThingsGateway 12's /api/file/download endpoint allows authenticated users to read arbitrary files through manipulation of the fileName parameter. Public exploit code exists for this vulnerability, and no patch is currently available from the vendor despite early notification.
Technical ContextAI
This vulnerability is rooted in CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), a classic path traversal flaw where user-supplied input to the fileName parameter in the /api/file/download endpoint fails to sanitize directory traversal sequences such as '../' or absolute paths. ThingsGateway 12 (identified via CPE cpe:2.3:a:thingsgateway:thingsgateway:12) processes this unsanitized input when constructing file system paths, allowing an attacker to navigate outside the intended document root. The API endpoint lacks input validation, canonicalization, or whitelist-based filename restrictions that would prevent traversal attacks. This is a server-side vulnerability affecting the file download mechanism, a common architectural weakness in IoT gateway and industrial control systems.
RemediationAI
Upgrade ThingsGateway to a patched version if available from the upstream project; check the official ThingsGateway repository (typically on GitHub) for security releases addressing CVE-2026-4233. If no patch is immediately available, implement network-level mitigations including restricting API access to the /api/file/download endpoint via a Web Application Firewall (WAF) with rules blocking path traversal sequences (../, ..\, %2e%2e, etc.), enforcing authentication via OAuth or mutual TLS, and limiting file download requests to authenticated users from trusted IP ranges. Additionally, apply input validation on the server side by implementing a strict whitelist of allowed filenames and storing downloadable files in a separate, read-only directory outside the application root. Monitor access logs for suspicious fileName parameter patterns indicating exploitation attempts.
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-12399