Vulnerability
Published 2026-12-02 New
Verified 2026-12-02

AWS postgresql-logfdw (log_fdw) CVE-2026-139820: a non-superuser role with log_fdw privileges might read files outside the log directory; fixed in 1.5

AWS said in security bulletin 2026-205-AWS, published 1 December 2026 at 11:30 AM PST (2 Dec 03:30 Perth) and rated Important (requires attention), that CVE-2026-139820 is an issue in the foreign table file name validation in postgresql-logfdw (log_fdw), an open source PostgreSQL foreign data wrapper extension that exposes PostgreSQL log files as foreign tables (source: AWS).

AWS says a non-superuser role that has been granted log_fdw privileges might be able to read files outside the configured log directory that are readable by the database server process by supplying a crafted foreign table file name, and lists versions before 1.5 as impacted (source: AWS).

The CVE record, published by AWS, scores the flaw CVSS 3.1 6.5 (Medium) and CVSS 4.0 7.1 (High) (source: CVE record). AWS credits Seyeong Lee (@qerogram) with reporting the issue through coordinated vulnerability disclosure (source: AWS).

Product
postgresql-logfdw (log_fdw) — open source PostgreSQL foreign data wrapper extension for reading PostgreSQL log files
Versions
Per AWS: before 1.5 (< 1.5)
CVSS
Exploited in Australia?
unknown
Patch to
Per AWS (as of 2 Dec): postgresql-logfdw 1.5; ensure any forked or derivative code incorporates the fixes, and recreate or alter any foreign table whose file name is not a plain file name in the log directory. Workaround: revoke log_fdw privileges from non-superuser roles that should not read files outside the log directory.

vulnerabilities cloud