{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-0944 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2022-0944 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-0944 is a critical code injection vulnerability in sqlpad/sqlpad, published on 15 Mar 2022. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-0944 and fix it if it is affected.\n\nWhat it is: CVE-2022-0944 is a critical code injection vulnerability in sqlpad/sqlpad, published on 15 Mar 2022. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-0944 in the wild and no public exploit code.\n\nAffected product: sqlpad/sqlpad. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-0944/ (Markdown: https://insights.sbomify.com/CVE-2022-0944/index.md)","id":"CVE-2022-0944","markdown":"https://insights.sbomify.com/CVE-2022-0944/index.md","name":"CVE-2022-0944","record":{"aliases":["GHSA-xrh7-6fvm-56v5"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"SQLPad web application","requires_auth":"high_privilege","summary":"Template injection in the connection test endpoint allows remote attackers to execute arbitrary code on the server.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntrdev","cpe":[{"product":"sqlpad","vendor":"sqlpad"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"description":"Template injection in connection test endpoint leads to RCE in GitHub repository sqlpad/sqlpad prior to 6.10.1.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2024-09-08","github_poc":10,"max_poc_stars":9,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-09-10T10:26:57Z","kind":"github_poc","ref":"https://github.com/0xRoqeeb/sqlpad-rce-exploit-CVE-2022-0944","stars":9,"title":null},{"date":"2024-09-08T23:39:24Z","kind":"github_poc","ref":"https://github.com/shhrew/CVE-2022-0944","stars":7,"title":"A proof of concept exploit for SQLPad RCE (CVE-2022-0944)."},{"date":"2024-09-09T19:09:43Z","kind":"github_poc","ref":"https://github.com/FlojBoj/CVE-2022-0944","stars":5,"title":"SQLPad - Template injection (POC exploit for SQLPad RCE [CVE-2022-0944])"},{"date":"2024-09-13T09:30:08Z","kind":"github_poc","ref":"https://github.com/Robocopsita/CVE-2022-0944_RCE_POC","stars":2,"title":null},{"date":"2024-09-10T13:23:25Z","kind":"github_poc","ref":"https://github.com/Artemisxxx37/OverlayFS-PrivEsc-CVE-2022-0944","stars":1,"title":null},{"date":"2024-10-13T22:34:09Z","kind":"github_poc","ref":"https://github.com/toneillcodes/CVE-2022-0944","stars":1,"title":"PoC for RCE in SQLPad (CVE-2022-0944)"},{"date":"2024-10-25T20:31:09Z","kind":"github_poc","ref":"https://github.com/LipeOzyy/SQLPad-RCE-Exploit-CVE-2022-0944","stars":1,"title":"CVE-2022-0944 Remote Code Execution Exploit"},{"date":"2024-09-09T08:33:17Z","kind":"github_poc","ref":"https://github.com/Philip-Otter/CVE-2022-0944_RCE_Automation","stars":0,"title":"PoC code written for CVE-2022-0944 to make exploitation easier. Based on information found here:  https://huntr.com/bounties/46630727-d923-4444-a421-537ecd63e7fb"}],"tier":"poc_unverified"},"has_fix":false,"headline":"Template injection in connection test endpoint leads to RCE in sqlpad/sqlpad","id":"CVE-2022-0944","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2022"},"n_packages":0,"n_references":2,"next":{"headline":"Stored XSS viva axd and cshtml file upload in star7th/showdoc in star7th/showdoc","id":"CVE-2022-0945"},"packages":[],"prev":{"headline":"Heap-based Buffer Overflow occurs in vim in vim/vim","id":"CVE-2022-0943"},"products":["sqlpad/sqlpad"],"published":"2022-03-15","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-02","vendors":["sqlpad"]},"summary":"Template injection in the connection test endpoint allows remote attackers to execute arbitrary code on the server.","url":"https://insights.sbomify.com/CVE-2022-0944/"}