Skip to content

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

HighCVSS 8.8 EPSS 4.3%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
debian/postgresql-15(Debian:12) < 15.5-0+deb12u1 15.5-0+deb12u1
debian/postgresql-15(Debian:12) = 15.3-0+deb12u1 No fix listed
debian/postgresql-15(Debian:12) = 15.3-1 No fix listed
debian/postgresql-15(Debian:12) = 15.4-0+deb12u1 No fix listed
debian/postgresql-15(Debian:12) = 15.4-1 No fix listed
debian/postgresql-15(Debian:12) = 15.4-2 No fix listed
debian/postgresql-15(Debian:12) = 15.4-3 No fix listed
redhat advanced cluster security < 4.2.4-6 4.2.4-6
redhat advanced cluster security < 4.2.4-7 4.2.4-7
redhat enterprise linux < 0:9.2.24-9.el7_9 0:9.2.24-9.el7_9
redhat enterprise linux < 8090020231114113712.a75119d5 8090020231114113712.a75119d5
redhat enterprise linux < 8090020231128173330.a75119d5 8090020231128173330.a75119d5
redhat enterprise linux < 8090020231201202407.a75119d5 8090020231201202407.a75119d5
redhat enterprise linux < 8090020231114113548.a75119d5 8090020231114113548.a75119d5
redhat rhel e4s < 8010020231130170510.c27ad7f8 8010020231130170510.c27ad7f8
redhat rhel aus < 8020020231128165246.4cda2c84 8020020231128165246.4cda2c84
redhat rhel e4s < 8020020231128165246.4cda2c84 8020020231128165246.4cda2c84
redhat rhel tus < 8020020231128165246.4cda2c84 8020020231128165246.4cda2c84
redhat rhel aus < 8020020231201202149.4cda2c84 8020020231201202149.4cda2c84
redhat rhel e4s < 8020020231201202149.4cda2c84 8020020231201202149.4cda2c84
redhat rhel tus < 8020020231201202149.4cda2c84 8020020231201202149.4cda2c84
redhat rhel aus < 8040020231127153301.522a0ee4 8040020231127153301.522a0ee4
redhat rhel e4s < 8040020231127153301.522a0ee4 8040020231127153301.522a0ee4
redhat rhel tus < 8040020231127153301.522a0ee4 8040020231127153301.522a0ee4
redhat rhel aus < 8040020231127154806.522a0ee4 8040020231127154806.522a0ee4
Show 175 more
ProductAffected versionsFixed in
redhat rhel e4s < 8040020231127154806.522a0ee4 8040020231127154806.522a0ee4
redhat rhel tus < 8040020231127154806.522a0ee4 8040020231127154806.522a0ee4
redhat rhel aus < 8040020231127142440.522a0ee4 8040020231127142440.522a0ee4
redhat rhel e4s < 8040020231127142440.522a0ee4 8040020231127142440.522a0ee4
redhat rhel tus < 8040020231127142440.522a0ee4 8040020231127142440.522a0ee4
redhat rhel eus < 8060020231114115246.ad008a3a 8060020231114115246.ad008a3a
redhat rhel eus < 8060020231128165328.ad008a3a 8060020231128165328.ad008a3a
redhat rhel eus < 8060020231201202249.ad008a3a 8060020231201202249.ad008a3a
redhat rhel eus < 8080020231114105206.63b34585 8080020231114105206.63b34585
redhat rhel eus < 8080020231128165335.63b34585 8080020231128165335.63b34585
redhat rhel eus < 8080020231201202316.63b34585 8080020231201202316.63b34585
redhat rhel eus < 8080020231113134015.63b34585 8080020231113134015.63b34585
redhat enterprise linux < 0:13.13-1.el9_3 0:13.13-1.el9_3
redhat enterprise linux < 9030020231120082734.rhel9 9030020231120082734.rhel9
redhat rhel eus < 0:13.13-1.el9_0 0:13.13-1.el9_0
redhat rhel eus < 0:13.13-1.el9_2 0:13.13-1.el9_2
redhat rhel eus < 9020020231115020618.rhel9 9020020231115020618.rhel9
redhat rhel software collections < 0:12.17-1.el7 0:12.17-1.el7
redhat rhel software collections < 0:10.23-2.el7 0:10.23-2.el7
redhat rhel software collections < 0:13.13-1.el7 0:13.13-1.el7
redhat advanced cluster security < 3.74.8-9 3.74.8-9
redhat advanced cluster security < 3.74.8-7 3.74.8-7
redhat advanced cluster security < 4.1.6-6 4.1.6-6
redhat rhel els = 6 No fix listed
redhat enterprise linux = 8 No fix listed
redhat enterprise linux = 9 No fix listed
ubuntu/postgresql-14(Ubuntu:22.04) < 14.10-0ubuntu0.22.04.1 14.10-0ubuntu0.22.04.1
alpine/postgresql12(Alpine:v3.15) < 12.17-r0 12.17-r0
alpine/postgresql12(Alpine:v3.16) < 12.17-r0 12.17-r0
alpine/postgresql12(Alpine:v3.17) < 12.17-r0 12.17-r0
alpine/postgresql12(Alpine:v3.18) < 12.17-r0 12.17-r0
alpine/postgresql14(Alpine:v3.15) < 14.10-r0 14.10-r0
alpine/postgresql14(Alpine:v3.16) < 14.10-r0 14.10-r0
alpine/postgresql14(Alpine:v3.17) < 14.10-r0 14.10-r0
alpine/postgresql14(Alpine:v3.18) < 14.10-r0 14.10-r0
alpine/postgresql14(Alpine:v3.19) < 14.10-r0 14.10-r0
alpine/postgresql14(Alpine:v3.20) < 14.10-r0 14.10-r0
alpine/postgresql15(Alpine:v3.17) < 15.5-r0 15.5-r0
alpine/postgresql15(Alpine:v3.18) < 15.5-r0 15.5-r0
alpine/postgresql15(Alpine:v3.19) < 15.5-r0 15.5-r0
alpine/postgresql15(Alpine:v3.20) < 15.5-r0 15.5-r0
alpine/postgresql15(Alpine:v3.21) < 15.5-r0 15.5-r0
alpine/postgresql15(Alpine:v3.22) < 15.5-r0 15.5-r0
alpine/postgresql16(Alpine:v3.19) < 16.1-r0 16.1-r0
alpine/postgresql16(Alpine:v3.20) < 16.1-r0 16.1-r0
alpine/postgresql16(Alpine:v3.21) < 16.1-r0 16.1-r0
alpine/postgresql16(Alpine:v3.22) < 16.1-r0 16.1-r0
alpine/postgresql16(Alpine:v3.23) < 16.1-r0 16.1-r0
alpine/postgresql16(Alpine:v3.24) < 16.1-r0 16.1-r0
postgresql >= 11.0, < 11.22 11.22
postgresql >= 12.0, < 12.17 12.17
postgresql >= 13.0, < 13.13 13.13
postgresql >= 14.0, < 14.10 14.10
postgresql >= 15.0, < 15.5 15.5
postgresql = 16.0 No fix listed
redhat codeready linux builder eus = 9.2 No fix listed
redhat codeready linux builder eus for power little endian eus = 9.0_ppc64le No fix listed
redhat codeready linux builder eus for power little endian eus = 9.2_ppc64le No fix listed
redhat codeready linux builder for arm64 eus = 8.6_aarch64 No fix listed
redhat codeready linux builder for arm64 eus = 9.0_aarch64 No fix listed
redhat codeready linux builder for arm64 eus = 9.2_aarch64 No fix listed
redhat codeready linux builder for ibm z systems eus = 9.0_s390x No fix listed
redhat codeready linux builder for ibm z systems eus = 9.2_s390x No fix listed
redhat codeready linux builder for power little endian eus = 9.0_ppc64le No fix listed
redhat codeready linux builder for power little endian eus = 9.2_ppc64le No fix listed
redhat software collections = 1.0 No fix listed
redhat enterprise linux = 8.0 No fix listed
redhat enterprise linux = 9.0 No fix listed
redhat enterprise linux desktop = 7.0 No fix listed
redhat enterprise linux eus = 8.6 No fix listed
redhat enterprise linux eus = 8.8 No fix listed
redhat enterprise linux eus = 9.0 No fix listed
redhat enterprise linux eus = 9.2 No fix listed
redhat enterprise linux for arm 64 = 8.0 No fix listed
redhat enterprise linux for arm 64 = 8.8_aarch64 No fix listed
redhat enterprise linux for ibm z systems = 7.0_s390x No fix listed
redhat enterprise linux for ibm z systems = 8.0_s390x No fix listed
redhat enterprise linux for ibm z systems eus = 8.6_s390x No fix listed
redhat enterprise linux for ibm z systems eus = 8.8_s390x No fix listed
redhat enterprise linux for ibm z systems eus = 9.0_s390x No fix listed
redhat enterprise linux for ibm z systems eus = 9.2_s390x No fix listed
redhat enterprise linux for power big endian = 7.0_ppc64 No fix listed
redhat enterprise linux for power little endian = 7.0_ppc64le No fix listed
redhat enterprise linux for power little endian = 8.0_ppc64le No fix listed
redhat enterprise linux for power little endian eus = 8.6_ppc64le No fix listed
redhat enterprise linux for power little endian eus = 8.8_ppc64le No fix listed
redhat enterprise linux for power little endian eus = 9.0_ppc64le No fix listed
redhat enterprise linux for power little endian eus = 9.2_ppc64le No fix listed
redhat enterprise linux for scientific computing = 7.0 No fix listed
redhat enterprise linux server = 7.0 No fix listed
redhat enterprise linux server aus = 8.2 No fix listed
redhat enterprise linux server aus = 8.4 No fix listed
redhat enterprise linux server aus = 8.6 No fix listed
redhat enterprise linux server aus = 9.2 No fix listed
redhat enterprise linux server tus = 8.2 No fix listed
redhat enterprise linux server tus = 8.4 No fix listed
redhat enterprise linux server tus = 8.6 No fix listed
redhat enterprise linux workstation = 7.0 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) All versions No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.1-1 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.2-1 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.2-1ubuntu1 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.2-1ubuntu2 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.3-1 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.3-1bzr1 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.3-1bzr2 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.4-1 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.5-0ubuntu0.14.04.1 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.6-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.7-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.8-0ubuntu0.4.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.9-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.10-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.11-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.12-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.13-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.14-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.15-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.16-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.17-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.18-0ubuntu0.14.04.1 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.19-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.20-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.21-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.22-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.23-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.24-0ubuntu0.14.04 No fix listed
ubuntu/postgresql-9.3(Ubuntu:Pro:14.04) = 9.3.24-0ubuntu0.14.04+esm1 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) < 9.5.25-0ubuntu0.16.04.1+esm6 9.5.25-0ubuntu0.16.04.1+esm6
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.0-1 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.0-2 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.0-3 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.1-1 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.2-1 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.3-0ubuntu0.16.04 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.4-0ubuntu0.16.04 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.5-0ubuntu0.16.04 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.6-0ubuntu0.16.04 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.7-0ubuntu0.16.04 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.8-0ubuntu0.16.04.1 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.9-0ubuntu0.16.04 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.10-0ubuntu0.16.04 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.11-0ubuntu0.16.04 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.12-0ubuntu0.16.04 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.13-0ubuntu0.16.04 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.14-0ubuntu0.16.04 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.16-0ubuntu0.16.04.1 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.17-0ubuntu0.16.04.1 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.18-0ubuntu0.16.04.1 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.19-0ubuntu0.16.04.1 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.21-0ubuntu0.16.04.1 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.23-0ubuntu0.16.04.1 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.24-0ubuntu0.16.04.1 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.25-0ubuntu0.16.04.1 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.25-0ubuntu0.16.04.1+esm1 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.25-0ubuntu0.16.04.1+esm2 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.25-0ubuntu0.16.04.1+esm3 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.25-0ubuntu0.16.04.1+esm4 No fix listed
ubuntu/postgresql-9.5(Ubuntu:Pro:16.04) = 9.5.25-0ubuntu0.16.04.1+esm5 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) < 10.23-0ubuntu0.18.04.2+esm1 10.23-0ubuntu0.18.04.2+esm1
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.1-1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.1-2 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.2-1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.3-1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.4-0ubuntu0.18.04 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.5-0ubuntu0.18.04 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.6-0ubuntu0.18.04.1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.7-0ubuntu0.18.04.1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.8-0ubuntu0.18.04.1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.9-0ubuntu0.18.04.1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.10-0ubuntu0.18.04.1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.12-0ubuntu0.18.04.1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.14-0ubuntu0.18.04.1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.15-0ubuntu0.18.04.1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.16-0ubuntu0.18.04.1 No fix listed

References