SQL Injection Vulnerability in PyAthena Product by LaughingMan
CVE-2026-65321
Key Information:
- Vendor
Laughingman7743
- Status
- Vendor
- CVE Published:
- 2 August 2026
Badges
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
PyAthena 0 <= 3.35.3
PyAthena 3.35.4
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
CVSS V4
Timeline
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
Vulnerability published
Vulnerability Reserved
