Skip to content

CVE-2023-5868 Postgresql: memory disclosure in aggregate function calls

MediumCVSS 4.3 EPSS 2.8%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

A memory disclosure vulnerability was found in PostgreSQL that allows remote users to access sensitive information by exploiting certain aggregate function calls with 'unknown'-type arguments. Handling 'unknown'-type values from string literals without type designation can disclose bytes, potentially revealing notable and confidential information. This issue exists due to excessive data output in aggregate function calls, enabling remote users to read some portion of system memory.

Upgrade path

50 packages: 32 fixed, 2 partially fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
redhat rhel els = 6; All versions No fix listed No fix yet
ubuntu/postgresql-9.3(Ubuntu Pro 14.04) = 9.3.1-1; = 9.3.2-1; = 9.3.2-1ubuntu1; = 9.3.2-1ubuntu2 +26 more No fix listed No fix yet
redhat enterprise linux < 0:13.13-1.el9_3; < 8090020231114113548.a75119d5; < 8090020231114113712.a75119d5; < 8090020231128173330.a75119d5 +6 more 0:13.13-1.el9_3, 8090020231114113548.a75119d5, 8090020231114113712.a75119d5, 8090020231128173330.a75119d5, 9030020231120082734.rhel9 Partially fixed
redhat rhel software collections < 0:12.17-1.el7; < 0:13.13-1.el7; All versions 0:12.17-1.el7, 0:13.13-1.el7 Partially fixed
alpine/postgresql12(Alpine v3.15) < 12.17-r0 12.17-r0 Fixed
alpine/postgresql12(Alpine v3.16) < 12.17-r0 12.17-r0 Fixed
alpine/postgresql12(Alpine v3.17) < 12.17-r0 12.17-r0 Fixed
alpine/postgresql12(Alpine v3.18) < 12.17-r0 12.17-r0 Fixed
alpine/postgresql14(Alpine v3.15) < 14.10-r0 14.10-r0 Fixed
alpine/postgresql14(Alpine v3.16) < 14.10-r0 14.10-r0 Fixed
alpine/postgresql14(Alpine v3.17) < 14.10-r0 14.10-r0 Fixed
alpine/postgresql14(Alpine v3.18) < 14.10-r0 14.10-r0 Fixed
alpine/postgresql14(Alpine v3.19) < 14.10-r0 14.10-r0 Fixed
alpine/postgresql14(Alpine v3.20) < 14.10-r0 14.10-r0 Fixed
alpine/postgresql15(Alpine v3.17) < 15.5-r0 15.5-r0 Fixed
alpine/postgresql15(Alpine v3.18) < 15.5-r0 15.5-r0 Fixed
alpine/postgresql15(Alpine v3.19) < 15.5-r0 15.5-r0 Fixed
alpine/postgresql15(Alpine v3.20) < 15.5-r0 15.5-r0 Fixed
alpine/postgresql15(Alpine v3.21) < 15.5-r0 15.5-r0 Fixed
alpine/postgresql15(Alpine v3.22) < 15.5-r0 15.5-r0 Fixed
alpine/postgresql16(Alpine v3.19) < 16.1-r0 16.1-r0 Fixed
alpine/postgresql16(Alpine v3.20) < 16.1-r0 16.1-r0 Fixed
alpine/postgresql16(Alpine v3.21) < 16.1-r0 16.1-r0 Fixed
alpine/postgresql16(Alpine v3.22) < 16.1-r0 16.1-r0 Fixed
alpine/postgresql16(Alpine v3.23) < 16.1-r0 16.1-r0 Fixed
alpine/postgresql16(Alpine v3.24) < 16.1-r0 16.1-r0 Fixed
debian/postgresql-15(Debian 12) < 15.5-0+deb12u1; = 15.3-0+deb12u1; = 15.3-1; = 15.4-0+deb12u1 +3 more 15.5-0+deb12u1 Fixed
postgresql = 16.0; >= 11.0, < 11.22; >= 12.0, < 12.17; >= 13.0, < 13.13 +2 more 11.22, 12.17, 13.13, 14.10, 15.5 Fixed
redhat advanced cluster security < 3.74.8-7; < 3.74.8-9; < 4.1.6-6; < 4.2.4-6 +1 more 3.74.8-7, 3.74.8-9, 4.1.6-6, 4.2.4-6, 4.2.4-7 Fixed
redhat rhel aus < 8020020231128165246.4cda2c84; < 8040020231127153301.522a0ee4; < 8040020231127154806.522a0ee4 8020020231128165246.4cda2c84, 8040020231127153301.522a0ee4, 8040020231127154806.522a0ee4 Fixed

