CVE-2026-139820 - Relative path traversal in AWS postgresql-logfdw
Bulletin ID: 2026-205-AWS
Scope: AWS
Content Type: Important (requires attention)
Publication Date: 12/01/2026 11:30 AM PST
Description:
postgresql-logfdw (log_fdw) is an open source PostgreSQL foreign data wrapper extension that exposes PostgreSQL log files as foreign tables that can be queried with SQL.
We identified CVE-2026-139820, an issue in the foreign table file name validation in postgresql-logfdw (log_fdw) before version 1.5. 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.
Impacted versions: < 1.5
Resolution:
This issue has been addressed in postgresql-logfdw version 1.5. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes. Users should also recreate or alter any foreign table whose file name is not a plain file name in the log directory.
Workarounds:
If you cannot upgrade immediately, revoke log_fdw privileges from non-superuser roles that should not read files outside the log directory.
References:
Acknowledgement:
We would like to thank Seyeong Lee (@qerogram) for collaborating on this issue through the coordinated vulnerability disclosure process.
Please email aws-security@amazon.com with any security questions or concerns.