CVE-2026-16241
Low · 3.8CVSS
3.8
EPSS
0.3%
Published
Aug 13, 2026
CISA due date
—
Cloudanix analysis
A database administrator can send specially crafted data that crashes applications using the PostgreSQL client library, causing brief outages until the programs are restarted.
- Exploitation
- Remote Authenticated
- Attacker needs
- High Privilege
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer underflow in ECPG client processing of malformed bytea values without the required prefix triggers an unbounded memory write of attacker-uncontrolled data, typically causing SIGSEGV and client crash with rare potential for limited integrity corruption.
Why it matters to the business
A database administrator can cause temporary unavailability of applications that use the ECPG client, interrupting dependent business processes until the client is restarted; the flaw affects all PostgreSQL versions prior to the listed fixes and carries rising but still low exploit probability.
How an attack unfolds
An attacker with database server administrator privileges crafts and sends a bytea value missing the mandatory prefix to an ECPG client; the client miscalculates the length due to integer underflow and performs a massive out-of-bounds write, resulting in a crash or, rarely, unintended data modification.
How to fix it
Upgrade PostgreSQL to 18.6, 17.11, 16.15, 15.19, or 14.24 or later on all affected systems; rebuild and redeploy any ECPG-dependent client applications against the patched libraries.
How to confirm the fix worked
Confirm the installed PostgreSQL server and client libraries report versions 18.6/17.11/16.15/15.19/14.24 or newer; re-test ECPG applications with known-malformed bytea inputs to verify absence of crash or memory corruption.
Typical attack path
- Obtain or compromise database server administrator credentials
- Connect to a vulnerable ECPG client application
- Transmit a specially crafted bytea lacking the required prefix
- Trigger the integer underflow and subsequent large memory overwrite
- Observe client crash (SIGSEGV) or rare integrity side effects
How to detect it
Review PostgreSQL server logs and ECPG client application logs for repeated connection attempts or bytea transmissions immediately preceding crashes; look for SIGSEGV or segmentation fault entries in system logs on hosts running ECPG clients.
What your security team should do
- Prioritize upgrade of all PostgreSQL instances to the fixed versions within normal change windows given the low EPSS and non-KEV status
- Inventory and patch ECPG client deployments across the environment
- Monitor for increasing EPSS trend and any new exploit maturity signals
- Restrict database administrator access to the minimum necessary principals
The record
Integer underflow in PostgreSQL ECPG allows a database server administrator to achieve temporary denial of service against the ECPG client via sending a bytea value lacking the mandatory prefix. The client overwrites a huge memory region with bytes outside attacker knowledge or control. This typically yields a simple SIGSEGV, but rare cases might achieve client-specific integrity impact via the write. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-121727 Kore before 4.3.0 contains an integer underflow vulnerability in HTTP request body… CWE-191
- CVE-2026-61497 TinyUSB before 0.20.1 contains an integer underflow vulnerability in the HID host report… CWE-191
- CVE-2026-120060 psqlODBC trusts counts and lengths in server data in three places. CWE-191
- CVE-2026-120058 psqlODBC sizes its row cache from the column count of a cursor's first result, but… CWE-191
- CVE-2026-20576 In afe, there is a possible out of bounds write due to a missing bounds check. CWE-191
- CVE-2026-20572 In adsp, there is a possible out of bounds write due to an integer overflow. CWE-191
- CVE-2026-111735 P-Net before 1.0.3 contains an integer underflow in pf_cpm_c_data_ind(). CWE-191
- CVE-2026-103411 An Integer Underflow vulnerability in DhcpMessageDecoder in Juniper Networks Session… CWE-191