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 for DuckDB contains a vulnerability that allows users with SQL execution permissions to bypass security policies and extract plaintext AWS credentials by invoking the load_aws_credentials function with redact_secret=false. This bypass circumvents the allow_unredacted_secrets=false policy, exposing the full AWS credential chain (access_key_id, secret_access_key, session_token, and region). These credentials are valid for immediate use against AWS APIs, increasing risk in environments where AWS credential chains are accessible, such as those using IMDSv2, IRSA, ECS task roles, or EC2 instance roles. The vulnerability affects the cloud service version of duckdb-aws. A patch is available and remediation is managed by the vendor.
Potential Impact
An attacker with SQL execution permissions can extract valid plaintext AWS credentials from the DuckDB AWS extension, enabling unauthorized access to AWS resources. This can lead to unauthorized actions within AWS environments, especially in managed setups where AWS credential chains are accessible. The exposure of access_key_id, secret_access_key, session_token, and region directly compromises AWS API security.
Mitigation Recommendations
The vendor manages remediation for this cloud-hosted service and has made a patch available. Users should ensure they apply the vendor's official updates or patches to mitigate this vulnerability. Check the vendor advisory for the latest remediation guidance.
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
duckdb
duckdb-aws
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 for DuckDB contains a vulnerability that allows users with SQL execution permissions to bypass security policies and extract plaintext AWS credentials by invoking the load_aws_credentials function with redact_secret=false. This bypass circumvents the allow_unredacted_secrets=false policy, exposing the full AWS credential chain (access_key_id, secret_access_key, session_token, and region). These credentials are valid for immediate use against AWS APIs, increasing risk in environments where AWS credential chains are accessible, such as those using IMDSv2, IRSA, ECS task roles, or EC2 instance roles. The vulnerability affects the cloud service version of duckdb-aws. A patch is available and remediation is managed by the vendor.
Potential Impact
An attacker with SQL execution permissions can extract valid plaintext AWS credentials from the DuckDB AWS extension, enabling unauthorized access to AWS resources. This can lead to unauthorized actions within AWS environments, especially in managed setups where AWS credential chains are accessible. The exposure of access_key_id, secret_access_key, session_token, and region directly compromises AWS API security.
Mitigation Recommendations
The vendor manages remediation for this cloud-hosted service and has made a patch available. Users should ensure they apply the vendor's official updates or patches to mitigate this vulnerability. Check the vendor advisory for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-06-29T14:13:18.385Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Is Cloud Service
- true
Threat ID: 6a70f79ebf32cb7a3424822a
Added to database: 08/03/2026, 20:18:38 UTC
Last enriched: 08/15/2026, 13:47:07 UTC
Last updated: 09/17/2026, 22:01:36 UTC
Views: 44
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.