GHSA-7xw4-g7mm-r4hh: Aws advanced jdbc wrapper Privilege Escalation Vulnerability
HIGHGHSA-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
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).
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.
<dependency>
<groupId>software.amazon.jdbc</groupId>
<artifactId>aws-advanced-jdbc-wrapper</artifactId>
<version>2.6.5</version>
</dependency>
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
GHSA-7xw4-g7mm-r4hh Affected Aws advanced jdbc wrapper Versions
1 component(s)| 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?
Which Aws advanced jdbc wrapper versions are affected?
What version fixes GHSA-7xw4-g7mm-r4hh?
Is aws-advanced-jdbc-wrapper affected?
What is the CVSS score of GHSA-7xw4-g7mm-r4hh?
What CWE is associated with GHSA-7xw4-g7mm-r4hh?
How can I check Maven dependencies for GHSA-7xw4-g7mm-r4hh?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}