# CVE-2023-5869: Postgresql: buffer overrun from integer overflow in array modification

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-12-10 · Modified: 2026-11-26
- Aliases: ALPINE-CVE-2023-5869, RHSA-2023:7771, RHSA-2023:7778, RHSA-2023:7783, RHSA-2023:7786, RHSA-2023:7788, RHSA-2023:7789, RHSA-2023:7790, RHSA-2023:7878, UBUNTU-CVE-2023-5869, DEBIAN-CVE-2023-5869, CGA-3hwq-87cp-fccc, CGA-8rp5-jv4w-fwph, CGA-97xw-pfch-63h5, CGA-f6gw-97jx-xmq8, CGA-g59j-mcfg-428x, CGA-ggm7-fwp9-xh6c, CGA-hcp9-4hgx-v742, CGA-m23p-8p54-95gj, CGA-mfhg-73r7-xp55, CGA-q6hm-jj66-85pr
- Record: https://cvemate.com/vulnerability/CVE-2023-5869 · JSON: https://cvemate.com/vulnerability/CVE-2023-5869/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 4.322%, percentile 91.443%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 84)

- alpine postgresql12 (Alpine Linux): \< 12.17-r0
- alpine postgresql14 (Alpine Linux): \< 14.10-r0
- alpine postgresql15 (Alpine Linux): \< 15.5-r0
- alpine postgresql16 (Alpine Linux): \< 16.1-r0
- chainguard postgresql-12 (Chainguard): \< 12.17-r0
- chainguard postgresql-13 (Chainguard): \< 13.13-r0
- chainguard postgresql-14 (Chainguard): \< 14.10-r0
- chainguard postgresql-15 (Chainguard): \< 15.5-r0
- chainguard postgresql-16 (Chainguard): \< 16.1-r0
- wolfi postgresql-12 (Wolfi): \< 12.17-r0
- wolfi postgresql-13 (Wolfi): \< 13.13-r0
- wolfi postgresql-14 (Wolfi): \< 14.10-r0
- wolfi postgresql-15 (Wolfi): \< 15.5-r0
- wolfi postgresql-16 (Wolfi): \< 16.1-r0
- debian postgresql-15 (Debian): \< 15.5-0+deb12u1
- ubuntu postgresql-10 (Ubuntu): \< 10.23-0ubuntu0.18.04.2+esm1
- ubuntu postgresql-12 (Ubuntu): \< 12.17-0ubuntu0.20.04.1
- ubuntu postgresql-14 (Ubuntu): \< 14.10-0ubuntu0.22.04.1
- ubuntu postgresql-9.3 (Ubuntu): All versions (No fix recorded)
- ubuntu postgresql-9.5 (Ubuntu): \< 9.5.25-0ubuntu0.16.04.1+esm6

## References (first 20 of 53)

- <https://access.redhat.com/errata/RHSA-2023:7545>
- <https://access.redhat.com/errata/RHSA-2023:7579>
- <https://access.redhat.com/errata/RHSA-2023:7580>
- <https://access.redhat.com/errata/RHSA-2023:7581>
- <https://access.redhat.com/errata/RHSA-2023:7616>
- <https://access.redhat.com/errata/RHSA-2023:7656>
- <https://access.redhat.com/errata/RHSA-2023:7666>
- <https://access.redhat.com/errata/RHSA-2023:7667>
- <https://access.redhat.com/errata/RHSA-2023:7694>
- <https://access.redhat.com/errata/RHSA-2023:7695>
- <https://access.redhat.com/errata/RHSA-2023:7714>
- <https://access.redhat.com/errata/RHSA-2023:7770>
- <https://access.redhat.com/errata/RHSA-2023:7771>
- <https://access.redhat.com/errata/RHSA-2023:7772>
- <https://access.redhat.com/errata/RHSA-2023:7778>
- <https://access.redhat.com/errata/RHSA-2023:7783>
- <https://access.redhat.com/errata/RHSA-2023:7784>
- <https://access.redhat.com/errata/RHSA-2023:7785>
- <https://access.redhat.com/errata/RHSA-2023:7786>
- <https://access.redhat.com/errata/RHSA-2023:7788>

---

Data as of 2026-12-05T02:49:45.506Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
