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

- Severity: High 7.1 (CVSS:4.0, scored by AMZN) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T19:34:47.898Z
- Modified: 2026-12-01T20:18:59.797Z
- Weaknesses: CWE-23
- Assigned by: AMZN

## Description

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.

(As written by CVE List.)

## Affected

- AWS postgresql-logfdw: before 1.5

## Every score

- AMZN: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- AMZN: CVSS:4.0 7.1 High `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`

## References

- <https://github.com/aws/postgresql-logfdw/releases/tag/v1.5> (patch, release-notes)
- <https://github.com/aws/postgresql-logfdw/security/advisories/GHSA-g66r-x2r6-3pvc> (third-party-advisory)
- <https://aws.amazon.com/security/security-bulletins/2026-205-aws/> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-139820](https://www.cve.org/CVERecord?id=CVE-2026-139820), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-139820](https://nvd.nist.gov/vuln/detail/CVE-2026-139820), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-139820 · Whole record: https://cve.day/CVE-2026-139820.json · Rebuilt by cve.day 2026-12-01T20:32:59.463Z
