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

Status: published. Published: 2026-12-01. Updated: 2026-12-02.

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.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: AMZN) — https://github.com/aws/postgresql-logfdw/releases/tag/v1.5
- fix: logfdw: GitHub reports patched versions 1.5. Check the advisory for the affected release branch. (source: GitHub GHSA-g66r-x2r6-3pvc) — https://github.com/aws/postgresql-logfdw/security/advisories/GHSA-g66r-x2r6-3pvc

## Affected products and versions

- AWS / postgresql-logfdw: ≥ 0; < 1.5 (affected, custom). Source: CNA: AMZN
-  / logfdw (logfdw): < 1.5 (affected, GitHub advisory range). Source: GitHub GHSA-g66r-x2r6-3pvc

## Severity and prioritization

- 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; source: CNA: 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; source: CNA: 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X; source: NVD: ff89ba41-3aa1-4d27-914a-91399e9639e5

- 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; source: NVD: ff89ba41-3aa1-4d27-914a-91399e9639e5

- CISA KEV: No listing in collected sources

- EPSS: 0.76% as of 2026-12-02; percentile 56.54%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-23

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/aws/postgresql-logfdw/releases/tag/v1.5 (CNA: AMZN; release-notes, patch)

- https://github.com/aws/postgresql-logfdw/security/advisories/GHSA-g66r-x2r6-3pvc (CNA: AMZN; third-party-advisory)

- https://aws.amazon.com/security/security-bulletins/2026-205-aws/ (CNA: AMZN; vendor-advisory)

- https://aws.amazon.com/security/security-bulletins/2026-205-aws/ (ff89ba41-3aa1-4d27-914a-91399e9639e5)

- https://github.com/aws/postgresql-logfdw/releases/tag/v1.5 (ff89ba41-3aa1-4d27-914a-91399e9639e5)

- https://github.com/aws/postgresql-logfdw/security/advisories/GHSA-g66r-x2r6-3pvc (ff89ba41-3aa1-4d27-914a-91399e9639e5)

- https://github.com/aws/postgresql-logfdw/security/advisories/GHSA-g66r-x2r6-3pvc (GitHub Security Advisories; advisory)

## Provenance

- CNA: AMZN: https://www.cve.org/CVERecord?id=CVE-2026-139820; retrieved 2026-12-02; source updated 2026-12-02

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-139820; retrieved 2026-12-02; source updated 2026-12-01

- GitHub Security Advisories: https://github.com/aws/postgresql-logfdw/security/advisories/GHSA-g66r-x2r6-3pvc; retrieved 2026-12-02; source updated 2026-12-01

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-139820; retrieved 2026-12-02; source updated Not reported

Revision: 0fd6ac293fd3fe561616c6bb1115f612bbfe3a33798879a6473c4ed7bd8b900d

Canonical: https://y2.dev/cve/CVE-2026-139820

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.