CVE-2026-58139: DuckDB AWS Extension Security Policy Bypass via load_aws_credentials Procedure
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
Event History
Frequently Asked Questions
What is the severity of CVE-2026-58139?
The severity of CVE-2026-58139 is medium with a CVSS score of 6.5.
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.
What impact does CVE-2026-58139 have?
CVE-2026-58139 allows malicious database users to extract plaintext AWS credentials, posing a significant security risk.
Which software is affected by CVE-2026-58139?
CVE-2026-58139 affects the DuckDB AWS extension for DuckDB.
Who is impacted by CVE-2026-58139?
Any user with SQL execution permissions in a DuckDB database is potentially impacted by CVE-2026-58139.