Breaking: Ruby2Shell - Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2023-5869

postgresql: Buffer overrun from integer overflow in array modification

Overview

Published
10 Dec 2023
Modified
4 Nov 2026
High CVE
2 Registry packages
188 OS packages
15 Linux distributions
Yes Fix available

Description

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.

Source: OX vulnerability database

Severity

8.8 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Weakness: CWE-190

Affected packages · 2

Packages affected by CVE-2023-5869
EcosystemPackageVulnerableFixed in
Bitnami postgresql >=11.0.0, <11.22.0>=12.0.0, <12.17.0>=13.0.0, <13.13.0>=14.0.0, <14.10.0>=15.0.0, <15.5.0+1 more 11.22.012.17.013.13.014.10.015.5.0
Julia LibPQ_jll <16.8.0+0 16.8.0+0

Open a package to see all its vulnerabilities.

Operating systems · 156 fixes

Oracle Linux 3 releases · 4 packages

fixed 9
postgresql pg-repack pgaudit postgres-decoderbufs
Oracle Linux fixes for CVE-2023-5869
ReleasePackageFixed in
7 postgresql +11 9.2.24-9.el7_9
8 pg-repack 1.4.8-1.module+el8.9.0+90110+d8a562d5
8 pgaudit 1.7.0-1.module+el8.9.0+90110+d8a562d5
8 postgres-decoderbufs 1.9.7-1.Final.module+el8.9.0+90110+d8a562d5
8 postgresql +14 15.5-1.module+el8.9.0+90110+d8a562d5
9 pg-repack 1.4.8-1.module+el9.2.0+21134+ceb95ed9

3 more rows

Photon OS 2 releases · 2 packages

fixed 2
postgresql14 postgresql15
Photon OS fixes for CVE-2023-5869
ReleasePackageFixed in
4.0 postgresql14 +2 14.10-1.ph4
5.0 postgresql15 +11 15.19-1.ph5

Red Hat 7 releases · 7 packages

fixed 62
rh-postgresql10-postgresql rh-postgresql12-postgresql rh-postgresql13-postgresql postgresql postgres-decoderbufs pgaudit +1
Red Hat fixes for CVE-2023-5869
ReleasePackageFixed inAdvisory
7 rh-postgresql10-postgresql +13 0:10.23-2.el7 RHSA-2023:7771
7 rh-postgresql12-postgresql +13 0:12.17-1.el7 RHSA-2023:7770
7 rh-postgresql13-postgresql +14 0:13.13-1.el7 RHSA-2023:7772
7 postgresql +11 0:9.2.24-9.el7_9 RHSA-2023:7783
8 (postgresql:10) postgresql +12 0:10.21-3.module+el8.1.0+20812+774a9597 RHSA-2023:7778
8 (postgresql:10) postgresql +12 0:10.21-3.module+el8.2.0+20828+77647308 RHSA-2023:7788

56 more rows

SUSE Linux Enterprise 3 releases · 7 packages

fixed 17
postgresql12 postgresql13 postgresql14 postgresql15 postgresql libecpg6 +1
SUSE Linux Enterprise fixes for CVE-2023-5869
ReleasePackageFixed inAdvisory
12.5 postgresql12 +8 12.17-3.49.1 SUSE-SU-2023:4433-1
12.5 postgresql13 +8 13.13-3.43.1 SUSE-SU-2023:4434-1
12.5 postgresql14 +8 14.10-3.33.1 SUSE-SU-2023:4418-1
12.5 postgresql15 +8 15.5-3.19.2 SUSE-SU-2023:4425-1
12.5 postgresql +8 16-4.23.3 SUSE-SU-2023:4425-1
12.5 libecpg6 +12 16.1-3.7.1 SUSE-SU-2023:4425-1

11 more rows

alma 6 releases · 4 packages

fixed 18
postgresql postgres-decoderbufs pgaudit pg-repack
alma fixes for CVE-2023-5869
ReleasePackageFixed in
8 (postgresql:10) postgresql +12 10.23-3.module_el8.9.0+3703+a01fd377
8 (postgresql:12) postgres-decoderbufs 0.10.0-2.module_el8.6.0+2758+4f4474df
8 (postgresql:12) pgaudit 1.4.0-5.module_el8.6.0+2758+4f4474df
8 (postgresql:12) pg-repack 1.4.6-3.module_el8.6.0+2758+4f4474df
8 (postgresql:12) postgresql +12 12.17-1.module_el8.9.0+3704+f1f917ce
8 (postgresql:13) postgres-decoderbufs 0.10.0-2.module_el8.6.0+2760+1746ec94

