CVE-2025-5279: Redshift connector Issue With Amazon Redshift Python Vulnerability

HIGH
Advisory Identifier: GHSA-r244-wg5g-6w2r
CVSS 7.5
CWE-295
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-5279
GHSA Identifier GHSA-r244-wg5g-6w2r
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Redshift connector
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

redshift-connector fixed: 2.1.7
pip install redshift-connector>=2.1.7
Verify Direct and Transitive Dependencies

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

### Summary [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/). When the Amazon Redshift Python Connector is configured with the BrowserAzureOAuth2CredentialsProvider plugin, the driver skips the SSL certificate validation step for the Identity Provider. ### Impact An insecure connection could allow an actor to intercept the token exchange process and retrieve an access token. **Impacted versions:** >=2.0.872;<=2.1.6 ### Patches Upgrade Amazon Redshift Python Connector to version 2.1.7 and ensure any forked or derivative code is patched to incorporate the new fixes. ### Workarounds None ### References If 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. [1] Vulnerability reporting page: https://aws.amazon.com/security/vulnerability-reporting

CVE-2025-5279 Affected Redshift connector Versions

1 component(s)
Fixed Versions:
2.1.7
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?
CVE-2025-5279 is a security vulnerability in Redshift connector involving Issue with Amazon Redshift Python Connector and the BrowserAzureOAuth2CredentialsProvider plugin under CWE-295: Improper Certificate Validation.
Which Redshift connector versions are affected?
Affected versions include releases prior to 2.1.7 across affected packages: redshift-connector.
What version fixes CVE-2025-5279?
Upgrading to 2.1.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is redshift-connector affected?
Yes, redshift-connector is affected in releases prior to 2.1.7. Upgrade your dependency to 2.1.7 or later.
What is the CVSS score of CVE-2025-5279?
CVE-2025-5279 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2025-5279?
CVE-2025-5279 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check PyPI dependencies for CVE-2025-5279?
Run the dependency tree command: 'pip show redshift-connector'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}