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

- Severity: Medium 4.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.77%, higher than 86% of CVEs (2026-12-01)
- Published: 2023-12-10T17:56:57.176Z
- Modified: 2026-11-26T17:15:36.998Z
- Also known as: BIT-POSTGRESQL-2023-5868
- Weaknesses: CWE-686
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- advanced-cluster-security/rhacs-central-db-rhel8: no versions given (not affected: from 4.2.4-6 before *; from 3.74.8-9 before *; from 4.1.6-6 before *)
- advanced-cluster-security/rhacs-main-rhel8: no versions given (not affected: from 4.2.4-6 before *; from 3.74.8-9 before *; from 4.1.6-6 before *)
- advanced-cluster-security/rhacs-operator-bundle: no versions given (not affected: from 4.2.4-7 before *; from 3.74.8-7 before *; from 4.1.6-6 before *)
- advanced-cluster-security/rhacs-scanner-db-rhel8: no versions given (not affected: from 4.2.4-6 before *; from 3.74.8-9 before *; from 4.1.6-6 before *)
- advanced-cluster-security/rhacs-scanner-db-slim-rhel8: no versions given (not affected: from 4.2.4-7 before *; from 3.74.8-9 before *; from 4.1.6-6 before *)
- postgresql:13: no versions given (not affected: from 8090020231114113712.a75119d5 before *; from 8040020231127154806.522a0ee4 before *; from 8060020231114115246.ad008a3a before *; from 8080020231114105206.63b34585 before *)
- postgresql:12: no versions given (not affected: from 8090020231128173330.a75119d5 before *; from 8020020231128165246.4cda2c84 before *; from 8040020231127153301.522a0ee4 before *; from 8060020231128165328.ad008a3a before *; from 8080020231128165335.63b34585 before *)
- postgresql:15: no versions given (not affected: from 8090020231114113548.a75119d5 before *; from 8080020231113134015.63b34585 before *; from 9030020231120082734.rhel9 before *; from 9020020231115020618.rhel9 before *)
- postgresql: no versions given (not affected: from 0:13.13-1.el9_3 before *; from 0:13.13-1.el9_0 before *; from 0:13.13-1.el9_2 before *)
- rh-postgresql12-postgresql: no versions given (not affected: from 0:12.17-1.el7 before *)
- rh-postgresql13-postgresql: no versions given (not affected: from 0:13.13-1.el7 before *)
- postgresql:10/postgresql: no versions given
- postgresql:16/postgresql: no versions given
- rh-postgresql10-postgresql: no versions given
- postgresql postgresql: from 11.0 before 11.22; from 12.0 before 12.17; from 13.0 before 13.13; from 14.0 before 14.10; from 15.0 before 15.5; 16.0
- redhat codeready_linux_builder_eus: 9.2
- redhat codeready_linux_builder_eus_for_power_little_endian_eus: 9.0_ppc64le; 9.2_ppc64le
- redhat codeready_linux_builder_for_arm64_eus: 8.6_aarch64; 9.0_aarch64; 9.2_aarch64
- redhat codeready_linux_builder_for_ibm_z_systems_eus: 9.0_s390x; 9.2_s390x
- redhat codeready_linux_builder_for_power_little_endian_eus: 9.0_ppc64le; 9.2_ppc64le
- redhat software_collections: 1.0
- redhat enterprise_linux: 8.0; 9.0
- redhat enterprise_linux_eus: 8.6; 8.8; 9.0; 9.2
- redhat enterprise_linux_for_arm_64: 8.0; 8.8_aarch64
- redhat enterprise_linux_for_ibm_z_systems: 8.0_s390x
- redhat enterprise_linux_for_ibm_z_systems_eus: 8.6_s390x; 8.8_s390x; 9.0_s390x; 9.2_s390x
- redhat enterprise_linux_for_power_little_endian: 8.0_ppc64le
- redhat enterprise_linux_for_power_little_endian_eus: 8.6_ppc64le; 8.8_ppc64le; 9.0_ppc64le; 9.2_ppc64le
- redhat enterprise_linux_server_aus: 8.2; 8.4; 8.6; 9.2
- redhat enterprise_linux_server_tus: 8.2; 8.4; 8.6
- postgresql (Bitnami): from 11.0.0 before 11.22.0; from 12.0.0 before 12.17.0; from 13.0.0 before 13.13.0; from 14.0.0 before 14.10.0; from 15.0.0 before 15.5.0; from 16.0.0 before 16.0.1

## Every score

- redhat: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://access.redhat.com/errata/RHSA-2023:7545> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7579> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7580> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7581> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7616> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7656> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7666> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7667> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7694> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7695> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7714> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7770> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7772> (advisory, third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2023:7784> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7785> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7883> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7884> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2023:7885> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2024:0304> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2024:0332> (vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2024:0337> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2023-5868> (advisory, third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2247168> (issue-tracking, report)
- <https://www.postgresql.org/about/news/postgresql-161-155-1410-1313-1217-and-1122-released-2749/> (article, release-notes)
- <https://www.postgresql.org/support/security/CVE-2023-5868/> (advisory, mitigation, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20240119-0003/> (web)
- <https://lists.debian.org/debian-lts-announce/2023/11/msg00007.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-5868> (web)

## Sources

- CVE List: [CVE-2023-5868](https://www.cve.org/CVERecord?id=CVE-2023-5868), CVE Terms of Use, modified 2026-11-26
- NVD: [CVE-2023-5868](https://nvd.nist.gov/vuln/detail/CVE-2023-5868), Public domain, modified 2026-11-24
- Bitnami Vulnerability Database: [BIT-POSTGRESQL-2023-5868](https://osv.dev/vulnerability/BIT-POSTGRESQL-2023-5868), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-5868 · Whole record: https://cve.day/CVE-2023-5868.json · Rebuilt by cve.day 2026-11-26T17:22:21.634Z
