CVE-2026-16241 PUBLISHED

PostgreSQL ECPG integer underflow can crash the client

Assigner: PostgreSQL
Reserved: 20.07.2026 Published: 13.08.2026 Updated: 13.08.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:L
CVSS Score: 3.8

Product Status

Vendor n/a
Product PostgreSQL
Versions Default: unaffected
  • affected from 18 to 18.5 (excl.)
  • affected from 17 to 17.11 (excl.)
  • affected from 16 to 16.15 (excl.)
  • affected from 15 to 15.19 (excl.)
  • affected from 0 to 14.24 (excl.)

Affected Configurations

attacker operates the server; victim operates the ECPG client

Credits

  • The PostgreSQL project thanks ylwangtju for reporting this problem.

References

Problem Types

  • Integer Underflow (Wrap or Wraparound) CWE