CVE-2026-65321
Last modified
CVE-2026-65321 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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.. EPSS estimates a 0.44% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| laughingman7743 | PyAthena | <= 3.35.3 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-65321?
How severe is CVE-2026-65321?
How do I fix CVE-2026-65321?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-65315Ollama (HEAD f0078ae) contains an uncontrolled memory alloca…8.7
- CVE-2026-65316XXL-Job version 2.4.2 contains an insecure direct object ref…7.1
- CVE-2026-65317Verba RAG application version 2.1.3 contains a server-side r…9.2
- CVE-2026-65318Verba RAG application version 2.1.3 contains an unauthentica…9.2
- CVE-2026-65319Feedbin (commit 739884a) contains an unauthenticated informa…8.7
- CVE-2026-6532Kismet protocol dissector crash in Wireshark 4.6.0 to 4.6.4 …5.5
- CVE-2026-65324Apache Traffic Server drops the per-stream buffer cap when d…8.2
- CVE-2026-65325Apache Traffic Server reuses multiplexed HTTP/2 origin conne…6.3
- CVE-2026-6533Dissection engine LZ77 decompression crash in Wireshark 4.6.…5.5
- CVE-2026-6534USB HID protocol dissector infinite loop in Wireshark 4.6.0 …5.5
- CVE-2026-6535Dissection engine zlib decompression crash in Wireshark 4.6.…5.5
- CVE-2026-6536DLMS/COSEM protocol dissector infinite loop in Wireshark 4.6…5.5
Are you affected by CVE-2026-65321?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
