{"id":"CVE-2026-58139","aliases":["CVE-2026-58139"],"related":[],"kind":"vulnerability","state":"published","title":"DuckDB AWS Extension Security Policy Bypass via load_aws_credentials Procedure","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 instance role is reachable.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-08-03T19:45:31.730Z","modified":"2026-11-08T14:06:46.560Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":6,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":6,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"type":"git","introduced":"0","fixed":"7d04119ee8d3f8836e278f0e8cbf21827ff5338b","status":"affected"}],"vendor":"duckdb","product":"duckdb-aws","repo":"https://github.com/duckdb/duckdb-aws","source":"cvelist"}],"references":[{"url":"https://github.com/duckdb/duckdb-aws/pull/156","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/duckdb/duckdb-aws/commit/7d04119ee8d3f8836e278f0e8cbf21827ff5338b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/duckdb-aws-extension-security-policy-bypass-via-load-aws-credentials-procedure","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Mehmet Ince (@mdisec)"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-03T21:07:40.214Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-58139","url":"https://www.cve.org/CVERecord?id=CVE-2026-58139","licence":"CVE Terms of Use","modified":"2026-11-08T14:06:46.560Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-58139","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58139","licence":"Public domain","modified":"2026-10-23T21:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:30.893Z","epss":{"score":0.00292,"percentile":0.23484,"date":"2026-12-01T12:00:22.000Z"}}