{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-65321 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-65321 is a critical SQL injection vulnerability in laughingman7743 PyAthena, published on 2 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-65321 and fix it if it is affected.\n\nWhat it is: CVE-2026-65321 is a critical SQL injection vulnerability in laughingman7743 PyAthena, published on 2 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-65321 in the wild and no public exploit code.\n\nAffected product: laughingman7743 PyAthena. 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-2026-65321/ (Markdown: https://insights.sbomify.com/CVE-2026-65321/index.md)","id":"CVE-2026-65321","markdown":"https://insights.sbomify.com/CVE-2026-65321/index.md","name":"CVE-2026-65321","record":{"aliases":["CLEANSTART-2026-DS89074","CLEANSTART-2026-WC06247","GHSA-xwj5-g6cv-4r5c"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Python Athena library","requires_auth":"none","summary":"Attackers can inject arbitrary SQL via improper quote escaping in PyAthena, enabling data exfiltration and destructive database modifications.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"PyAthena prior to 3.35.4 contains a sql injection vulnerability that allows unauthenticated attackers to inject arbitrary SQL by exploiting improper quote-escaping in DefaultParameterFormatter.format(), which routes DELETE and CTAS statements to the _escape_hive function that backslash-escapes single quotes rather than doubling them. Because Athena and Trino do not treat backslashes as escape characters inside string literals, attacker-supplied input such as a single quote followed by SQL syntax causes the parser to terminate the string literal prematurely, enabling data exfiltration via UNION SELECT, execution of destructive statements, and attacker-controlled CTAS destination and content.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-08-03","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-08-03T09:47:45Z","kind":"github_poc","ref":"https://github.com/rahulreddykarne/CVE-2026-65321-pyathena","stars":0,"title":"SQL injection in PyAthena via DefaultParameterFormatter (CVE-2026-65321)"}],"tier":"poc_unverified"},"has_fix":true,"headline":"PyAthena SQL Injection via DefaultParameterFormatter DELETE/CTAS","id":"CVE-2026-65321","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"sql_injection","year":"2026"},"n_packages":0,"n_references":6,"next":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2026-65323"},"packages":[],"prev":{"headline":"Feedbin Unauthenticated Entry Content Disclosure via GET /api/v2/entries/:id/text","id":"CVE-2026-65319"},"products":["PyAthena"],"published":"2026-08-02","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-06","vendors":["laughingman7743"]},"summary":"Attackers can inject arbitrary SQL via improper quote escaping in PyAthena, enabling data exfiltration and destructive database modifications.","url":"https://insights.sbomify.com/CVE-2026-65321/"}