GHSA-7wq2-32h4-9hc9: AWS Advanced Go Wrapper Privilege Escalation Vulnerability
HIGHGHSA-7wq2-32h4-9hc9 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 Go Wrapper libraries in the Go ecosystem. The issue involves privilege escalation in aurora postgresql instance. Remediation is available by upgrading affected packages to version 1.1.1, 1.0.2.
GHSA-7wq2-32h4-9hc9 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-7wq2-32h4-9hc9
To remediate this vulnerability, upgrade all affected AWS Advanced Go 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.
Upgrade github.com/aws/aws-advanced-go-wrapper/awssql to 1.1.1
Upgrade github.com/aws/aws-advanced-go-wrapper/auth-helpers to 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/aws-secrets-manager to 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/federated-auth to 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/iam to 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/mysql-driver to 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/okta to 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/otlp to 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/pgx-driver to 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/xray to 1.0.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/aws/aws-advanced-go-wrapper/awssql
How to Check if You Are Affected
To determine whether your application is affected by GHSA-7wq2-32h4-9hc9, inspect your project dependencies for AWS Advanced Go Wrapper:
inspect dependencies for github.com/aws/aws-advanced-go-wrapper/awssql
Analyze the terminal output to locate any version of AWS Advanced Go Wrapper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
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 Go 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-7wq2-32h4-9hc9 Affected AWS Advanced Go Wrapper Versions
10 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/aws/aws-advanced-go-wrapper/awssql
|
Go |
< 1.1.1
|
1.1.1
|
|
github.com/aws/aws-advanced-go-wrapper/auth-helpers
|
Go |
< 1.0.2
|
1.0.2
|
|
github.com/aws/aws-advanced-go-wrapper/aws-secrets-manager
|
Go |
< 1.0.2
|
1.0.2
|
|
github.com/aws/aws-advanced-go-wrapper/federated-auth
|
Go |
< 1.0.2
|
1.0.2
|
|
github.com/aws/aws-advanced-go-wrapper/iam
|
Go |
< 1.0.2
|
1.0.2
|
|
github.com/aws/aws-advanced-go-wrapper/mysql-driver
|
Go |
< 1.0.2
|
1.0.2
|
|
github.com/aws/aws-advanced-go-wrapper/okta
|
Go |
< 1.0.2
|
1.0.2
|
|
github.com/aws/aws-advanced-go-wrapper/otlp
|
Go |
< 1.0.2
|
1.0.2
|
|
github.com/aws/aws-advanced-go-wrapper/pgx-driver
|
Go |
< 1.0.2
|
1.0.2
|
|
github.com/aws/aws-advanced-go-wrapper/xray
|
Go |
< 1.0.2
|
1.0.2
|
References
Frequently Asked Questions
What is GHSA-7wq2-32h4-9hc9?
Which AWS Advanced Go Wrapper versions are affected?
What version fixes GHSA-7wq2-32h4-9hc9?
Is github.com/aws/aws-advanced-go-wrapper/awssql affected?
Is github.com/aws/aws-advanced-go-wrapper/auth-helpers affected?
What is the CVSS score of GHSA-7wq2-32h4-9hc9?
What CWE is associated with GHSA-7wq2-32h4-9hc9?
How can I check Go dependencies for GHSA-7wq2-32h4-9hc9?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7wq2-32h4-9hc9",
"modified" : "2026-05-06T23:24:24Z",
"published" : "2025-11-13T22:22:34Z",
"aliases" : [ ],
"summary" : "AWS Advanced Go 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\nWe recommend customers upgrade to the following versions: AWS Go Wrapper to 2025-10-17\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 Go Wrapper < 2025-10-17\n\n\n### Platforms:\n MacOS/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" : "Go",
"name" : "github.com/aws/aws-advanced-go-wrapper/awssql"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/aws/aws-advanced-go-wrapper/auth-helpers"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/aws/aws-advanced-go-wrapper/aws-secrets-manager"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/aws/aws-advanced-go-wrapper/federated-auth"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/aws/aws-advanced-go-wrapper/iam"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/aws/aws-advanced-go-wrapper/mysql-driver"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/aws/aws-advanced-go-wrapper/okta"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/aws/aws-advanced-go-wrapper/otlp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/aws/aws-advanced-go-wrapper/pgx-driver"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/aws/aws-advanced-go-wrapper/xray"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/aws/aws-advanced-go-wrapper/security/advisories/GHSA-7wq2-32h4-9hc9"
}, {
"type" : "WEB",
"url" : "https://github.com/aws/aws-advanced-go-wrapper/pull/270"
}, {
"type" : "WEB",
"url" : "https://github.com/aws/aws-advanced-go-wrapper/commit/7b405f95fe71db644cd8336ba5fa28b41e89d03e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aws/aws-advanced-go-wrapper"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-470" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-11-13T22:22:34Z",
"nvd_published_at" : null
}
}