CVE-2025-5279: Redshift connector Issue With Amazon Redshift Python Vulnerability
HIGHCVE-2025-5279 is a HIGH (CVSS 7.5) issue with amazon redshift python vulnerability (CWE-295: Improper Certificate Validation) affecting Redshift connector libraries in the PyPI ecosystem. The issue involves issue with amazon redshift python connector and the browserazureoauth2credentialsprovider plugin. Remediation is available by upgrading affected packages to version 2.1.7.
CVE-2025-5279 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2025-5279
To remediate this vulnerability, upgrade all affected Redshift connector dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install redshift-connector>=2.1.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show redshift-connector
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-5279, inspect your installed packages using pip:
pip show redshift-connector
Analyze the terminal output to locate any version of Redshift connector in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.7), your application is affected.
Note: The pip show redshift-connector command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Redshift connector, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-5279 Affected Redshift connector Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
redshift-connector
|
PyPI |
≥ 2.0.872
< 2.1.7
|
2.1.7
|
References
Frequently Asked Questions
What is CVE-2025-5279?
Which Redshift connector versions are affected?
What version fixes CVE-2025-5279?
Is redshift-connector affected?
What is the CVSS score of CVE-2025-5279?
What CWE is associated with CVE-2025-5279?
How can I check PyPI dependencies for CVE-2025-5279?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r244-wg5g-6w2r",
"modified" : "2025-10-14T21:59:21Z",
"published" : "2025-05-28T14:57:31Z",
"aliases" : [ "CVE-2025-5279" ],
"summary" : "Issue with Amazon Redshift Python Connector and the BrowserAzureOAuth2CredentialsProvider plugin",
"details" : "### Summary\n[Amazon Redshift Python Connector](https://docs.aws.amazon.com/redshift/latest/mgmt/python-redshift-driver.html) is a pure Python connector to Redshift (i.e., driver) that implements the [Python Database API Specification 2.0](https://www.python.org/dev/peps/pep-0249/).\n\nWhen the Amazon Redshift Python Connector is configured with the BrowserAzureOAuth2CredentialsProvider plugin, the driver skips the SSL certificate validation step for the Identity Provider. \n\n### Impact\n\nAn insecure connection could allow an actor to intercept the token exchange process and retrieve an access token.\n\n**Impacted versions:** >=2.0.872;<=2.1.6\n\n### Patches\n\nUpgrade Amazon Redshift Python Connector to version 2.1.7 and ensure any forked or derivative code is patched to incorporate the new fixes.\n\n### Workarounds\n\nNone\n\n### References\n\nIf you have any questions or comments about this advisory we ask that you contact AWS/Amazon Security via our vulnerability reporting page [1] or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.\n\n[1] Vulnerability reporting page: https://aws.amazon.com/security/vulnerability-reporting",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "redshift-connector"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.872"
}, {
"fixed" : "2.1.7"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.1.6"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/aws/amazon-redshift-python-driver/security/advisories/GHSA-r244-wg5g-6w2r"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-5279"
}, {
"type" : "WEB",
"url" : "https://aws.amazon.com/security/security-bulletins"
}, {
"type" : "WEB",
"url" : "https://aws.amazon.com/security/security-bulletins/AWS-2025-011"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aws/amazon-redshift-python-driver"
}, {
"type" : "WEB",
"url" : "https://github.com/aws/amazon-redshift-python-driver/releases/tag/v2.1.7"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-295" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-05-28T14:57:31Z",
"nvd_published_at" : "2025-05-27T21:15:23Z"
}
}