---
id: CVE-2023-5869
title: 'Postgresql: buffer overrun from integer overflow in array modification'
summary: >-
  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…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-190
vendor: Red Hat
product: advanced-cluster-security/rhacs-central-db-rhel8
affected:
  - advanced-cluster-security/rhacs-central-db-rhel8 (all versions)
  - advanced-cluster-security/rhacs-main-rhel8 (all versions)
  - advanced-cluster-security/rhacs-operator-bundle (all versions)
  - advanced-cluster-security/rhacs-scanner-db-rhel8 (all versions)
  - advanced-cluster-security/rhacs-scanner-db-slim-rhel8 (all versions)
  - postgresql (all versions)
  - 'postgresql:13 (all versions)'
  - 'postgresql:12 (all versions)'
  - 'postgresql:10 (all versions)'
  - 'postgresql:15 (all versions)'
  - 'postgresql:10 (all versions)'
  - 'postgresql:12 (all versions)'
  - 'postgresql:10 (all versions)'
  - 'postgresql:12 (all versions)'
  - 'postgresql:10 (all versions)'
  - 'postgresql:12 (all versions)'
  - 'postgresql:10 (all versions)'
  - 'postgresql:12 (all versions)'
  - 'postgresql:13 (all versions)'
  - 'postgresql:10 (all versions)'
  - 'postgresql:12 (all versions)'
  - 'postgresql:13 (all versions)'
  - 'postgresql:10 (all versions)'
  - 'postgresql:12 (all versions)'
  - 'postgresql:13 (all versions)'
  - 'postgresql:10 (all versions)'
  - 'postgresql:13 (all versions)'
  - 'postgresql:12 (all versions)'
  - 'postgresql:10 (all versions)'
  - 'postgresql:13 (all versions)'
  - 'postgresql:12 (all versions)'
  - 'postgresql:10 (all versions)'
  - 'postgresql:15 (all versions)'
  - postgresql (all versions)
  - 'postgresql:15 (all versions)'
  - postgresql (all versions)
  - postgresql (all versions)
  - 'postgresql:15 (all versions)'
  - rh-postgresql12-postgresql (all versions)
  - rh-postgresql10-postgresql (all versions)
  - rh-postgresql13-postgresql (all versions)
  - advanced-cluster-security/rhacs-central-db-rhel8 (all versions)
  - advanced-cluster-security/rhacs-main-rhel8 (all versions)
  - advanced-cluster-security/rhacs-operator-bundle (all versions)
  - advanced-cluster-security/rhacs-scanner-db-rhel8 (all versions)
  - advanced-cluster-security/rhacs-scanner-db-slim-rhel8 (all versions)
  - advanced-cluster-security/rhacs-central-db-rhel8 (all versions)
  - advanced-cluster-security/rhacs-main-rhel8 (all versions)
  - advanced-cluster-security/rhacs-operator-bundle (all versions)
  - advanced-cluster-security/rhacs-scanner-db-rhel8 (all versions)
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-11-02T22:42:15.373829Z'
published: '2023-12-10'
updated: '2026-11-04'
sourceUpdated: '2026-11-04T21:06:25.389Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2023-5869'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2023:7545'
    label: 'RHSA-2023:7545'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7579'
    label: 'RHSA-2023:7579'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7580'
    label: 'RHSA-2023:7580'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7581'
    label: 'RHSA-2023:7581'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7616'
    label: 'RHSA-2023:7616'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7656'
    label: 'RHSA-2023:7656'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7666'
    label: 'RHSA-2023:7666'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7667'
    label: 'RHSA-2023:7667'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7694'
    label: 'RHSA-2023:7694'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7695'
    label: 'RHSA-2023:7695'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7714'
    label: 'RHSA-2023:7714'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7770'
    label: 'RHSA-2023:7770'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7771'
    label: 'RHSA-2023:7771'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7772'
    label: 'RHSA-2023:7772'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7778'
    label: 'RHSA-2023:7778'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7783'
    label: 'RHSA-2023:7783'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7784'
    label: 'RHSA-2023:7784'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7785'
    label: 'RHSA-2023:7785'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7786'
    label: 'RHSA-2023:7786'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7788'
    label: 'RHSA-2023:7788'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7789'
    label: 'RHSA-2023:7789'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7790'
    label: 'RHSA-2023:7790'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7878'
    label: 'RHSA-2023:7878'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7883'
    label: 'RHSA-2023:7883'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7884'
    label: 'RHSA-2023:7884'
  - url: 'https://access.redhat.com/errata/RHSA-2023:7885'
    label: 'RHSA-2023:7885'
  - url: 'https://access.redhat.com/errata/RHSA-2024:0304'
    label: 'RHSA-2024:0304'
  - url: 'https://access.redhat.com/errata/RHSA-2024:0332'
    label: 'RHSA-2024:0332'
  - url: 'https://access.redhat.com/errata/RHSA-2024:0337'
    label: 'RHSA-2024:0337'
  - url: 'https://access.redhat.com/security/cve/CVE-2023-5869'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2247169'
    label: RHBZ#2247169
  - url: >-
      https://www.postgresql.org/about/news/postgresql-161-155-1410-1313-1217-and-1122-released-2749/
  - url: 'https://www.postgresql.org/support/security/CVE-2023-5869/'
