# CVE-2026-58139: DuckDB AWS Extension Security Policy Bypass via load_aws_credentials Procedure

- Severity: Medium 6.0 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-08-03T19:45:31.730Z
- Modified: 2026-11-08T14:06:46.560Z
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

The DuckDB AWS extension for DuckDB contains a security policy bypass vulnerability that allows any database user with SQL execution permissions to extract plaintext AWS credentials by calling the load_aws_credentials function with the redact_secret parameter set to false, circumventing the database-wide allow_unredacted_secrets=false policy. Attackers can invoke this single function to retrieve the underlying AWS credential chain including access_key_id, secret_access_key, session_token, and region in plaintext, which are immediately valid against AWS APIs and particularly impactful in managed environments where pg_duckdb is preloaded and an AWS credential chain such as IMDSv2, IRSA, ECS task role, or EC2 instance role is reachable.

(As written by CVE List.)

## Affected

- duckdb duckdb-aws: before 7d04119ee8d3f8836e278f0e8cbf21827ff5338b

## Every score

- VulnCheck: CVSS:4.0 6.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/duckdb/duckdb-aws/pull/156> (issue-tracking, patch)
- <https://github.com/duckdb/duckdb-aws/commit/7d04119ee8d3f8836e278f0e8cbf21827ff5338b> (patch)
- <https://www.vulncheck.com/advisories/duckdb-aws-extension-security-policy-bypass-via-load-aws-credentials-procedure> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-58139](https://www.cve.org/CVERecord?id=CVE-2026-58139), CVE Terms of Use, modified 2026-11-08
- NVD: [CVE-2026-58139](https://nvd.nist.gov/vuln/detail/CVE-2026-58139), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-58139 · Whole record: https://cve.day/CVE-2026-58139.json · Rebuilt by cve.day 2026-11-25T22:59:30.893Z
