CVE-2023-5869: PostgreSQL

High severity, CVSS 8.8. EPSS: 3.2% probability of exploitation activity in the next 30 days.

A flaw was found in PostgreSQL that allows authenticated database users to execute arbitrary code through missing overflow checks during SQL array value modification. This issue exists due to an integer overflow during array modification where a remote user can trigger the overflow by providing specially crafted data. This enables the execution of arbitrary code on the target system, allowing users to write arbitrary bytes to memory and extensively read the server's memory.

What to do

The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.

  • PostgreSQL, from 11.0, before 11.22: fixed in 11.22
  • PostgreSQL, from 12.0, before 12.17: fixed in 12.17
  • PostgreSQL, from 13.0, before 13.13: fixed in 13.13
  • PostgreSQL, from 14.0, before 14.10: fixed in 14.10
  • PostgreSQL, from 15.0, before 15.5: fixed in 15.5

Affected products

Published 2023-12-10. Last modified 2026-11-26.