6.0medium
DuckDB AWS Extension Security Policy Bypass via load_aws_credentials Procedure
- Severity
- 6.0medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| duckdb duckdb-aws | before 7d04119ee8d3f8836e278f0e8cbf21827ff5338b | CVE List |
All scores
| VulnCheck | 6.0medium CVSS:4.0 | 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 |
| VulnCheck | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
La extensión DuckDB AWS para DuckDB contiene una vulnerabilidad de omisión de política de seguridad que permite a cualquier usuario de base de datos con permisos de ejecución de SQL extraer credenciales de AWS en texto plano llamando a la función load_aws_credentials con el parámetro redact_secret establecido en false, eludiendo la política allow_unredacted_secrets=false a nivel de base de datos. Los atacantes pueden invocar esta única función para recuperar la cadena de credenciales de AWS subyacente, incluyendo access_key_id, secret_access_key, session_token y region en texto plano, las cuales son inmediatamente válidas contra las API de AWS y particularmente impactantes en entornos gestionados donde pg_duckdb está precargado y una cadena de credenciales de AWS como IMDSv2, IRSA, rol de tarea de ECS o rol de instancia de EC2 es accesible.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-58139 changed 2026-11-08 | CVE Terms of Use |
| NVD | CVE-2026-58139 changed 2026-10-23 | Public domain |