Remote Code Execution via Blind Template Injection in SQLPad
SQLPad versions prior to 6.10.1 contain a blind template injection vulnerability (CVE-2022-0944) allowing authenticated high-privileged users to execute arbitrary system commands via the /api/test-connection endpoint.
CVE search metadata
CVE search record: CVE-2022-0944. Severity: high. CVSS: 7.2. EPSS: 8.67%. KEV: no. Product: SQLPad (< 6.10.1). Brief: Remote Code Execution via Blind Template Injection in SQLPad. Brief link: https://feed.craftedsignal.io/briefs/2026-08-cve-2022-0944/
CVE-2022-0944 is a critical vulnerability identified in SQLPad versions 6.10.0 and earlier, stemming from improper input handling during template processing. An authenticated attacker possessing administrative privileges can trigger a blind template injection by supplying a malicious payload to the /api/test-connection endpoint. Because SQLPad processes this input improperly, it results in remote code execution (RCE) on the underlying host operating system. Given the availability of multiple proof-of-concept exploits on public repositories as of August 2026, the risk of exploitation is elevated for any internet-facing or improperly segmented instances of SQLPad. Defenders should prioritize patching to version 6.10.1 or later to mitigate this risk.
Attack Chain
- The attacker gains authenticated access to the SQLPad management console using valid administrator credentials.
- The attacker navigates to the /api/test-connection endpoint, typically used to verify database connectivity.
- The attacker crafts a malicious request body containing a template injection payload designed to interact with the server's shell.
- The request is sent to the target server via an HTTP POST request.
- The application parses the malicious payload in the request body, triggering the template injection vulnerability.
- The server-side template engine executes the embedded shell commands (e.g., executing system binaries).
- The command execution results in the attacker achieving unauthorized control over the server environment.
Impact
Successful exploitation allows for complete compromise of the SQLPad application server. Depending on the container or host configuration, this may result in full system-level access, exfiltration of stored database credentials, lateral movement within the network, or deployment of additional malicious payloads.
Recommendation
- Immediately patch all instances of SQLPad to version 6.10.1 or later.
- Restrict access to the SQLPad web interface and API endpoints using network segmentation or firewall rules, ensuring they are not exposed to the public internet.
- Monitor web server logs for HTTP POST requests to /api/test-connection that contain suspicious characters or strings indicative of template injection (e.g., shell metacharacters like backticks, pipes, or semicolons).
- Implement strict monitoring for unexpected process creation originating from the SQLPad application service account or container.
Detection coverage 1
Detects CVE-2022-0944 Exploitation - Template Injection in /api/test-connection
highDetects potential exploitation attempts targeting CVE-2022-0944 by identifying POST requests to the test-connection endpoint containing shell metacharacters often used in template injection payloads.
Detection queries are available on the platform. Get full rules →