12 more rows

alpine 4 releases · 2 packages

fixed 5
postgresql15 postgresql16
alpine fixes for CVE-2023-5869
ReleasePackageFixed in
3.22 postgresql15 15.5-r0
3.22 postgresql16 16.1-r0
3.23 postgresql16 16.1-r0
3.24 postgresql16 16.1-r0
edge postgresql16 16.1-r0

amazon linux 1 release · 1 package

fixed 1
postgresql15
amazon linux fixes for CVE-2023-5869
ReleasePackageFixed in
2023 postgresql15 +29 15.5-1.amzn2023.0.1

chainguard 1 release · 5 packages

fixed 5
postgresql-12 postgresql-13 postgresql-14 postgresql-15 postgresql-16
chainguard fixes for CVE-2023-5869
ReleasePackageFixed in
postgresql-12 12.17-r0
postgresql-13 13.13-r0
postgresql-14 14.10-r0
postgresql-15 15.5-r0
postgresql-16 16.1-r0

debian 3 releases · 3 packages

fixed 3
postgresql-11 postgresql-13 postgresql-15
debian fixes for CVE-2023-5869
ReleasePackageFixed in
10 postgresql-11 11.22-0+deb10u1
11 postgresql-13 13.13-0+deb11u1
12 postgresql-15 15.5-0+deb12u1

echo 1 release · 1 package

fixed 1
postgresql-13
echo fixes for CVE-2023-5869
ReleasePackageFixed in
postgresql-13 13.13

openSUSE 1 release · 7 packages

fixed 7
postgresql11 postgresql12 postgresql13 postgresql14 postgresql15 libecpg6 +1
openSUSE fixes for CVE-2023-5869
ReleasePackageFixed inAdvisory
Tumbleweed postgresql11 +11 11.22-1.1 openSUSE-SU-2024:13408-1
Tumbleweed postgresql12 +11 12.18-1.1 openSUSE-SU-2024:13668-1
Tumbleweed postgresql13 +11 13.13-1.1 openSUSE-SU-2024:13409-1
Tumbleweed postgresql14 +11 14.10-1.1 openSUSE-SU-2024:13410-1
Tumbleweed postgresql15 +11 15.5-1.1 openSUSE-SU-2024:13413-1
Tumbleweed libecpg6 +15 16.1-1.1 openSUSE-SU-2024:13414-1

1 more row

rocky 5 releases · 4 packages

fixed 15
postgresql postgres-decoderbufs pgaudit pg-repack
rocky fixes for CVE-2023-5869
ReleasePackageFixed in
8 (postgresql:10) postgresql +12 10.23-3.module+el8.9.0+1608+45f68f05
8 (postgresql:12) postgres-decoderbufs 0.10.0-2.module+el8.5.0+684+c3892ef9
8 (postgresql:12) pgaudit 1.4.0-5.module+el8.9.0+1331+6f33d496
8 (postgresql:12) pg-repack 1.4.6-3.module+el8.5.0+684+c3892ef9
8 (postgresql:12) postgresql +12 12.17-1.module+el8.9.0+1603+444d1b54
8 (postgresql:13) postgres-decoderbufs 0.10.0-2.module+el8.10.0+1862+29bef648

9 more rows

root.io debian 2 releases · 2 packages

fixed 2
rootio-postgresql-13 rootio-postgresql-15
root.io debian fixes for CVE-2023-5869
ReleasePackageFixed in
11 rootio-postgresql-13 13.13-0+deb11u1
12 rootio-postgresql-15 15.5-0+deb12u1

ubuntu 4 releases · 3 packages

fixed 4
postgresql-10 postgresql-12 postgresql-14
ubuntu fixes for CVE-2023-5869
ReleasePackageFixed in
18.04-ESM postgresql-10 10.23-0ubuntu0.18.04.2+esm1
20.04 postgresql-12 12.17-0ubuntu0.20.04.1
20.04-ESM postgresql-12 12.17-0ubuntu0.20.04.1
22.04 postgresql-14 14.10-0ubuntu0.22.04.1

wolfi 1 release · 5 packages

fixed 5
postgresql-12 postgresql-13 postgresql-14 postgresql-15 postgresql-16
wolfi fixes for CVE-2023-5869
ReleasePackageFixed in
postgresql-12 12.17-r0
postgresql-13 13.13-r0
postgresql-14 14.10-r0
postgresql-15 15.5-r0
postgresql-16 16.1-r0

References

Show all 60 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.