Summary
CVE-2026-18782 is a critical SQL injection vulnerability (CWE-89) affecting Trex Digital Smart Manufacturing Systems Inc.’s Trex MES manufacturing execution system. The flaw allows an unauthenticated, network-based attacker to inject arbitrary SQL into backend database queries, with public analysis indicating this can be leveraged for command line execution on the underlying host. The issue carries a CVSS v3.1 base score of 9.8 (Critical).
Technical details
- Root cause: Trex MES fails to properly neutralize special elements in user-supplied input before it is incorporated into SQL statements executed against the backend database, resulting in an SQL injection condition (CWE-89, CAPEC-108: Command Line Execution through SQL Injection).
- Public PoC research describes the flaw as present in API endpoints that accept an unsanitized SQL-related parameter and execute it directly against the backend Microsoft SQL Server instance, returning results as JSON.
- Attack vector: Network — no authentication and no user interaction are required to exploit the vulnerability (AV:N/AC:L/PR:N/UI:N).
- Impact: Successful exploitation can allow an attacker to read, modify, or delete data across the application’s databases, and public research further describes a path to operating-system command execution via database command-execution features, resulting in full compromise of confidentiality, integrity, and availability.
Affected software
- Trex MES (Trex Digital Smart Manufacturing Systems Inc.) — all versions through 2026-09-29
Severity
- CVSS v3.1 Base Score: 9.8 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: No vendor-confirmed patched version has been published at the time of writing. Organizations running Trex MES should contact Trex Digital Smart Manufacturing Systems Inc. for an official fix and apply it as soon as it is released.
- If no patch is available:
- Restrict network access to Trex MES application and database interfaces to trusted internal networks only; do not expose the application directly to the internet.
- Place a web application firewall or reverse proxy in front of the application to filter requests containing SQL injection patterns.
- Review and harden the backend database configuration, including disabling unnecessary command-execution features and removing elevated database privileges from the application’s service account.
- Rotate credentials used by the Trex MES application and monitor database and application logs for anomalous query activity.