tags:
  - cve.org
epss: 0.04322
epssPercentile: 0.91205
ingestedAt: '2026-11-05T21:36:00.593Z'
---

## Overview

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.

## Affected

- `advanced-cluster-security/rhacs-central-db-rhel8 (all versions)`
- `advanced-cluster-security/rhacs-main-rhel8 (all versions)`
- `advanced-cluster-security/rhacs-operator-bundle (all versions)`
- `advanced-cluster-security/rhacs-scanner-db-rhel8 (all versions)`
- `advanced-cluster-security/rhacs-scanner-db-slim-rhel8 (all versions)`
- `postgresql (all versions)`
- `postgresql:13 (all versions)`
- `postgresql:12 (all versions)`
- `postgresql:10 (all versions)`
- `postgresql:15 (all versions)`
- `postgresql:10 (all versions)`
- `postgresql:12 (all versions)`
- `postgresql:10 (all versions)`
- `postgresql:12 (all versions)`
- `postgresql:10 (all versions)`
- `postgresql:12 (all versions)`
- `postgresql:10 (all versions)`
- `postgresql:12 (all versions)`
- `postgresql:13 (all versions)`
- `postgresql:10 (all versions)`
- `postgresql:12 (all versions)`
- `postgresql:13 (all versions)`
- `postgresql:10 (all versions)`
- `postgresql:12 (all versions)`
- `postgresql:13 (all versions)`
- `postgresql:10 (all versions)`
- `postgresql:13 (all versions)`
- `postgresql:12 (all versions)`
- `postgresql:10 (all versions)`
- `postgresql:13 (all versions)`
- `postgresql:12 (all versions)`
- `postgresql:10 (all versions)`
- `postgresql:15 (all versions)`
- `postgresql (all versions)`
- `postgresql:15 (all versions)`
- `postgresql (all versions)`
- `postgresql (all versions)`
- `postgresql:15 (all versions)`
- `rh-postgresql12-postgresql (all versions)`
- `rh-postgresql10-postgresql (all versions)`
- `rh-postgresql13-postgresql (all versions)`
- `advanced-cluster-security/rhacs-central-db-rhel8 (all versions)`
- `advanced-cluster-security/rhacs-main-rhel8 (all versions)`
- `advanced-cluster-security/rhacs-operator-bundle (all versions)`
- `advanced-cluster-security/rhacs-scanner-db-rhel8 (all versions)`
- `advanced-cluster-security/rhacs-scanner-db-slim-rhel8 (all versions)`
- `advanced-cluster-security/rhacs-central-db-rhel8 (all versions)`
- `advanced-cluster-security/rhacs-main-rhel8 (all versions)`
- `advanced-cluster-security/rhacs-operator-bundle (all versions)`
- `advanced-cluster-security/rhacs-scanner-db-rhel8 (all versions)`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

### Workarounds

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.
