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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-12-10 · Modified: 2026-11-26
- Aliases: ALPINE-CVE-2023-5868, UBUNTU-CVE-2023-5868, DEBIAN-CVE-2023-5868, CGA-23p5-g3jg-vp36, CGA-2m5v-6gwg-c4xh, CGA-4r7f-gpf7-g2h6, CGA-955j-6vjf-f5g6, CGA-9r55-6xr4-2f85, CGA-jhgg-7hqf-j423, CGA-q2qr-q8rw-572c, CGA-v8fq-j87m-mvxx, CGA-vp2g-x3m2-v24p, CGA-wjqp-6hcv-x7m7
- Record: https://cvemate.com/vulnerability/CVE-2023-5868 · JSON: https://cvemate.com/vulnerability/CVE-2023-5868/json

## Description

```text
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.
```

## Signals

- CVSS: 4.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- EPSS: 2.775%, percentile 86.811%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 35)

- alpine postgresql12 (Alpine Linux): \< 12.17-r0
- alpine postgresql14 (Alpine Linux): \< 14.10-r0
- alpine postgresql15 (Alpine Linux): \< 15.5-r0
- alpine postgresql16 (Alpine Linux): \< 16.1-r0
- chainguard postgresql-12 (Chainguard): \< 12.17-r0
- chainguard postgresql-13 (Chainguard): \< 13.13-r0
- chainguard postgresql-14 (Chainguard): \< 14.10-r0
- chainguard postgresql-15 (Chainguard): \< 15.5-r0
- chainguard postgresql-16 (Chainguard): \< 16.1-r0
- wolfi postgresql-12 (Wolfi): \< 12.17-r0
- wolfi postgresql-13 (Wolfi): \< 13.13-r0
- wolfi postgresql-14 (Wolfi): \< 14.10-r0
- wolfi postgresql-15 (Wolfi): \< 15.5-r0
- wolfi postgresql-16 (Wolfi): \< 16.1-r0
- debian postgresql-15 (Debian): \< 15.5-0+deb12u1
- ubuntu postgresql-10 (Ubuntu): \< 10.23-0ubuntu0.18.04.2+esm1
- ubuntu postgresql-12 (Ubuntu): \< 12.17-0ubuntu0.20.04.1
- ubuntu postgresql-14 (Ubuntu): \< 14.10-0ubuntu0.22.04.1
- ubuntu postgresql-9.3 (Ubuntu): All versions (No fix recorded)
- postgresql postgresql: ≥ 11.0, \< 11.22 \| ≥ 12.0, \< 12.17 \| ≥ 13.0, \< 13.13 \| ≥ 14.0, \< 14.10 \| ≥ 15.0, \< 15.5 \| 16.0

## References (first 20 of 35)

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

---

Data as of 2026-12-05T03:01:28.318Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
