Skip to main content
No exploitation reportedFix available

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?

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
  1. 2023-12-1018:15CVE publishedNVD

Observed activity

isMalicious corpus · updated 2026-10-23 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block 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
PostgreSQL
BranchAffectedFixed in
15.x≥ 15.0, < 15.515.5
14.x≥ 14.0, < 14.1014.10
13.x≥ 13.0, < 13.1313.13
12.x≥ 12.0, < 12.1712.17
11.x≥ 11.0, < 11.2211.22
16.0= 16.0no fix published
postgresql
BranchAffectedFixed in
16.0≥ 16.0.0, < 16.0.116.0.1
15.x≥ 15.0.0, < 15.5.015.5.0
14.x≥ 14.0.0, < 14.10.014.10.0
13.x≥ 13.0.0, < 13.13.013.13.0
12.x≥ 12.0.0, < 12.17.012.17.0
11.x≥ 11.0.0, < 11.22.011.22.0
Redhat enterprise linux eus
BranchAffectedFixed in
8.6= 8.6no fix published
8.8= 8.8no fix published
9.0= 9.0no fix published
9.2= 9.2no fix published

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

  • RHSA-2023:7772 Red Hat Product Security66 products fixed

    Red Hat Security Advisory: rh-postgresql13-postgresql security update

  • RHSA-2023:7695 Red Hat Product Security192 products fixed

    Red Hat Security Advisory: postgresql:13 security update

  • RHSA-2023:7694 Red Hat Product Security192 products fixed

    Red Hat Security Advisory: postgresql:12 security update

  • RHSA-2023:7666 Red Hat Product Security137 products fixed

    Red Hat Security Advisory: postgresql:12 security update

  • RHSA-2023:7667 Red Hat Product Security132 products fixed

    Red Hat Security Advisory: postgresql:12 security update

  • RHSA-2023:7580 Red Hat Product Security137 products fixed

    Red Hat Security Advisory: postgresql:13 security update

1 more advisory

Full record on NVD

Fix

  1. Update PostgreSQL to 15.5 · 14.10 · 13.13 · 12.17 · 11.22
  2. 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.
  3. 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

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
none listed
PoC-in-GitHub

Sources

  • CISA-ADPSSVC decisionnone2025-08-15
  • OpenCVESSVC decisionnone—
  • CNACVSS 3.14.3read 2026-10-23
  • NVDCVSS 3.14.3read 2026-10-23
  • CNAweakness (CWE)CWE-686read 2026-10-23
  • FIRST EPSSEPSS score2.8 %2026-10-22
  • OSVaffected packages—

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?

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.

Is CVE-2023-5868 actively exploited?

Active exploitation of CVE-2023-5868 has not been confirmed. Its EPSS score was 2.8% on 2026-10-22, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2023-5868?

CVE-2023-5868 has a CVSS v3 base score of 4.3 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.

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