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

Published Aug 3, 2026
·
Updated

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 loadawscredentials function with the redactsecret parameter set to false, circumventing the database-wide allowunredactedsecrets=false policy. Attackers can invoke this single function to retrieve the underlying AWS credential chain including accesskeyid, secretaccesskey, sessiontoken, and region in plaintext, which are immediately valid against AWS APIs and particularly impactful in managed environments where pgduckdb is preloaded and an AWS credential chain such as IMDSv2, IRSA, ECS task role, or EC2 instance role is reachable.

Affected Software

1 affected component
DuckDB AWS extension for DuckDB

Event History

Aug 3, 2026
CVE Published
via MITRE·07:45 PM
Data Sourced
via MITRE·07:45 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-58139?

The severity of CVE-2026-58139 is medium with a CVSS score of 6.5.

2

How do I fix CVE-2026-58139?

To fix CVE-2026-58139, ensure that the load_aws_credentials function does not have its redact_secret parameter set to false when called.

3

What impact does CVE-2026-58139 have?

CVE-2026-58139 allows malicious database users to extract plaintext AWS credentials, posing a significant security risk.

4

Which software is affected by CVE-2026-58139?

CVE-2026-58139 affects the DuckDB AWS extension for DuckDB.

5

Who is impacted by CVE-2026-58139?

Any user with SQL execution permissions in a DuckDB database is potentially impacted by CVE-2026-58139.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203