# CVE-2024-12745: SQL Injection in the Amazon Redshift Python Connector affecting v2.1.4

- Severity: High 8.6 (CVSS:4.0, scored by AMZN) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2024-12-24T16:15:08.718Z
- Modified: 2026-09-10T03:50:56.154Z
- Also known as: GHSA-8gc2-vq6m-rwjw, PYSEC-2026-1866
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: AMZN

## Description

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.

(As written by CVE List.)

## Affected

- Amazon Amazon Redshift Python Connector: 2.1.4
- redshift-connector (PyPI): from 2.1.4 before 2.1.5
- amazon redshift_connector: 2.1.4

## Every score

- AMZN: CVSS:4.0 8.6 High `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`
- AMZN: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/aws/amazon-redshift-python-driver/security/advisories/GHSA-8gc2-vq6m-rwjw> (mitigation, vendor-advisory, web)
- <https://aws.amazon.com/security/security-bulletins/AWS-2024-015/> (vendor-advisory)
- <https://github.com/aws/amazon-redshift-python-driver/releases/tag/v2.1.5> (patch, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-12745> (advisory)
- <https://aws.amazon.com/security/security-bulletins/AWS-2024-015> (web)
- <https://github.com/aws/amazon-redshift-python-driver> (package)
- <https://pypi.org/project/redshift-connector> (package)
- <https://github.com/advisories/GHSA-8gc2-vq6m-rwjw> (advisory)

## Sources

- CVE List: [CVE-2024-12745](https://www.cve.org/CVERecord?id=CVE-2024-12745), CVE Terms of Use, modified 2025-10-14
- GitHub Advisory Database: [GHSA-8gc2-vq6m-rwjw](https://github.com/advisories/GHSA-8gc2-vq6m-rwjw), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-12745](https://nvd.nist.gov/vuln/detail/CVE-2024-12745), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1866](https://osv.dev/vulnerability/PYSEC-2026-1866), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-12745 · Whole record: https://cve.day/CVE-2024-12745.json · Rebuilt by cve.day 2026-11-25T22:58:50.350Z
