CVE-2023-5868
Postgresql: memory disclosure in aggregate function calls
02 Description
Postgresql: memory disclosure in aggregate function calls
03 Exploitation and scoring
- Exploitation
- Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
- SSVC decision
- ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
- AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
- Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
- EPSS probability
- 2.77% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 86.2% of scored records. A rank, not a probability.
- NVD base score
- 4.3 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-23.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2023-12-10 17:56Z2 YR AGO
- Last updated
- 2026-06-23 17:19Z4 MO AGO
- Reserved
- 2023-10-31
- Assigning CNA
- redhat
- Record state
- PUBLISHED
- Severity
- Medium (CVSS 4.3)
- CNA CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Weaknesses
- CWE-686Function Call With Incorrect Argument TypeVariant
- Data version
- 5.2
- Document digest
- a9d9628b5547e3e1870b64d3bf04e4083de27ad483d0a25304956db69abcc2d2
05 Affected products
06 References
- access.redhat.comRHSA-2023:7545https://access.redhat.com/errata/RHSA-2023:7545
- access.redhat.comRHSA-2023:7579https://access.redhat.com/errata/RHSA-2023:7579
- access.redhat.comRHSA-2023:7580https://access.redhat.com/errata/RHSA-2023:7580
- access.redhat.comRHSA-2023:7581https://access.redhat.com/errata/RHSA-2023:7581
- access.redhat.comRHSA-2023:7616https://access.redhat.com/errata/RHSA-2023:7616
- access.redhat.comRHSA-2023:7656https://access.redhat.com/errata/RHSA-2023:7656
- access.redhat.comRHSA-2023:7666https://access.redhat.com/errata/RHSA-2023:7666
- access.redhat.comRHSA-2023:7667https://access.redhat.com/errata/RHSA-2023:7667
- access.redhat.comRHSA-2023:7694https://access.redhat.com/errata/RHSA-2023:7694
- access.redhat.comRHSA-2023:7695https://access.redhat.com/errata/RHSA-2023:7695
- access.redhat.comRHSA-2023:7714https://access.redhat.com/errata/RHSA-2023:7714
- access.redhat.comRHSA-2023:7770https://access.redhat.com/errata/RHSA-2023:7770
- access.redhat.comRHSA-2023:7772https://access.redhat.com/errata/RHSA-2023:7772
- access.redhat.comRHSA-2023:7784https://access.redhat.com/errata/RHSA-2023:7784
- access.redhat.comRHSA-2023:7785https://access.redhat.com/errata/RHSA-2023:7785
- access.redhat.comRHSA-2023:7883https://access.redhat.com/errata/RHSA-2023:7883
- access.redhat.comRHSA-2023:7884https://access.redhat.com/errata/RHSA-2023:7884
- access.redhat.comRHSA-2023:7885https://access.redhat.com/errata/RHSA-2023:7885
- access.redhat.comRHSA-2024:0304https://access.redhat.com/errata/RHSA-2024:0304
- access.redhat.comRHSA-2024:0332https://access.redhat.com/errata/RHSA-2024:0332
- access.redhat.comRHSA-2024:0337https://access.redhat.com/errata/RHSA-2024:0337
- access.redhat.comhttps://access.redhat.com/security/cve/CVE-2023-5868
- bugzilla.redhat.comRHBZ#2247168https://bugzilla.redhat.com/show_bug.cgi?id=2247168
- www.postgresql.orghttps://www.postgresql.org/about/news/postgresql-161-155-1410-1313-1217-and-1122-released-2749/
- www.postgresql.orghttps://www.postgresql.org/support/security/CVE-2023-5868/
- security.netapp.comhttps://security.netapp.com/advisory/ntap-20240119-0003/
- lists.debian.orghttps://lists.debian.org/debian-lts-announce/2023/11/msg00007.html
07 Fixed in
AlmaLinux 8
- pg_repack Fixed
A version is affected if any line below covers it.
- Affected before 1.4.6-3.module_el8.6.0+2758+4f4474df
- Affected before 1.4.6-3.module_el8.6.0+2760+1746ec94
- Affected before 1.4.6-3.module_el8.6.0+3094+eb237fb8
- Affected before 1.4.6-3.module_el8.6.0+3095+ee60d910
- Affected before 1.4.8-1.module_el8.8.0+3487+43ec1b9f
- pgaudit Fixed
A version is affected if any line below covers it.
- Affected before 1.4.0-5.module_el8.6.0+2758+4f4474df
- Affected before 1.4.0-5.module_el8.6.0+3094+eb237fb8
- Affected before 1.5.0-1.module_el8.6.0+2760+1746ec94
- Affected before 1.5.0-1.module_el8.6.0+3095+ee60d910
- Affected before 1.7.0-1.module_el8.8.0+3487+43ec1b9f
- postgres-decoderbufs Fixed
A version is affected if any line below covers it.
- Affected before 0.10.0-2.module_el8.6.0+2758+4f4474df
- Affected before 0.10.0-2.module_el8.6.0+2760+1746ec94
- Affected before 0.10.0-2.module_el8.6.0+3094+eb237fb8
- Affected before 0.10.0-2.module_el8.6.0+3095+ee60d910
- Affected before 1.9.7-1.Final.module_el8.8.0+3487+43ec1b9f
- postgresql Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-contrib Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-docs Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-plperl Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-plpython3 Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-pltcl Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-private-devel Fixed in 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-private-libs Fixed in 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-server Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-server-devel Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-static Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-test Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-test-rpm-macros Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-upgrade Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-upgrade-devel Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
AlmaLinux 9
- pg_repack Fixed in 1.4.8-1.module_el9.2.0+22+09653793
- pgaudit Fixed in 1.7.0-1.module_el9.2.0+22+09653793
- postgres-decoderbufs Fixed in 1.9.7-1.Final.module_el9.2.0+22+09653793
- postgresql Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-contrib Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-docs Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-plperl Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-plpython3 Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-pltcl Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-private-devel Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-private-libs Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-server Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-server-devel Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-static Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-test Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-test-rpm-macros Fixed in 15.5-1.module_el9.3.0+52+21733919
- postgresql-upgrade Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-upgrade-devel Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 8
- pg_repack Fixed
A version is affected if any line below covers it.
- Affected before 1.4.6-3.module_el8.6.0+2758+4f4474df
- Affected before 1.4.6-3.module_el8.6.0+2760+1746ec94
- Affected before 1.4.6-3.module_el8.6.0+3094+eb237fb8
- Affected before 1.4.6-3.module_el8.6.0+3095+ee60d910
- Affected before 1.4.8-1.module_el8.8.0+3487+43ec1b9f
- pgaudit Fixed
A version is affected if any line below covers it.
- Affected before 1.4.0-5.module_el8.6.0+2758+4f4474df
- Affected before 1.4.0-5.module_el8.6.0+3094+eb237fb8
- Affected before 1.5.0-1.module_el8.6.0+2760+1746ec94
- Affected before 1.5.0-1.module_el8.6.0+3095+ee60d910
- Affected before 1.7.0-1.module_el8.8.0+3487+43ec1b9f
- postgres-decoderbufs Fixed
A version is affected if any line below covers it.
- Affected before 0.10.0-2.module_el8.6.0+2758+4f4474df
- Affected before 0.10.0-2.module_el8.6.0+2760+1746ec94
- Affected before 0.10.0-2.module_el8.6.0+3094+eb237fb8
- Affected before 0.10.0-2.module_el8.6.0+3095+ee60d910
- Affected before 1.9.7-1.Final.module_el8.8.0+3487+43ec1b9f
- postgresql Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-contrib Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-docs Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-plperl Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-plpython3 Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-pltcl Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-private-devel Fixed in 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-private-libs Fixed in 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-server Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-server-devel Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-static Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-test Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-test-rpm-macros Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-upgrade Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
- postgresql-upgrade-devel Fixed
A version is affected if any line below covers it.
- Affected before 12.17-1.module_el8.9.0+3704+f1f917ce
- Affected before 13.13-1.module_el8.9.0+3692+8714f643
- Affected before 15.5-1.module_el8.9.0+3706+885c732e
Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 9
- pg_repack Fixed in 1.4.8-1.module_el9.2.0+22+09653793
- pgaudit Fixed in 1.7.0-1.module_el9.2.0+22+09653793
- postgres-decoderbufs Fixed in 1.9.7-1.Final.module_el9.2.0+22+09653793
- postgresql Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-contrib Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-docs Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-plperl Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-plpython3 Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-pltcl Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-private-devel Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-private-libs Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-server Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-server-devel Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-static Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-test Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-test-rpm-macros Fixed in 15.5-1.module_el9.3.0+52+21733919
- postgresql-upgrade Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
- postgresql-upgrade-devel Fixed
A version is affected if any line below covers it.
- Affected before 13.13-1.el9_3
- Affected before 15.5-1.module_el9.3.0+52+21733919
Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Debian 12
- postgresql-15 Fixed in 15.5-0+deb12u1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 20.04 LTS
- postgresql-12 Fixed in 12.17-0ubuntu0.20.04.1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 22.04 LTS
- postgresql-14 Fixed in 14.10-0ubuntu0.22.04.1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 14.04 LTS
- postgresql-9.3 No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 18.04 LTS
- postgresql-10 Fixed in 10.23-0ubuntu0.18.04.2+esm1Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.