CVE-2026-16241

PostgreSQL ECPG integer underflow can crash the client

Published Aug 13, 2026 CVSS 3.1 · 3.8 Low EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

PostgreSQL’s ECPG interface contains an integer underflow that enables a database server administrator to cause a temporary denial of service against the ECPG client by sending a bytea value that lacks the mandatory prefix. The client miscomputes a size and overwrites a large memory region with bytes that are not under the attacker’s control, typically resulting in a segmentation fault. In rare cases the overwrite may affect client-specific data, providing a weak integrity impact, but the primary effect is a client crash.

Affected Systems

All PostgreSQL releases older than 18.6, 17.11, 16.15, 15.19, and 14.24 are affected. Any client that uses the ECPG extension against a vulnerable server is at risk.

Risk and Exploitability

The CVSS score of 3.8 classifies the problem as low severity. The EPSS score is less than 1%, indicating a very low probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog. The likely attack vector requires a database server administrator or a privileged user who can send crafted queries; it does not require external network access. Exploitation results in a client crash rather than arbitrary code execution. Versions before PostgreSQL 18.6, 17.11, 16.15, 15.19, and 14.24 are affected.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a supported PostgreSQL release (18.6 or later, 17.11 or later, 16.15 or later, 15.19 or later, or 14.24 or later) which applies the ECPG underflow fix.
  • Disallow the use of the ECPG client or remove the extension from applications that cannot be upgraded.
  • Configure application logging to detect unexpected client crashes and alert administrators promptly.

Generated by OpenCVE AI on August 30, 2026 at 00:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4740-1 postgresql-15 security update
Debian DSA Debian DSA DSA-6438-1 postgresql-17 security update
Ubuntu USN Ubuntu USN USN-8653-1 PostgreSQL vulnerabilities
History
Type Values Removed Values Added
Description 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.5, 17.11, 16.15, 15.19, and 14.24 are affected. 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.
Type Values Removed Values Added
CPEs cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Postgresql
Postgresql postgresql
Vendors & Products Postgresql
Postgresql postgresql
Type Values Removed Values Added
Description 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.5, 17.11, 16.15, 15.19, and 14.24 are affected.
Title PostgreSQL ECPG integer underflow can crash the client
Weaknesses CWE-191
References
Metrics cvssV3_1

{'score': 3.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:L'}

Weaknesses
  • CWE-191

    Integer Underflow (Wrap or Wraparound)

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Aug 29, 2026, 11:07 PM
Reserved
Jul 20, 2026, 1:55 AM
Status
Modified
Published
Aug 13, 2026, 1:17 PM
Modified
Aug 29, 2026, 11:17 PM