Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as database user
-
DeliveryTrigger allocation larger than 1 GB in generation context
-
ExploitFree allocation and force block reuse for smaller chunks
-
ExecutionInteger wraparound corrupts back-pointer offset
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (PostgreSQL).
CVSS VectorVendor: PostgreSQL
Lifecycle Timeline
2DescriptionCVE.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.
Articles & Coverage 1
Executive ViewAI
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.
No vendor-released patch identified at time of analysis
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
More in PostgreSQL
View allPostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
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
Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.
Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar
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
The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t
A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve
Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the
Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
EUVD-2026-124507
GHSA-38f3-w39j-87qm
NVD
CVE.org
EPSS
VulDB
Exploit-DB