Skip to main content
EPSS 0.3%top 78%

CVE-2026-58139: Incorrect Authorization in duckdb duckdb-aws

0
Medium
VulnerabilityCVE-2026-58139cvecve-2026-58139
Published: 08/03/2026 (08/03/2026, 19:45:31 UTC)
Source: CVE Database V5
Vendor/Project: duckdb
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Affected software

duckdb

duckdb-aws

Affected versions
=0
GitHub Actionsmore threats →cve
duckdb-aws
pkg:github/duckdb-aws
Affected versions
=0

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

AILast updated: 08/15/2026, 13:47:07 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses