Skip to main content

AWS postgresql-logfdw CVE-2026-139820

| EUVDEUVD-2026-140618 HIGH
Relative Path Traversal (CWE-23)
2026-12-01 AMZN
7.1
CVSS 4.0 · Vendor: AMZN
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as granted log_fdw role
  2. Exploit
    Define foreign table with traversal file name
  3. Execution
    Query table to read out-of-directory file
  4. Impact
    Exfiltrate server config/secrets

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Relative path traversal prevention
Exploitation Conditions

Exploitation requires an authenticated non-superuser PostgreSQL role that an operator has explicitly GRANTED log_fdw privileges, and the log_fdw (postgresql-logfdw) extension at version <1.5 must be installed and in use. The attacker supplies a crafted foreign table file name that is not a plain file name in the configured log directory, using relative path traversal. Exploitation is strictly limited to reading files that the database server process already has OS-level permission to read - no write/integrity impact and no availability impact - so the realistic prize is server configuration files or other DB-process-readable data. The principal limiting factors are the required prior grant of log_fdw privileges (not held by default) and the file-permission boundary of the server process; AWS's listed workaround is to revoke log_fdw privileges from roles that should not read outside the log directory.

Impact

This is a moderate, access-gated information-disclosure flaw rather than a drop-everything emergency. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N) scores 7.1 and correctly reflects a network-reachable but privilege-gated issue: PR:L means the attacker must already be an authenticated non-superuser who has specifically been granted log_fdw privileges, which an operator must deliberately bestow. Confidentiality impact is high (VC:H) but integrity and availability are untouched (VI:N/VA:N), and reads are further bounded to files the database server process can already access. The vuln.today decision label is 'this_week' (not act_now or emergency), there is no CISA KEV listing and no EPSS score in the input, and no public exploit is identified - consistent with a real but prioritizable issue driven by vendor (AWS/AMZN) coordinated disclosure rather than observed in-the-wild abuse. Note the ceiling on impact: the attacker reads only what the DB process can read, so exposure of server configuration files or secrets depends on local file permissions. Missing data: EPSS and KEV are absent (absence is expected, not an error), so widespread-exploitation likelihood cannot be quantified from the input.

Exploit ScenarioDerived

An authenticated PostgreSQL user who has been granted log_fdw privileges creates or alters a log_fdw foreign table using a crafted, non-plain file name containing relative path traversal, then queries that table via SQL to read files outside the configured log directory (for example server configuration files) that the database server process can read. No public exploit code is identified at time of analysis, and the read is limited to files accessible to the DB server process.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Relative path traversal in the AWS postgresql-logfdw (log_fdw) PostgreSQL extension before version 1.5 allows an authenticated non-superuser database role that has been explicitly granted log_fdw privileges to read files outside the configured log directory by supplying a crafted foreign table file name. Exposure is bounded by the operating-system permissions of the database server process, so the practical target is server configuration files and other data the postgres backend can already read; there is no write, integrity, or availability impact. No public exploit code was identified at time of analysis and the issue is not listed as actively exploited, making this a moderate, access-gated information-disclosure flaw rather than an emergency.

RemediationAI

Upgrade postgresql-logfdw (log_fdw) to version 1.5 or later via the upstream release at https://github.com/aws/postgresql-logfdw/releases/tag/v1.5; vendor-released patch: 1.5. Upgrading the extension alone is not sufficient - the advisory also requires recreating or altering any foreign table whose file name is not a plain file name in the log directory, since a previously crafted table definition would remain in place. If an immediate upgrade is not possible, AWS's documented workaround is to revoke log_fdw privileges from any non-superuser roles that should not read files outside the log directory, with the trade-off that those roles lose legitimate log-reading capability; there is no other documented mitigation. Confirm the applied fix against the GHSA advisory at https://github.com/aws/postgresql-logfdw/security/advisories/GHSA-g66r-x2r6-3pvc and the AWS bulletin at https://aws.amazon.com/security/security-bulletins/2026-205-aws/, and note that forked or derivative copies of the extension must be patched separately.

Affected VersionsENISA

postgresql-logfdw 0 <1.5

Affected Packages

euvd postgresql_logfdw fix: 1.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

