Skip to main content

PostgreSQL CVE-2026-116310

| EUVDEUVD-2026-124490 MEDIUM
Use After Free (CWE-416)
2026-11-12 PostgreSQL GHSA-ph4f-5226-ph6w
4.3
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with database account
  2. Delivery
    Invoke COPY FROM (or file_fdw on v18)
  3. Exploit
    Submit row with ignored conversion error
  4. Execution
    Follow with longer input row triggering UAF
  5. Impact
    Read and disclose freed server memory

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated database user (PR:L) with the ability to run COPY FROM, or on affected version 18 to use the file_fdw foreign-data wrapper, which reaches the same error-reporting code path. The specific trigger is a crafted input stream containing a conversion error that is ignored or nullified, immediately followed by a longer input row, which drives the use-after-free in COPY FROM error reporting. Limiting factors: it is not remote-unauthenticated (a valid database login is needed), impact is confined to disclosure of portions of server memory with no integrity or availability effect, and only PostgreSQL 17.x and 18.x before 18.7 and 17.12 are affected - versions before 17 are not vulnerable. The exact contents leaked depend on process memory layout and are not attacker-controlled per the available sources.

Impact

This is a moderate-severity, authenticated information-disclosure flaw, not a high-urgency emergency. The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N, base 4.3) is internally consistent with the description: PR:L reflects that a legitimate database user is required, and C:L/I:N/A:N correctly captures partial memory disclosure with no integrity or availability impact. No EPSS score, no CISA KEV listing, and no PoC reference are present in the input, so exploitation status is 'no public exploit identified at time of analysis.' The vuln.today decision label is 'this_month' (not act_now/emergency), which aligns with the picture: a real but bounded issue that warrants patching on a normal cycle rather than crisis response. The main caveat is a signal conflict in the metadata - the Tags assert 'Denial Of Service' and 'Memory Corruption,' yet the CVSS vector shows A:N (no availability impact) and the description describes only reading/disclosing memory via a use-after-free, i.e. information disclosure rather than DoS or write-style corruption; treat the DoS tag as unsupported by the available evidence. Overall this is a genuine but low-to-moderate priority issue requiring an existing database account.

Exploit ScenarioDerived

An attacker who already holds a database account (or a role able to run COPY FROM, or to use file_fdw on affected version 18) submits input to COPY FROM where a conversion error is ignored or nullified and is then followed by a longer input row, triggering the use-after-free in error reporting. The resulting error path reads freed/adjacent server memory and surfaces portions of it back to the user, leaking fragments of process memory. No public exploit code is identified in the provided sources.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 12, 2026

An authenticated database user on PostgreSQL 17.x or 18.x can disclose fragments of server memory through a use-after-free in the COPY FROM error-reporting path. The trigger is a crafted input stream in which a conversion error is ignored or nullified and is immediately followed by a longer input row; on version 18 the same code path is reachable through the file_fdw foreign-data wrapper. Fixed minor releases are PostgreSQL 18.7 and 17.12, versions before 17 are unaffected, and no public exploit identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade to PostgreSQL 18.7 on the 18.x branch or PostgreSQL 17.12 on the 17.x branch - these are the fixed minor releases for this issue, and installations older than the 17 branch need no action. Apply the relevant minor-version update and restart the server, and consult the vendor advisory at https://www.postgresql.org/support/security/CVE-2026-116310/ for the authoritative version matrix. Exposure is bounded by the assessed prerequisites: a valid database login with the ability to run COPY FROM, or on affected 18.x releases the use of the file_fdw foreign-data wrapper, so environments that do not grant either capability to untrusted roles carry materially lower risk while the upgrade is scheduled.

Affected VersionsENISA

PostgreSQL 18 <18.7
PostgreSQL 17 <17.12

Affected Packages

euvd postgresql fix: 17.12, 18.7

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

The flaw is a use-after-free (CWE-416) in PostgreSQL's COPY FROM error-reporting logic. When a row conversion error is ignored or nullified, the error-reporting path holds a reference to a buffer that is freed, and a subsequent longer input row causes that stale reference to be read back, leaking portions of process memory into what the user observes. The assessed vector is CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - reachable over the network by an authenticated principal (PR:L) with no user interaction and no integrity or availability impact, with confidentiality limited to whatever resides in the affected memory. Because copy errors surface in server-side error reporting, the affected surface is the server process handling the COPY operation, and on PostgreSQL 18 the file_fdw foreign-data wrapper reaches the same error-reporting code path, widening the set of ways the bug can be triggered within that major version. Versions before 17 are explicitly not affected, as the vulnerable code does not exist in that form.

Know when PostgreSQL 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 (PostgreSQL) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 4.3 MEDIUM

A valid database user is required so PR:L; the flaw is network-reachable with a straightforward input trigger (AV:N/AC:L), yielding only partial memory disclosure (C:L, I:N, A:N).

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

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
Nov 12, 2026 - 15:02 EUVD
CVE Published
Nov 12, 2026 - 14:15 cve.org
MEDIUM 4.3

DescriptionCVE.org

Use after free in PostgreSQL COPY FROM error reporting allows a database user to disclose portions of server memory, via a longer input row following an ignored or nullified conversion error. file_fdw reaches the same code path in affected version 18. Within major versions 17-18, minor versions before PostgreSQL 18.7 and 17.12 are affected. Versions before PostgreSQL 17 are unaffected.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
High
PostgreSQL is a widely deployed enterprise and cloud database platform
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

Vendor StatusVendor

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