CVE-2024-12745: Amazon Redshift Python Connector vulnerable to SQL Injection
8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.03268%
CWE
Published
12/26/2024
Updated
12/26/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
redshift_connector | pip | = 2.1.4 | 2.1.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The advisory explicitly names get_schemas, get_tables, and get_columns Metadata APIs as vulnerable entry points. These methods handle schema/table/column name parameters that were directly interpolated into SQL commands without proper parameterization in v2.1.4. The patch notes confirm these were fixed by adding QUOTE_IDENT/QUOTE_LITERAL sanitization, indicating they were previously building raw SQL strings with user inputs. While exact file paths aren't provided in disclosures, these methods are core metadata API functions that would logically reside in the Cursor class implementation (cursor.py) based on Python DB API patterns and Redshift connector architecture.