CVE-2023-5868
No exploitation reported by the sources we read.
- Published2023-12-10
- Fixed in15.5 · 14.10 · 13.13 · 12.17 · 11.22
- WeaknessCWE-686
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2023-12-1018:15CVE publishedNVD
Observed activity
isMalicious corpus · updated 2026-10-23 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2023-5868?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2023-5868?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 15.x | ≥ 15.0, < 15.5 | 15.5 | NVD |
| 14.x | ≥ 14.0, < 14.10 | 14.10 | NVD |
| 13.x | ≥ 13.0, < 13.13 | 13.13 | NVD |
| 12.x | ≥ 12.0, < 12.17 | 12.17 | NVD |
| 11.x | ≥ 11.0, < 11.22 | 11.22 | NVD |
| 16.0 | = 16.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 16.0 | ≥ 16.0.0, < 16.0.1 | 16.0.1 | OSV |
| 15.x | ≥ 15.0.0, < 15.5.0 | 15.5.0 | OSV |
| 14.x | ≥ 14.0.0, < 14.10.0 | 14.10.0 | OSV |
| 13.x | ≥ 13.0.0, < 13.13.0 | 13.13.0 | OSV |
| 12.x | ≥ 12.0.0, < 12.17.0 | 12.17.0 | OSV |
| 11.x | ≥ 11.0.0, < 11.22.0 | 11.22.0 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.6 | = 8.6 | no fix published | NVD |
| 8.8 | = 8.8 | no fix published | NVD |
| 9.0 | = 9.0 | no fix published | NVD |
| 9.2 | = 9.2 | no fix published | NVD |
14 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- pg_repackAlmaLinux:9all versions · fixed in 1.4.8-1.module_el9.2.0+22+09653793
- pg_repackAlmaLinux:8all versions · fixed in 1.4.6-3.module_el8.6.0+2758+4f4474df
- pg_repackAlmaLinux:8all versions · fixed in 1.4.6-3.module_el8.6.0+2760+1746ec94
- pg_repackAlmaLinux:8all versions · fixed in 1.4.6-3.module_el8.6.0+3094+eb237fb8
- pg_repackAlmaLinux:8all versions · fixed in 1.4.6-3.module_el8.6.0+3095+ee60d910
- pg_repackAlmaLinux:8all versions · fixed in 1.4.8-1.module_el8.8.0+3487+43ec1b9f
- pgauditAlmaLinux:9all versions · fixed in 1.7.0-1.module_el9.2.0+22+09653793
- pgauditAlmaLinux:8all versions · fixed in 1.4.0-5.module_el8.6.0+2758+4f4474df
15 more package ranges on OSV.dev
Vendor advisories
Red Hat Security Advisory: rh-postgresql13-postgresql security update
Red Hat Security Advisory: postgresql:13 security update
Red Hat Security Advisory: postgresql:12 security update
Red Hat Security Advisory: postgresql:12 security update
Red Hat Security Advisory: postgresql:12 security update
Red Hat Security Advisory: postgresql:13 security update
1 more advisory
Fix
- Update PostgreSQL to 15.5 · 14.10 · 13.13 · 12.17 · 11.22
- Vendor fix Red Hat Product Security RHSA-2023:7772 · 66 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 If the postgresql service is running, it will be automatically restarted after installing this update.
- Workaround from the vendor Red Hat Product Security RHSA-2023:7772 · 66 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Advisories and patches
- www.postgresql.orgRelease Notes
- www.postgresql.orgMitigation · Vendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof-of-concept repositories
- none listed PoC-in-GitHub
Sources
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Published
- 2023-12-10
- Last Modified
- 2026-06-23
- NVD status
- Modified
Frequently asked questions
What is CVE-2023-5868?
Is CVE-2023-5868 actively exploited?
What is the CVSS score for CVE-2023-5868?
Running PostgreSQL? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.