CVE-2026-139820 — AWS postgresql-logfdw
Summary
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.
Severity breakdown
High · 7.1
An attacker with a normal user account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- yes, a normal user account
- User action needed
- no
- Impact
- high on confidentiality, none on integrity and availability
- Impact on other systems
- none
Weakness
- CWE-23: Relative Path Traversal
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| AWS postgresql-logfdw | < 1.5 | 1.5 |
References by type
Vendor advisories
Patches and fixed releases
Other references
Affected
- AWS postgresql-logfdw
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-139820?
Relative path traversal in the foreign table file name validation in the AWS postgresql-logfdw (logfdw) extension before version 1.5 allows an authenticated non-superuser user who has been granted logfdw 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. Weakness type: Relative Path Traversal (CWE-23).
How severe is CVE-2026-139820?
CVE-2026-139820 has a CVSS 4.0 base score of 7.1 (high), from the CNA. An attacker with a normal user account can exploit this over the network, without any user action.
Is CVE-2026-139820 being exploited?
Not as far as is known: CVE-2026-139820 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026.
Which versions are affected by CVE-2026-139820?
AWS postgresql-logfdw < 1.5 (fixed in 1.5).
How do I fix CVE-2026-139820?
Update to a fixed release: AWS postgresql-logfdw 1.5.
Timeline & sources
- AWS Security Bulletins: CVE-2026-139820 - Relative path traversal in AWS postgresql-logfdw
- NVD: CVE-2026-139820 — AWS postgresql-logfdw
References
Related vulnerabilities & news
- Issue with Language Servers for AWS - MCP consent, command execution and workspace boundary issues (CVE-2026-137931, CVE-2026-137932, CVE-2026-137933, CVE-2026-137934, CVE-2026-137935)
- CVE-2026-137935 — AWS language-servers
- AWS Language Servers Vulnerability Allows Arbitrary Code Execution
- AWS Language Servers Code Review Tool Vulnerable to OS Command Injection
- AWS Language Servers Vulnerable to Code Execution via Incomplete Consent Check