PT-2026-67262 · Pypi · Pyathena

·

CVE-2026-65321

·

Published

2026-08-02

·

Updated

2026-08-02

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions PyAthena versions prior to 3.35.4
Description Unauthenticated attackers can inject arbitrary SQL due to improper quote-escaping in the DefaultParameterFormatter.format() function. Specifically, DELETE and CTAS statements are routed to the escape hive() function, which uses backslashes to escape single quotes instead of doubling them. Since Athena and Trino do not recognize backslashes as escape characters within string literals, a single quote in the input can prematurely terminate the string literal. This allows for data exfiltration via UNION SELECT, the execution of destructive statements, and unauthorized control over CTAS destination and content.
Recommendations Update PyAthena to version 3.35.4 or later.

Exploit

Fix

SQL injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-65321
GHSA-XWJ5-G6CV-4R5C

Affected Products

Pyathena