{"id":"CVE-2024-12745","summary":"SQL Injection in the Amazon Redshift Python Connector affecting v2.1.4","details":"A SQL injection in the Amazon Redshift Python Connector v2.1.4 allows a user to gain escalated privileges via the get_schemas, get_tables, or get_columns Metadata APIs. Users are recommended to upgrade to the driver version 2.1.5 or revert to driver version 2.1.3.","aliases":["GHSA-8gc2-vq6m-rwjw","PYSEC-2026-1866"],"modified":"2026-08-12T03:51:09.948105228Z","published":"2024-12-24T16:15:08.718Z","related":["CGA-79p8-gxff-v32q"],"database_specific":{"cna_assigner":"AMZN","cwe_ids":["CWE-89"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/12xxx/CVE-2024-12745.json"},"references":[{"type":"ADVISORY","url":"https://aws.amazon.com/security/security-bulletins/AWS-2024-015/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/12xxx/CVE-2024-12745.json"},{"type":"ADVISORY","url":"https://github.com/aws/amazon-redshift-python-driver/security/advisories/GHSA-8gc2-vq6m-rwjw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-12745"},{"type":"FIX","url":"https://github.com/aws/amazon-redshift-python-driver/releases/tag/v2.1.5"},{"type":"PACKAGE","url":"https://github.com/aws/amazon-redshift-python-driver"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/aws/amazon-redshift-odbc-driver","events":[{"introduced":"8f25a19bde702760916da85af94aff5007a26fa2"},{"last_affected":"8f25a19bde702760916da85af94aff5007a26fa2"}],"database_specific":{"cpe":"cpe:2.3:a:amazon:redshift_connector:2.1.4:*:*:*:*:python:*:*","extracted_events":[{"introduced":"2.1.4"},{"last_affected":"2.1.4"}],"source":"CPE_STRING"}},{"type":"GIT","repo":"https://github.com/aws/amazon-redshift-python-driver","events":[{"introduced":"85eadfb316c691c7ed74a819e123d7e1869a1cee"},{"fixed":"287359102590d8a4d8181708febc9792fc487e27"}],"database_specific":{"source":["AFFECTED_FIELD","REFERENCES"],"extracted_events":[{"introduced":"2.1.4"},{"last_affected":"2.1.4"}]}}],"versions":["2.1.4","v2.1.4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-12745.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}