{"id":"CVE-2026-58139","published":"2026-08-03T19:45:31Z","modified":"2026-11-08T14:06:46Z","title":"DuckDB AWS Extension Security Policy Bypass via load_aws_credentials Procedure","vendor":"duckdb","product":"duckdb-aws","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00509,"percentile":0.36667,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/duckdb/duckdb-aws/pull/156","tags":["issue-tracking","patch"]},{"url":"https://github.com/duckdb/duckdb-aws/commit/7d04119ee8d3f8836e278f0e8cbf21827ff5338b","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/duckdb-aws-extension-security-policy-bypass-via-load-aws-credentials-procedure","tags":["third-party-advisory"]}],"priority":{"score":11.9,"factors":[{"name":"EPSS percentile","points":7.33},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"duckdb","affectedVersions":[{"vendor":"duckdb","product":"duckdb-aws","versions":["< 7d04119ee8d3f8836e278f0e8cbf21827ff5338b"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-03T21:07:40.214373Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-52417","exploited":false,"provenance":"source"}}