AWS Advanced Go Wrapper: Privilege Escalation in Aurora PostgreSQL InstanceGHSA-7wq2-32h4-9hc9
HIGHFix: aws/aws-advanced-go-wrapper#270GHSA-7wq2-32h4-9hc9 is a high-severity (CVSS 8) vulnerability in github.com/aws/aws-advanced-go-wrapper/awssql. A fix is available for github.com/aws/aws-advanced-go-wrapper/awssql — see the affected versions and patch details below.
Real-World Exposure
github.com/aws/aws-advanced-go-wrapper/awssql🐹github.com/aws/aws-advanced-go-wrapper/auth-helpers🐹github.com/aws/aws-advanced-go-wrapper/aws-secrets-manager🐹github.com/aws/aws-advanced-go-wrapper/federated-auth🐹github.com/aws/aws-advanced-go-wrapper/iam🐹github.com/aws/aws-advanced-go-wrapper/mysql-driver🐹github.com/aws/aws-advanced-go-wrapper/okta🐹github.com/aws/aws-advanced-go-wrapper/otlp+2 moreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
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.
We recommend customers upgrade to the following versions: AWS Go Wrapper to 2025-10-17
Source of Vulnerability Report:
Allistair Ishmael Hakim [email protected]
Affected products & versions:
AWS Go Wrapper < 2025-10-17
Platforms:
MacOS/Windows/Linux
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/aws/aws-advanced-go-wrapper/awssql | all versions | 1.1.1go get github.com/aws/aws-advanced-go-wrapper/awssql@v1.1.1 |
| 🐹Go | github.com/aws/aws-advanced-go-wrapper/auth-helpers | all versions | 1.0.2go get github.com/aws/aws-advanced-go-wrapper/auth-helpers@v1.0.2 |
| 🐹Go | github.com/aws/aws-advanced-go-wrapper/aws-secrets-manager | all versions | 1.0.2go get github.com/aws/aws-advanced-go-wrapper/aws-secrets-manager@v1.0.2 |
| 🐹Go | github.com/aws/aws-advanced-go-wrapper/federated-auth | all versions | 1.0.2go get github.com/aws/aws-advanced-go-wrapper/federated-auth@v1.0.2 |
| 🐹Go | github.com/aws/aws-advanced-go-wrapper/iam | all versions | 1.0.2go get github.com/aws/aws-advanced-go-wrapper/iam@v1.0.2 |
| 🐹Go | github.com/aws/aws-advanced-go-wrapper/mysql-driver | all versions | 1.0.2go get github.com/aws/aws-advanced-go-wrapper/mysql-driver@v1.0.2 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/aws/aws-advanced-go-wrapper/awssql, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/aws/aws-advanced-go-wrapper/awssql to 1.1.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-7wq2-32h4-9hc9 is resolved across your whole dependency graph.
Workarounds
Close the privilege gap rather than the entry point: audit which accounts, roles and service identities can reach the affected operation, drop the component to the least privilege it actually needs, and review file and directory permissions created by earlier installs — a default left in place is what makes this reachable.
Frequently Asked Questions
Is GHSA-7wq2-32h4-9hc9 in your dependencies?
Find it across Go, including transitive dependencies.