Skip to main content

PostgreSQL CVE-2026-116328

| EUVDEUVD-2026-124507 HIGH
Integer Overflow or Wraparound (CWE-190)
2026-11-12 PostgreSQL GHSA-38f3-w39j-87qm
8.8
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as database user
  2. Delivery
    Trigger allocation larger than 1 GB in generation context
  3. Exploit
    Free allocation and force block reuse for smaller chunks
  4. Execution
    Integer wraparound corrupts back-pointer offset
  5. Impact
    Execute arbitrary code as database OS user

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

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) who can cause a PostgreSQL generation memory context to allocate and then free a single allocation larger than 1 GB, so the freed block is reused for smaller chunks whose back-pointer offset cannot represent that position (integer wraparound). It affects major versions 16 through 18 at minor versions before 18.7, 17.12, and 16.16; versions before PostgreSQL 16 are not affected. Limiting factors: a valid database login is mandatory (no unauthenticated path), and the attacker must be able to drive multi-gigabyte allocation behavior in a generation context, which depends on query capability, workload, and sufficient memory on the host. No user interaction is required. Updating to the fixed minor versions (18.7, 17.12, 16.16) is the remediation stated by the vendor.

Impact

This is a credible, high-priority issue rather than a high-CVSS-but-low-real-risk one, though the raw score overstates how trivially it is reached. The CVSS vector (AV:N/AC:L/PR:L/UI:N) describes network reach with low complexity, but PR:L is the decisive gate: the attacker must already be an authenticated database user, so this is a privilege-escalation/RCE-from-inside primitive, not an unauthenticated internet-facing bug. For that authorized user, impact is severe - arbitrary code execution as the OS account running the database (C:H/I:H/A:H), i.e. full escape from the SQL sandbox to the host. The vuln.today decision label is 'this_week' (priority, not emergency). No EPSS score was supplied, this CVE is not listed in CISA KEV, and no public exploit or PoC reference is provided, so exploitation is currently theoretical. Signals are broadly consistent: a serious memory-safety defect (CWE-190 integer wraparound) with no evidence of active or imminent mass exploitation, warranting prompt patching driven by the PostgreSQL footprint and the need for a trusted local DB account rather than by observed in-the-wild activity.

Exploit ScenarioDerived

An authenticated database user - for example a tenant on a shared/managed PostgreSQL instance or an application account compromised via SQL injection - crafts queries that drive a generation memory context to allocate and then free a chunk larger than 1 GB, so the block is reused for smaller chunks whose back-pointer offset wraps around. By grooming this reuse the user corrupts memory to achieve arbitrary code execution as the OS user running the database. No public exploit or PoC is available at the time of analysis, and the attacker needs a valid database login.

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

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

Alert me

AnalysisAIv1 – Nov 12, 2026

Integer wraparound in PostgreSQL's generation memory context allows an authenticated database user to execute arbitrary code as the operating system account running the database server. PostgreSQL 16, 17 and 18 are affected at minor versions before 16.16, 17.12 and 18.7 respectively, while versions before 16 are unaffected; exploitation requires a valid database login and the ability to free a generation-context allocation larger than 1 GB so the block is reused for smaller chunks whose back-pointer offset cannot represent that position. No public exploit was identified at time of analysis, and the CVSS 3.1 score is 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

RemediationAI

Update to PostgreSQL 18.7, 17.12 or 16.16 according to the deployed major version; these are the fixed minor releases identified in the vendor advisory at https://www.postgresql.org/support/security/CVE-2026-116328/, and updating is the remediation stated by the vendor. No workaround is stated in the supplied references. Reachability is limited to environments where untrusted users hold database logins and can drive the multi-gigabyte allocation and free sequence in a generation memory context, but that prerequisite does not remove the need to apply the fixed minor version.

Affected VersionsENISA

PostgreSQL 18 <18.7
PostgreSQL 16 <16.16
PostgreSQL 17 <17.12

Affected Packages

euvd postgresql fix: 16.16, 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

PostgreSQL manages server-side allocations through its memory context subsystem, and a generation context allocates memory in blocks that are freed together rather than individually. This issue is an integer wraparound (CWE-190) in that generation-context code: when an allocation larger than 1 GB is freed, the block can be reused for smaller chunks whose back-pointer offset cannot represent that position, corrupting memory-management metadata. Successful corruption can be leveraged to execute arbitrary code under the operating-system user that runs the database server. The CVSS vector reflects network-reachable database access requiring a low-privileged authenticated session (PR:L), no user interaction, and high confidentiality, integrity and availability impact; the trigger conditions beyond the large-allocation free and block reuse are not further described in the available sources.

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 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

An authenticated database user (PR:L) can act remotely over the DB connection (AV:N/AC:L) to gain OS-level code execution, yielding full C/I/A impact.

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

Primary rating from Vendor (PostgreSQL).

CVSS VectorVendor: PostgreSQL

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

Lifecycle Timeline

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

DescriptionCVE.org

Integer wraparound in PostgreSQL generation memory contexts allows a database user to execute arbitrary code as the operating system user running the database, via freeing an allocation larger than 1 GB and causing its block to be reused for smaller chunks whose back-pointer offset cannot represent that position. Within major versions 16-18, minor versions before PostgreSQL 18.7, 17.12, and 16.16 are affected. Versions before PostgreSQL 16 are unaffected.

Executive ViewAI

Why It Matters

CVE-2026-116328 is a high-severity integer-wraparound flaw in PostgreSQL 16, 17, and 18 that allows a database user with valid login credentials to execute arbitrary code as the database server's operating system account. This puts the confidentiality, integrity, and availability of the entire data environment at risk, and any compromise could propagate to connected applications and business operations. Leadership should prioritize patching because the vulnerability affects core database infrastructure and could be leveraged by an insider or compromised user account.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis

Threat Intelligence Overview

EPSS Score
0.6%
Top 51% exploitable
Prevalence
High
PostgreSQL is a widely deployed enterprise and cloud database across many production environments
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.6%
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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