… and 20 more packages.

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 < 8090020231114113712.a75119d5 8090020231114113712.a75119d5
redhat enterprise linux < 8090020231128173330.a75119d5 8090020231128173330.a75119d5
redhat enterprise linux < 8090020231114113548.a75119d5 8090020231114113548.a75119d5
redhat rhel aus < 8020020231128165246.4cda2c84 8020020231128165246.4cda2c84
redhat rhel e4s < 8020020231128165246.4cda2c84 8020020231128165246.4cda2c84
redhat rhel tus < 8020020231128165246.4cda2c84 8020020231128165246.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
redhat rhel e4s < 8040020231127154806.522a0ee4 8040020231127154806.522a0ee4
redhat rhel tus < 8040020231127154806.522a0ee4 8040020231127154806.522a0ee4
redhat rhel eus < 8060020231114115246.ad008a3a 8060020231114115246.ad008a3a
redhat rhel eus < 8060020231128165328.ad008a3a 8060020231128165328.ad008a3a
redhat rhel eus < 8080020231114105206.63b34585 8080020231114105206.63b34585
redhat rhel eus < 8080020231128165335.63b34585 8080020231128165335.63b34585
Show 166 more
ProductAffected versionsFixed in
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: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 rhel els All versions No fix listed
redhat enterprise linux All versions No fix listed
redhat enterprise linux = 8 No fix listed
redhat enterprise linux = 9 No fix listed
redhat rhel software collections All versions 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 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 = 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 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 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
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-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
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.17-0ubuntu0.18.04.1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.18-0ubuntu0.18.04.1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.19-0ubuntu0.18.04.1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.20-0ubuntu0.18.04.1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.21-0ubuntu0.18.04.1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.22-0ubuntu0.18.04.1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.23-0ubuntu0.18.04.1 No fix listed
ubuntu/postgresql-10(Ubuntu:Pro:18.04) = 10.23-0ubuntu0.18.04.2 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) < 12.17-0ubuntu0.20.04.1 12.17-0ubuntu0.20.04.1
ubuntu/postgresql-12(Ubuntu:20.04) = 12.0-1 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.1-1 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.1-2build1 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.2-1 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.2-1ubuntu2 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.2-4 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.4-0ubuntu0.20.04.1 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.5-0ubuntu0.20.04.1 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.6-0ubuntu0.20.04.1 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.7-0ubuntu0.20.04.1 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.8-0ubuntu0.20.04.1 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.9-0ubuntu0.20.04.1 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.10-0ubuntu0.20.04.1 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.11-0ubuntu0.20.04.1 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.12-0ubuntu0.20.04.1 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.13-0ubuntu0.20.04.1 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.14-0ubuntu0.20.04.1 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.15-0ubuntu0.20.04.1 No fix listed
ubuntu/postgresql-12(Ubuntu:20.04) = 12.16-0ubuntu0.20.04.1 No fix listed
ubuntu/postgresql-14(Ubuntu:22.04) = 14.1-1ubuntu1 No fix listed
ubuntu/postgresql-14(Ubuntu:22.04) = 14.2-1 No fix listed
ubuntu/postgresql-14(Ubuntu:22.04) = 14.2-1ubuntu1 No fix listed
ubuntu/postgresql-14(Ubuntu:22.04) = 14.3-0ubuntu0.22.04.1 No fix listed
ubuntu/postgresql-14(Ubuntu:22.04) = 14.4-0ubuntu0.22.04.1 No fix listed
ubuntu/postgresql-14(Ubuntu:22.04) = 14.5-0ubuntu0.22.04.1 No fix listed
ubuntu/postgresql-14(Ubuntu:22.04) = 14.6-0ubuntu0.22.04.1 No fix listed
ubuntu/postgresql-14(Ubuntu:22.04) = 14.7-0ubuntu0.22.04.1 No fix listed
ubuntu/postgresql-14(Ubuntu:22.04) = 14.8-0ubuntu0.22.04.1 No fix listed
ubuntu/postgresql-14(Ubuntu:22.04) = 14.9-0ubuntu0.22.04.1 No fix listed

References