Vulnerabilities in pkg:golang/github.com/aws/aws-advanced-go-wrapper/awssql

PACKAGE
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/aws/aws-advanced-go-wrapper/awssql

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/aws/aws-advanced-go-wrapper/awssql. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-7wq2-32h4-9hc9 - HIGH AWS Advanced Go Wrapper: Privilege Escalation in Aurora PostgreSQL Instance

GHSA-7wq2-32h4-9hc9 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-7wq2-32h4-9hc9
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 Go Wrapper
Package Ecosystem Go
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-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.

github.com/aws/aws-advanced-go-wrapper/awssql fixed: 1.1.1
Upgrade github.com/aws/aws-advanced-go-wrapper/awssql to 1.1.1
github.com/aws/aws-advanced-go-wrapper/auth-helpers fixed: 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/auth-helpers to 1.0.2
github.com/aws/aws-advanced-go-wrapper/aws-secrets-manager fixed: 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/aws-secrets-manager to 1.0.2
github.com/aws/aws-advanced-go-wrapper/federated-auth fixed: 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/federated-auth to 1.0.2
github.com/aws/aws-advanced-go-wrapper/iam fixed: 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/iam to 1.0.2
github.com/aws/aws-advanced-go-wrapper/mysql-driver fixed: 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/mysql-driver to 1.0.2
github.com/aws/aws-advanced-go-wrapper/okta fixed: 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/okta to 1.0.2
github.com/aws/aws-advanced-go-wrapper/otlp fixed: 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/otlp to 1.0.2
github.com/aws/aws-advanced-go-wrapper/pgx-driver fixed: 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/pgx-driver to 1.0.2
github.com/aws/aws-advanced-go-wrapper/xray fixed: 1.0.2
Upgrade github.com/aws/aws-advanced-go-wrapper/xray to 1.0.2
Verify Direct and Transitive Dependencies

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

### 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 [allistair.hakim@gmail.com](mailto:allistair.hakim@gmail.com) ### Affected products & versions: AWS Go Wrapper < 2025-10-17 ### Platforms: MacOS/Windows/Linux

GHSA-7wq2-32h4-9hc9 Affected AWS Advanced Go Wrapper Versions

10 component(s)
Fixed Versions:
1.1.11.0.2
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?
GHSA-7wq2-32h4-9hc9 is a security vulnerability in AWS Advanced Go 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 Go Wrapper versions are affected?
Affected versions include releases prior to 1.1.1, 1.0.2 across affected packages: 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, github.com/aws/aws-advanced-go-wrapper/pgx-driver, github.com/aws/aws-advanced-go-wrapper/xray.
What version fixes GHSA-7wq2-32h4-9hc9?
Upgrading to 1.1.1, 1.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/aws/aws-advanced-go-wrapper/awssql affected?
Yes, github.com/aws/aws-advanced-go-wrapper/awssql is affected in releases prior to 1.1.1. Upgrade your dependency to 1.1.1 or later.
Is github.com/aws/aws-advanced-go-wrapper/auth-helpers affected?
Yes, github.com/aws/aws-advanced-go-wrapper/auth-helpers is affected in releases prior to 1.0.2. Upgrade your dependency to 1.0.2 or later.
What is the CVSS score of GHSA-7wq2-32h4-9hc9?
GHSA-7wq2-32h4-9hc9 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-7wq2-32h4-9hc9?
GHSA-7wq2-32h4-9hc9 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 Go dependencies for GHSA-7wq2-32h4-9hc9?
Run the dependency tree command: 'inspect dependencies for github.com/aws/aws-advanced-go-wrapper/awssql'. 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-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
  }
}