SQL Injection Vulnerability in PyAthena Product by LaughingMan
CVE-2026-65321

9.3CRITICAL

Key Information:

Status
Vendor
CVE Published:
2 August 2026

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

References

CVSS V4

Score:
9.3
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Rahul Karne
.