PatchSiren cyber security CVE debrief
CVE-2026-58139 duckdb CVE debrief
The CVE-2026-58139 vulnerability in the DuckDB AWS extension 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. This security policy bypass can be 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. Defenders should assess exposure and prioritize verifying the presence of the vulnerable extension and restricting access to sensitive AWS credentials. The CVE record was published on 2026-08-03T20:17:25.220Z and has not been altered
- Vendor
- duckdb
- Product
- duckdb-aws
- CVSS
- MEDIUM 6
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-08-03
- Original CVE updated
- 2026-09-09
- Advisory published
- 2026-08-03
- Advisory updated
- 2026-09-09
Who should care
Defenders responsible for managing and securing DuckDB instances with the AWS extension should assess exposure and take action to restrict access to sensitive AWS credentials. This includes verifying the presence of the vulnerable extension, restricting access to sensitive AWS credentials, and monitoring for suspicious activity related to AWS credential extraction. Additionally, defenders should prioritize verifying the presence of the vulnerable extension
Why it matters
The CVE-2026-58139 vulnerability in the DuckDB AWS extension allows users with SQL execution permissions to extract plaintext AWS credentials, which can be used to access AWS APIs. Defenders should prioritize verifying the presence of the vulnerable extension and restricting access to sensitive AWS credentials.
- Defenders need to verify the presence of the vulnerable DuckDB AWS extension and restrict access to sensitive AWS credentials to prevent unauthorized extraction.
- The vulnerability allows users with SQL execution permissions to extract plaintext AWS credentials, which can be used to access AWS APIs.
- Defenders should prioritize verifying the presence of the vulnerable extension and restricting access to sensitive AWS credentials to prevent potential security breaches.
Technical summary
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 inst
Defensive priority
Defenders should prioritize verifying the presence of the vulnerable DuckDB AWS extension and restricting access to sensitive AWS credentials.
Recommended defensive actions
- Verify the presence of the vulnerable DuckDB AWS extension in your environment
- Restrict access to sensitive AWS credentials
- Monitor for suspicious activity related to AWS credential extraction
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The CVE record and source references indicate a security policy bypass vulnerability in the DuckDB AWS extension. The vulnerability allows users with SQL execution permissions to extract plaintext AWS credentials.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-58139 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-58139
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-58139 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-58139
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/duckdb/duckdb-aws/commit/7d04119ee8d3f8836e278f0e8cbf21827ff5338b
-
Source reference
Unverified legacy reference
URL: https://github.com/duckdb/duckdb-aws/pull/156
-
Source reference
Unverified legacy reference
URL: https://www.vulncheck.com/advisories/duckdb-aws-extension-security-policy-bypass-via-load-aws-credentials-procedure
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.