PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2024-12745: 
Python vulnerability analysis and mitigation

Overview

A SQL injection vulnerability (CVE-2024-12745) was discovered in Amazon Redshift Python Connector version 2.1.4. The vulnerability allows users to gain escalated privileges through the get_schemas, get_tables, or get_columns Metadata APIs. The issue was disclosed on December 24, 2024, and affects specifically the Amazon Redshift Python Connector v2.1.4 (AWS Security Bulletin, GitHub Advisory).

Technical details

The vulnerability stems from improper handling of user-supplied input in metadata API calls. The affected APIs (get_schemas, get_tables, and get_columns) were susceptible to SQL injection attacks due to insufficient input validation. The vulnerability has received a CVSS v3.1 base score of 8.0 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H, indicating network accessibility, low attack complexity, and high impact on confidentiality, integrity, and availability (NVD).

Impact

The vulnerability could allow malicious actors to craft specially designed input that, when processed by the vulnerable APIs, would enable them to inject their own SQL code into the queries sent to the Redshift server. This could potentially lead to unauthorized access, modification, or deletion of sensitive data with escalated privileges (Security Online).

Exploitability

The vulnerability requires network access and low privileges for exploitation, though user interaction is required. The attack complexity is rated as low, making it relatively straightforward for attackers to exploit if left unpatched (GitHub Advisory).

Mitigation and workarounds

Amazon has released version 2.1.5 of the Python Connector to address this vulnerability. The patch implements enhanced security measures where all metadata command inputs are now sent to the Redshift server as part of parameterized queries, using either QUOTE_IDENT(string) or QUOTE_LITERAL(string) to properly escape user-supplied input. Users are recommended to either upgrade to version 2.1.5 or revert to the unaffected version 2.1.3 (AWS Security Bulletin).

Additional resources


Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-c978-59m8-c77vHIGH7.8
  • Python logoPython
  • virtualenv
NoYesOct 21, 2026
GHSA-cw65-gx24-rc82MEDIUM4.5
  • Python logoPython
  • virtualenv
NoYesOct 21, 2026
CVE-2026-113716MEDIUM4.5
  • Python logoPython
  • virtualenv
NoYesOct 21, 2026
GHSA-43mp-35q3-x3fqMEDIUM4.5
  • Python logoPython
  • virtualenv
NoYesOct 21, 2026
CVE-2026-113724MEDIUM4.5
  • Python logoPython
  • virtualenv
NoYesOct 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management