CVE-2026-58139: Incorrect Authorization in duckdb duckdb-aws
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.
AI Analysis
Technical Summary
The DuckDB AWS extension contains a vulnerability that allows users with SQL execution rights to bypass security policies designed to redact AWS secrets. Specifically, invoking the load_aws_credentials function with redact_secret=false exposes plaintext AWS credentials despite the database-wide policy disallowing unredacted secrets. This enables extraction of the entire AWS credential chain, which can be used to access AWS APIs. The vulnerability affects cloud-hosted environments where DuckDB is deployed with AWS credential chains such as IMDSv2, IRSA, ECS task roles, or EC2 instance roles accessible. The CVSS 4.0 score is 6.0 (medium severity). A patch is available, and since this is a cloud service, the vendor manages remediation.
Potential Impact
An attacker with SQL execution permissions can obtain valid AWS credentials in plaintext, allowing unauthorized access to AWS resources. This compromises the confidentiality of AWS credentials and can lead to unauthorized actions within the AWS environment. The impact is particularly severe in managed environments where AWS credential chains are automatically accessible to DuckDB, increasing the risk of privilege escalation and data exposure.
Mitigation Recommendations
A patch is available for this vulnerability. Since duckdb-aws is a cloud-hosted service, the vendor manages remediation server-side. Users should verify with the vendor advisory that their environment has been updated to include the fix. Until patched, restrict SQL execution permissions to trusted users only to minimize risk.
CVE-2026-58139: Incorrect Authorization in duckdb duckdb-aws
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.
CVSS v4.0
Score 6.0medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The DuckDB AWS extension contains a vulnerability that allows users with SQL execution rights to bypass security policies designed to redact AWS secrets. Specifically, invoking the load_aws_credentials function with redact_secret=false exposes plaintext AWS credentials despite the database-wide policy disallowing unredacted secrets. This enables extraction of the entire AWS credential chain, which can be used to access AWS APIs. The vulnerability affects cloud-hosted environments where DuckDB is deployed with AWS credential chains such as IMDSv2, IRSA, ECS task roles, or EC2 instance roles accessible. The CVSS 4.0 score is 6.0 (medium severity). A patch is available, and since this is a cloud service, the vendor manages remediation.
Potential Impact
An attacker with SQL execution permissions can obtain valid AWS credentials in plaintext, allowing unauthorized access to AWS resources. This compromises the confidentiality of AWS credentials and can lead to unauthorized actions within the AWS environment. The impact is particularly severe in managed environments where AWS credential chains are automatically accessible to DuckDB, increasing the risk of privilege escalation and data exposure.
Mitigation Recommendations
A patch is available for this vulnerability. Since duckdb-aws is a cloud-hosted service, the vendor manages remediation server-side. Users should verify with the vendor advisory that their environment has been updated to include the fix. Until patched, restrict SQL execution permissions to trusted users only to minimize risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-06-29T14:13:18.385Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
- Is Cloud Service
- true
Threat ID: 6a70f79ebf32cb7a3424822a
Added to database: 08/03/2026, 20:18:38 UTC
Last enriched: 08/03/2026, 20:36:45 UTC
Last updated: 08/03/2026, 22:33:11 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.