CVE-2026-139820: Relative path traversal in AWS postgresql-logfdw

Published Dec 1, 2026
·
Updated

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.

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.

Affected Software

1 affected component
AWS postgresql-logfdw<1.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.5
  2. Operational

    Recreate or alter any foreign table whose file name is not a plain file name in the log directory.

Event History

Dec 1, 2026
CVE Published
via MITRE·07:34 PM
Data Sourced
via MITRE·07:34 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:18 PM
DescriptionSeverityWeakness
Event
via NVD·08:18 PM

Frequently Asked Questions

1

Who can exploit this issue?

An authenticated, non-superuser database user can exploit it only if they have been granted log_fdw privileges. The issue affects deployments using a version of the extension earlier than 1.5.

2

What data could be exposed?

A successful exploit can read files outside the configured log directory by using a crafted foreign-table file name. Exposure is limited to files that the database server process itself is permitted to read.

3

Is upgrading alone sufficient to remediate the issue?

Upgrade postgresql-logfdw to version 1.5 or later. Also recreate or alter any foreign table whose file name is not a plain file name in the configured log directory.

4

What can be done if an upgrade cannot be applied immediately?

Limit or remove log_fdw privileges from non-superuser users, since those privileges are required for exploitation. Review foreign tables and avoid file names that are not plain names within the configured log directory.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203