log_fdw is an open source PostgreSQL foreign data wrapper extension maintained by AWS that exposes PostgreSQL log files as foreign tables queryable with ordinary SQL. The root cause is CWE-23 (relative path traversal): the extension validates the file name supplied when creating a foreign table against the configured log directory, but that validation does not adequately reject relative path components, so a file name containing traversal sequences resolves outside the log directory. Because the file is opened by the PostgreSQL server process, the reachable set is exactly what that process's OS-level account can read - typically configuration files, certificates, or other server-readable data - and nothing more; the CPE cpe:2.3:a:aws:postgresql-logfdw:*:*:*:*:*:*:*:* with the EUVD range 'postgresql-logfdw 0 < 1.5' defines the affected surface. The prerequisite is significant: the attacker must already hold an authenticated non-superuser role that an operator has granted log_fdw privileges to, which is not a default grant, and must be able to create or alter a foreign table using a crafted file name. The upstream fix in release 1.5 hardens the file name check; the public v1.5 changelog itself lists unrelated items, so the security fix is documented in the GHSA-g66r-x2r6-3pvc advisory rather than the release notes.

Know when AWS gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (AMZN) PRIMARY 7.1 MEDIUM
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
vuln.today AI 6.5 MEDIUM

Network-reachable SQL interface (AV:N), but requires a granted non-superuser log_fdw privilege (PR:L); read-only arbitrary-file disclosure bounded by DB process permissions gives C:H, I:N, A:N.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (AMZN).

CVSS VectorVendor: AMZN

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Dec 01, 2026 - 20:22 NVD
MEDIUM HIGH
CVSS changed
Dec 01, 2026 - 20:22 NVD
6.5 (MEDIUM) 7.1 (HIGH)
CVE Published
Dec 01, 2026 - 19:34 cve.org
HIGH 7.1

DescriptionCVE.org

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.

Technical POC Analysis

CWE-23 (relative path traversal) in the foreign table file name validation of the logfdw PostgreSQL extension.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-139820 is a high-severity vulnerability in the AWS log_fdw PostgreSQL extension (before version 1.5) that allows an authenticated non-superuser database role with explicitly granted log_fdw privileges to read files outside the intended log directory. Only organizations that have deployed this extension and granted those privileges are affected, but exposure is limited to data the database server process can already read, with no write or availability impact. Leadership should care because this could lead to unauthorized access to sensitive server configuration files, underscoring the need for timely patching and strict privilege management.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.8%
Top 43% exploitable
Prevalence
Medium
AWS-maintained PostgreSQL extension used on RDS/Aurora PostgreSQL, common but not universal
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Partial

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in AWS

View all
CVE-2026-103956 CRITICAL POC
10.0 Oct 02

Loom for AWS deployments running a version before 1.6.1 with no identity provider configured expose an unauthenticated s

CVE-2026-27702 CRITICAL POC
9.9 Feb 25

Unauthorized data access in Budibase low-code platform before 3.30.4 allows unauthenticated users to manipulate internal

CVE-2025-64709 CRITICAL POC
9.9 Nov 13

Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar

CVE-2020-37153 CRITICAL POC
9.8 Feb 11

Multiple vulnerabilities in ASTPP 4.0.1 including XSS and command injection in SIP device configuration and plugin manag

CVE-2026-54378 CRITICAL POC
9.3 Nov 04

Broken access control in the VitaFit cloud API before the 2026-10-30 fix lets any authenticated account holder call POST

CVE-2026-87911 CRITICAL POC
9.0 Sep 09

Remote code execution in Amazon awslabs postgres-mcp-server before 1.1.7 lets remote actors run arbitrary OS commands on

CVE-2026-11393 HIGH POC
8.8 Jun 08

Remote code execution in AWS AgentCore CLI before v0.14.2 allows authenticated attackers to inject Python code via craft

CVE-2026-18140 HIGH POC
8.7 Jul 30

Denial of service in the aws-smithy-json Rust runtime crate (versions before 0.62.7) lets remote unauthenticated attacke

CVE-2026-16756 HIGH POC
8.7 Jul 23

Denial of service in Amazon's aws-smithy-http-server Rust crate (versions prior to 0.66.5) lets remote unauthenticated a

CVE-2026-16796 HIGH POC
8.4 Jul 23

Argument injection in the AWS Bedrock AgentCore Python SDK before 1.18.1 lets a remote authenticated user run arbitrary

CVE-2026-9133 HIGH POC
8.3 May 20

Arbitrary file read in amazon-mq rabbitmq-aws before 0.2.1 allows authenticated remote users to read any file accessible

CVE-2026-13763 HIGH POC
7.9 Jun 29

WAF managed-rule body inspection on AWS Application Load Balancer (ALB) can be bypassed by remote actors who fragment an

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy