Postgresql: memory disclosure in aggregate function calls
Summary
| CVE | CVE-2023-5868 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-12-10 18:15:07 UTC |
| Updated | 2026-06-23 18:17:37 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 4.3 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Problem Types: CWE-686 | NVD-CWE-noinfo | CWE-686 Function Call With Incorrect Argument Type
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 4.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| 3.1 | [email protected] | Secondary | 4.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| 3.1 | CNA | CVSS | 4.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
LowIntegrity
NoneAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Postgresql | Postgresql | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Red Hat | Red Hat Advanced Cluster Security 4.2 | unaffected 4.2.4-6 * rpm | Not specified |
| CNA | Red Hat | Red Hat Advanced Cluster Security 4.2 | unaffected 4.2.4-6 * rpm | Not specified |
| CNA | Red Hat | Red Hat Advanced Cluster Security 4.2 | unaffected 4.2.4-7 * rpm | Not specified |
| CNA | Red Hat | Red Hat Advanced Cluster Security 4.2 | unaffected 4.2.4-6 * rpm | Not specified |
| CNA | Red Hat | Red Hat Advanced Cluster Security 4.2 | unaffected 4.2.4-7 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8 | unaffected 8090020231114113712.a75119d5 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8 | unaffected 8090020231128173330.a75119d5 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8 | unaffected 8090020231114113548.a75119d5 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.2 Advanced Update Support | unaffected 8020020231128165246.4cda2c84 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.2 Telecommunications Update Service | unaffected 8020020231128165246.4cda2c84 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.2 Update Services For SAP Solutions | unaffected 8020020231128165246.4cda2c84 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | unaffected 8040020231127153301.522a0ee4 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | unaffected 8040020231127154806.522a0ee4 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.4 Telecommunications Update Service | unaffected 8040020231127153301.522a0ee4 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.4 Telecommunications Update Service | unaffected 8040020231127154806.522a0ee4 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.4 Update Services For SAP Solutions | unaffected 8040020231127153301.522a0ee4 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.4 Update Services For SAP Solutions | unaffected 8040020231127154806.522a0ee4 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.6 Extended Update Support | unaffected 8060020231114115246.ad008a3a * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.6 Extended Update Support | unaffected 8060020231128165328.ad008a3a * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.8 Extended Update Support | unaffected 8080020231114105206.63b34585 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.8 Extended Update Support | unaffected 8080020231128165335.63b34585 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8.8 Extended Update Support | unaffected 8080020231113134015.63b34585 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | unaffected 0:13.13-1.el9_3 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | unaffected 9030020231120082734.rhel9 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9.0 Extended Update Support | unaffected 0:13.13-1.el9_0 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9.2 Extended Update Support | unaffected 0:13.13-1.el9_2 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9.2 Extended Update Support | unaffected 9020020231115020618.rhel9 * rpm | Not specified |
| CNA | Red Hat | Red Hat Software Collections For Red Hat Enterprise Linux 7 | unaffected 0:12.17-1.el7 * rpm | Not specified |
| CNA | Red Hat | Red Hat Software Collections For Red Hat Enterprise Linux 7 | unaffected 0:13.13-1.el7 * rpm | Not specified |
| CNA | Red Hat | RHACS-3.74-RHEL-8 | unaffected 3.74.8-9 * rpm | Not specified |
| CNA | Red Hat | RHACS-3.74-RHEL-8 | unaffected 3.74.8-9 * rpm | Not specified |
| CNA | Red Hat | RHACS-3.74-RHEL-8 | unaffected 3.74.8-7 * rpm | Not specified |
| CNA | Red Hat | RHACS-3.74-RHEL-8 | unaffected 3.74.8-9 * rpm | Not specified |
| CNA | Red Hat | RHACS-3.74-RHEL-8 | unaffected 3.74.8-9 * rpm | Not specified |
| CNA | Red Hat | RHACS-4.1-RHEL-8 | unaffected 4.1.6-6 * rpm | Not specified |
| CNA | Red Hat | RHACS-4.1-RHEL-8 | unaffected 4.1.6-6 * rpm | Not specified |
| CNA | Red Hat | RHACS-4.1-RHEL-8 | unaffected 4.1.6-6 * rpm | Not specified |
| CNA | Red Hat | RHACS-4.1-RHEL-8 | unaffected 4.1.6-6 * rpm | Not specified |
| CNA | Red Hat | RHACS-4.1-RHEL-8 | unaffected 4.1.6-6 * rpm | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 6 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 7 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 8 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Enterprise Linux 9 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Software Collections | Not specified | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| 2247168 – (CVE-2023-5868) CVE-2023-5868 postgresql: Memory disclosure in aggregate function calls | af854a3a-2127-422b-91ae-364da2661108 | bugzilla.redhat.com | Issue Tracking |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| December 2023 PostgreSQL Vulnerabilities in NetApp Products | NetApp Product Security | af854a3a-2127-422b-91ae-364da2661108 | security.netapp.com | |
| PostgreSQL: PostgreSQL 16.1, 15.5, 14.10, 13.13, 12.17, and 11.22 Released! | af854a3a-2127-422b-91ae-364da2661108 | www.postgresql.org | Release Notes |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| PostgreSQL: CVE-2023-5868: Memory disclosure in aggregate function calls | af854a3a-2127-422b-91ae-364da2661108 | www.postgresql.org | Mitigation, Vendor Advisory |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| Red Hat | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | |
| lists.debian.org/debian-lts-announce/2023/11/msg00007.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| cve-details | af854a3a-2127-422b-91ae-364da2661108 | access.redhat.com | Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Upstream acknowledges Jingzhou Fu as the original reporter. (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2023-10-31T00:00:00.000Z | Reported to Red Hat. |
| CNA | 2023-11-09T00:00:00.000Z | Made public. |
Workarounds
CNA: Mitigation 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.
Legacy QID Mappings
- 161207 Oracle Enterprise Linux Security Update for postgresql:13 (ELSA-2023-7581)
- 161232 Oracle Enterprise Linux Security Update for postgresql:15 (ELSA-2023-7785)
- 161242 Oracle Enterprise Linux Security Update for postgresql (ELSA-2023-7784)
- 161250 Oracle Enterprise Linux Security Update for postgresql:12 (ELSA-2023-7714)
- 161253 Oracle Enterprise Linux Security Update for postgresql:15 (ELSA-2023-7884)
- 199981 Ubuntu Security Notification for PostgreSQL Vulnerability (USN-6538-1)
- 200053 Ubuntu Security Notification for PostgreSQL Vulnerabilities (USN-6538-2)
- 242527 Red Hat Update for postgresql (RHSA-2023:7545)
- 242534 Red Hat Update for postgresql:13 (RHSA-2023:7580)
- 242536 Red Hat Update for postgresql:13 (RHSA-2023:7581)
- 242537 Red Hat Update for postgresql:13 (RHSA-2023:7579)
- 242540 Red Hat Update for postgresql (RHSA-2023:7616)
- 242546 Red Hat Update for postgresql:12 (RHSA-2023:7666)
- 242547 Red Hat Update for postgresql:12 (RHSA-2023:7667)
- 242550 Red Hat Update for postgresql:13 (RHSA-2023:7695)
- 242552 Red Hat Update for postgresql:12 (RHSA-2023:7694)
- 242558 Red Hat Update for postgresql:12 (RHSA-2023:7714)
- 242591 Red Hat Update for rh-postgresql12-postgresql (RHSA-2023:7770)
- 242592 Red Hat Update for rh-postgresql13-postgresql (RHSA-2023:7772)
- 242611 Red Hat Update for postgresql (RHSA-2023:7784)
- 242614 Red Hat Update for postgresql:15 (RHSA-2023:7785)
- 242634 Red Hat Update for postgresql:15 (RHSA-2023:7885)
- 242636 Red Hat Update for postgresql:15 (RHSA-2023:7883)
- 242657 Red Hat Update for postgresql:15 (RHSA-2023:7884)
- 357052 Amazon Linux Security Advisory for postgresql : ALAS2POSTGRESQL12-2024-007
- 357056 Amazon Linux Security Advisory for postgresql : ALAS2POSTGRESQL14-2024-004
- 357060 Amazon Linux Security Advisory for postgresql : ALAS2POSTGRESQL13-2024-005
- 379115 Alibaba Cloud Linux Security Update for postgresql:13 (ALINUX3-SA-2023:0139)
- 503560 Alpine Linux Security Update for postgresql14
- 503561 Alpine Linux Security Update for postgresql12
- 503562 Alpine Linux Security Update for postgresql15
- 505921 Alpine Linux Security Update for postgresql15
- 505922 Alpine Linux Security Update for postgresql16
- 506164 Alpine Linux Security Update for postgresql14
- 6000321 Debian Security Update for postgresql-13 (DSA 5554-1)
- 6000322 Debian Security Update for postgresql-15 (DSA 5553-1)
- 6000323 Debian Security Update for postgresql-11 (DLA 3651-1)
- 673520 EulerOS Security Update for postgresql (EulerOS-SA-2024-1289)
- 691354 Free Berkeley Software Distribution (FreeBSD) Security Update for postgresql (31f45d06-7f0e-11ee-94b4-6cc21735f730)
- 755251 SUSE Enterprise Linux Security Update for postgresql14 (SUSE-SU-2023:4418-1)
- 755253 SUSE Enterprise Linux Security Update for postgresql, postgresql15, postgresql16 (SUSE-SU-2023:4425-1)
- 755261 SUSE Enterprise Linux Security Update for postgresql13 (SUSE-SU-2023:4434-1)
- 755262 SUSE Enterprise Linux Security Update for postgresql12 (SUSE-SU-2023:4433-1)
- 755269 SUSE Enterprise Linux Security Update for postgresql13 (SUSE-SU-2023:4455-1)
- 755270 SUSE Enterprise Linux Security Update for postgresql12 (SUSE-SU-2023:4454-1)
- 755286 SUSE Enterprise Linux Security Update for postgresql14 (SUSE-SU-2023:4479-1)
- 755603 SUSE Enterprise Linux Security Update for postgresql, postgresql15, postgresql16 (SUSE-SU-2024:0106-1)
- 907716 Common Base Linux Mariner (CBL-Mariner) Security Update for postgresql (32106-1)
- 941485 AlmaLinux Security Update for postgresql:13 (ALSA-2023:7581)
- 941501 AlmaLinux Security Update for postgresql (ALSA-2023:7784)
- 941508 AlmaLinux Security Update for postgresql:12 (ALSA-2023:7714)
- 941510 AlmaLinux Security Update for postgresql:15 (ALSA-2023:7785)
- 941512 AlmaLinux Security Update for postgresql:15 (ALSA-2023:7884)
- 961088 Rocky Linux Security Update for postgresql:13 (RLSA-2023:7581)