Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as granted log_fdw role
-
ExploitDefine foreign table with traversal file name
-
ExecutionQuery table to read out-of-directory file
-
ImpactExfiltrate server config/secrets
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Relative path traversal prevention
|
| Exploitation Conditions | Exploitation requires an authenticated non-superuser PostgreSQL role that an operator has explicitly GRANTED log_fdw privileges, and the log_fdw (postgresql-logfdw) extension at version <1.5 must be installed and in use. The attacker supplies a crafted foreign table file name that is not a plain file name in the configured log directory, using relative path traversal. Exploitation is strictly limited to reading files that the database server process already has OS-level permission to read - no write/integrity impact and no availability impact - so the realistic prize is server configuration files or other DB-process-readable data. The principal limiting factors are the required prior grant of log_fdw privileges (not held by default) and the file-permission boundary of the server process; AWS's listed workaround is to revoke log_fdw privileges from roles that should not read outside the log directory. |
| Impact | This is a moderate, access-gated information-disclosure flaw rather than a drop-everything emergency. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N) scores 7.1 and correctly reflects a network-reachable but privilege-gated issue: PR:L means the attacker must already be an authenticated non-superuser who has specifically been granted log_fdw privileges, which an operator must deliberately bestow. Confidentiality impact is high (VC:H) but integrity and availability are untouched (VI:N/VA:N), and reads are further bounded to files the database server process can already access. The vuln.today decision label is 'this_week' (not act_now or emergency), there is no CISA KEV listing and no EPSS score in the input, and no public exploit is identified - consistent with a real but prioritizable issue driven by vendor (AWS/AMZN) coordinated disclosure rather than observed in-the-wild abuse. Note the ceiling on impact: the attacker reads only what the DB process can read, so exposure of server configuration files or secrets depends on local file permissions. Missing data: EPSS and KEV are absent (absence is expected, not an error), so widespread-exploitation likelihood cannot be quantified from the input. |
| Exploit ScenarioDerived | An authenticated PostgreSQL user who has been granted log_fdw privileges creates or alters a log_fdw foreign table using a crafted, non-plain file name containing relative path traversal, then queries that table via SQL to read files outside the configured log directory (for example server configuration files) that the database server process can read. No public exploit code is identified at time of analysis, and the read is limited to files accessible to the DB server process. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Relative path traversal in the AWS postgresql-logfdw (log_fdw) PostgreSQL extension before version 1.5 allows an authenticated non-superuser database role that has been explicitly granted log_fdw privileges to read files outside the configured log directory by supplying a crafted foreign table file name. Exposure is bounded by the operating-system permissions of the database server process, so the practical target is server configuration files and other data the postgres backend can already read; there is no write, integrity, or availability impact. No public exploit code was identified at time of analysis and the issue is not listed as actively exploited, making this a moderate, access-gated information-disclosure flaw rather than an emergency.
RemediationAI
Upgrade postgresql-logfdw (log_fdw) to version 1.5 or later via the upstream release at https://github.com/aws/postgresql-logfdw/releases/tag/v1.5; vendor-released patch: 1.5. Upgrading the extension alone is not sufficient - the advisory also requires recreating or altering any foreign table whose file name is not a plain file name in the log directory, since a previously crafted table definition would remain in place. If an immediate upgrade is not possible, AWS's documented workaround is to revoke log_fdw privileges from any non-superuser roles that should not read files outside the log directory, with the trade-off that those roles lose legitimate log-reading capability; there is no other documented mitigation. Confirm the applied fix against the GHSA advisory at https://github.com/aws/postgresql-logfdw/security/advisories/GHSA-g66r-x2r6-3pvc and the AWS bulletin at https://aws.amazon.com/security/security-bulletins/2026-205-aws/, and note that forked or derivative copies of the extension must be patched separately.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
log_fdw is an open source PostgreSQL foreign data wrapper extension maintained by AWS that exposes PostgreSQL log files as foreign tables queryable with ordinary SQL. The root cause is CWE-23 (relative path traversal): the extension validates the file name supplied when creating a foreign table against the configured log directory, but that validation does not adequately reject relative path components, so a file name containing traversal sequences resolves outside the log directory. Because the file is opened by the PostgreSQL server process, the reachable set is exactly what that process's OS-level account can read - typically configuration files, certificates, or other server-readable data - and nothing more; the CPE cpe:2.3:a:aws:postgresql-logfdw:*:*:*:*:*:*:*:* with the EUVD range 'postgresql-logfdw 0 < 1.5' defines the affected surface. The prerequisite is significant: the attacker must already hold an authenticated non-superuser role that an operator has granted log_fdw privileges to, which is not a default grant, and must be able to create or alter a foreign table using a crafted file name. The upstream fix in release 1.5 hardens the file name check; the public v1.5 changelog itself lists unrelated items, so the security fix is documented in the GHSA-g66r-x2r6-3pvc advisory rather than the release notes.
Know when AWS gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Network-reachable SQL interface (AV:N), but requires a granted non-superuser log_fdw privilege (PR:L); read-only arbitrary-file disclosure bounded by DB process permissions gives C:H, I:N, A:N.
Primary rating from Vendor (AMZN).
CVSS VectorVendor: AMZN
Lifecycle Timeline
3DescriptionCVE.org
Relative path traversal in the foreign table file name validation in the AWS postgresql-logfdw (log_fdw) extension before version 1.5 allows an authenticated non-superuser user who has been granted log_fdw privileges to read files outside the configured log directory via a crafted foreign table file name. The user can only read files that the database server process has permission to read.
To remediate this issue, users should upgrade to version 1.5 or later and recreate or alter any foreign table whose file name is not a plain file name in the log directory.
Technical POC Analysis
CWE-23 (relative path traversal) in the foreign table file name validation of the logfdw PostgreSQL extension.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-139820 is a high-severity vulnerability in the AWS log_fdw PostgreSQL extension (before version 1.5) that allows an authenticated non-superuser database role with explicitly granted log_fdw privileges to read files outside the intended log directory. Only organizations that have deployed this extension and granted those privileges are affected, but exposure is limited to data the database server process can already read, with no write or availability impact. Leadership should care because this could lead to unauthorized access to sensitive server configuration files, underscoring the need for timely patching and strict privilege management.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Loom for AWS deployments running a version before 1.6.1 with no identity provider configured expose an unauthenticated s
Unauthorized data access in Budibase low-code platform before 3.30.4 allows unauthenticated users to manipulate internal
Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar
Multiple vulnerabilities in ASTPP 4.0.1 including XSS and command injection in SIP device configuration and plugin manag
Broken access control in the VitaFit cloud API before the 2026-10-30 fix lets any authenticated account holder call POST
Remote code execution in Amazon awslabs postgres-mcp-server before 1.1.7 lets remote actors run arbitrary OS commands on
Remote code execution in AWS AgentCore CLI before v0.14.2 allows authenticated attackers to inject Python code via craft
Denial of service in the aws-smithy-json Rust runtime crate (versions before 0.62.7) lets remote unauthenticated attacke
Denial of service in Amazon's aws-smithy-http-server Rust crate (versions prior to 0.66.5) lets remote unauthenticated a
Argument injection in the AWS Bedrock AgentCore Python SDK before 1.18.1 lets a remote authenticated user run arbitrary
Arbitrary file read in amazon-mq rabbitmq-aws before 0.2.1 allows authenticated remote users to read any file accessible
WAF managed-rule body inspection on AWS Application Load Balancer (ALB) can be bypassed by remote actors who fragment an
EUVD-2026-140618
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB