SQL Injection Vulnerability in PyAthena Product by LaughingMan
CVE-2026-65321
9.3CRITICAL
What is CVE-2026-65321?
PyAthena prior to version 3.35.4 is susceptible to SQL injection due to improper quote-escaping in the DefaultParameterFormatter.format() function. This flaw enables unauthenticated attackers to inject arbitrary SQL commands, particularly through DELETE and CTAS SQL statements. An exploit can occur when input containing a single quote is improperly handled, permitting the unauthorized execution of SQL commands, leading to data exfiltration and manipulation. The vulnerability arises from backslash-escaping behavior that does not align with Athena and Trino's treatment of backslashes in string literals. Users are urged to upgrade to the latest version to mitigate potential security risks.
Affected Version(s)
PyAthena 0 <= 3.35.3
