CVE-2026-139820
Relative path traversal in AWS postgresql-logfdw
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.
Fixes and workarounds
Fix
The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.
Source: CNA: AMZNFix
logfdw: GitHub reports patched versions 1.5. Check the advisory for the affected release branch.
Source: GitHub GHSA-g66r-x2r6-3pvcAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| postgresql-logfdw AWS |
≥ 0; < 1.5 (affected, custom)
Other versions: unaffected |
CNA: AMZN |
logfdwlogfdw
|
< 1.5 (affected, GitHub advisory range) | GitHub GHSA-g66r-x2r6-3pvc |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 6.5 medium |
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N | CNA: AMZN |
| 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 | CNA: AMZN |
| 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 | NVD: ff89ba41-3aa1-4d27-914a-91399e9639e5 |
| 3.1 / 6.5 medium |
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N | NVD: ff89ba41-3aa1-4d27-914a-91399e9639e5 |
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.5CNA: AMZN · release-notes, patch
- https://github.com/aws/postgresql-logfdw/security/advisories/GHSA-g66r-x2r6-3pvcCNA: 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.5ff89ba41-3aa1-4d27-914a-91399e9639e5
- https://github.com/aws/postgresql-logfdw/security/advisories/GHSA-g66r-x2r6-3pvcff89ba41-3aa1-4d27-914a-91399e9639e5
- https://github.com/aws/postgresql-logfdw/security/advisories/GHSA-g66r-x2r6-3pvcGitHub Security Advisories · advisory
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.