GHSA-7xw4-g7mm-r4hh: Aws advanced jdbc wrapper Privilege Escalation Vulnerability

HIGH
CVSS 8.0
CWE-470
Published
Advisory Summary

GHSA-7xw4-g7mm-r4hh is a HIGH (CVSS 8.0) privilege escalation vulnerability (CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')) affecting Aws advanced jdbc wrapper libraries in the Maven ecosystem. The issue involves privilege escalation in aurora postgresql instance. Remediation is available by upgrading affected packages to version 2.6.5.

GHSA-7xw4-g7mm-r4hh at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-7xw4-g7mm-r4hh
Severity HIGH
CVSS v3.1 Base Score 8.0
CWE Classification CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
Affected Product Aws advanced jdbc wrapper
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-7xw4-g7mm-r4hh

To remediate this vulnerability, upgrade all affected Aws advanced jdbc wrapper dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

software.amazon.jdbc:aws-advanced-jdbc-wrapper fixed: 2.6.5
<dependency>
    <groupId>software.amazon.jdbc</groupId>
    <artifactId>aws-advanced-jdbc-wrapper</artifactId>
    <version>2.6.5</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=software.amazon.jdbc

How to Check if You Are Affected

To determine whether your Java application is affected by GHSA-7xw4-g7mm-r4hh, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=software.amazon.jdbc

Analyze the terminal output to locate any version of Aws advanced jdbc wrapper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.6.5), your application is affected.

Note: The mvn dependency:tree -Dincludes=software.amazon.jdbc command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection'), where the product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code. In Aws advanced jdbc wrapper, 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

### Description of Vulnerability: An issue in AWS Wrappers for Amazon Aurora PostgreSQL may allow for privilege escalation to rds_superuser role. A low privilege authenticated user can create a crafted function that could be executed with permissions of other Amazon Relational Database Service (RDS) users. AWS recommends for customers to upgrade to the following versions: AWS JDBC Wrapper to v2.6.5 or greater. ### Source of Vulnerability Report: Allistair Ishmael Hakim [allistair.hakim@gmail.com](mailto:allistair.hakim@gmail.com) ### Affected products & versions: AWS JDBC Wrapper < 2.6.5 ### Platforms: MacOS/Windows/Linux

GHSA-7xw4-g7mm-r4hh Affected Aws advanced jdbc wrapper Versions

1 component(s)
Fixed Versions:
2.6.5
Product / Package Ecosystem Affected Versions Fixed Version
software.amazon.jdbc:aws-advanced-jdbc-wrapper
Maven
< 2.6.5
2.6.5

References

Frequently Asked Questions

What is GHSA-7xw4-g7mm-r4hh?
GHSA-7xw4-g7mm-r4hh is a security vulnerability in Aws advanced jdbc wrapper involving Privilege Escalation in Aurora PostgreSQL instance under CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection').
Which Aws advanced jdbc wrapper versions are affected?
Affected versions include releases prior to 2.6.5 across affected packages: software.amazon.jdbc:aws-advanced-jdbc-wrapper.
What version fixes GHSA-7xw4-g7mm-r4hh?
Upgrading to 2.6.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aws-advanced-jdbc-wrapper affected?
Yes, software.amazon.jdbc:aws-advanced-jdbc-wrapper is affected in releases prior to 2.6.5. Upgrade your dependency to 2.6.5 or later.
What is the CVSS score of GHSA-7xw4-g7mm-r4hh?
GHSA-7xw4-g7mm-r4hh has a CVSS v3.1 base score of 8.0 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-7xw4-g7mm-r4hh?
GHSA-7xw4-g7mm-r4hh is classified under CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.).
How can I check Maven dependencies for GHSA-7xw4-g7mm-r4hh?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=software.amazon.jdbc'. 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-7xw4-g7mm-r4hh",
  "modified" : "2025-11-13T22:22:28Z",
  "published" : "2025-11-13T22:22:28Z",
  "aliases" : [ ],
  "summary" : "Amazon Web Services Advanced JDBC Wrapper: Privilege Escalation in Aurora PostgreSQL instance",
  "details" : "### Description of Vulnerability:\nAn issue in AWS Wrappers for Amazon Aurora PostgreSQL may allow for privilege escalation to rds_superuser role. A low privilege authenticated user can create a crafted function that could be executed with permissions of other Amazon Relational Database Service (RDS) users.\n\nAWS recommends for customers to upgrade to the following versions: AWS JDBC Wrapper to v2.6.5 or greater.\n\n\n### Source of Vulnerability Report: \nAllistair Ishmael Hakim [allistair.hakim@gmail.com](mailto:allistair.hakim@gmail.com)\n\n\n### Affected products & versions: \nAWS JDBC Wrapper < 2.6.5\n\n### Platforms: \nMacOS/Windows/Linux",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "software.amazon.jdbc:aws-advanced-jdbc-wrapper"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.6.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.6.4"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/aws/aws-advanced-jdbc-wrapper/security/advisories/GHSA-7xw4-g7mm-r4hh"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aws/aws-advanced-jdbc-wrapper/commit/b62183b851fa46f891f9fe9c861e9ac2fb7d8b62"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/aws/aws-advanced-jdbc-wrapper"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/aws/aws-advanced-jdbc-wrapper/releases/tag/2.6.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-470" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-11-13T22:22:28Z",
    "nvd_published_at" : null
  }
}