CVE-2023-5868
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.
Description as published by the source, in English.
Key facts
- Published
- 2023-12-10
- Last modified
- 2026-11-24
- Assigned by
- secalert@redhat.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
2.8 %
higher than 85 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Postgresql | Postgresql | 16.0 | Affected |
| Postgresql | Postgresql | ≥ 11.0, < 11.22 | Affected |
| Postgresql | Postgresql | ≥ 12.0, < 12.17 | Affected |
| Postgresql | Postgresql | ≥ 13.0, < 13.13 | Affected |
| Postgresql | Postgresql | ≥ 14.0, < 14.10 | Affected |
| Postgresql | Postgresql | ≥ 15.0, < 15.5 | Affected |
| Redhat | Codeready Linux Builder Eus | 9.2 | Affected |
| Redhat | Codeready Linux Builder Eus For Power Little Endian Eus | 9.0_ppc64le | Affected |
| Redhat | Codeready Linux Builder Eus For Power Little Endian Eus | 9.2_ppc64le | Affected |
| Redhat | Codeready Linux Builder For Arm64 Eus | 8.6_aarch64 | Affected |
| Redhat | Codeready Linux Builder For Arm64 Eus | 9.0_aarch64 | Affected |
| Redhat | Codeready Linux Builder For Arm64 Eus | 9.2_aarch64 | Affected |
| Redhat | Codeready Linux Builder For Ibm Z Systems Eus | 9.0_s390x | Affected |
| Redhat | Codeready Linux Builder For Ibm Z Systems Eus | 9.2_s390x | Affected |
| Redhat | Codeready Linux Builder For Power Little Endian Eus | 9.0_ppc64le | Affected |
| Redhat | Codeready Linux Builder For Power Little Endian Eus | 9.2_ppc64le | Affected |
| Redhat | Enterprise Linux | 8.0 | Affected |
| Redhat | Enterprise Linux | 9.0 | Affected |
| Redhat | Enterprise Linux Eus | 8.6 | Affected |
| Redhat | Enterprise Linux Eus | 8.8 | Affected |
| Redhat | Enterprise Linux Eus | 9.0 | Affected |
| Redhat | Enterprise Linux Eus | 9.2 | Affected |
| Redhat | Enterprise Linux For Arm 64 | 8.0 | Affected |
| Redhat | Enterprise Linux For Arm 64 | 8.8_aarch64 | Affected |
| Redhat | Enterprise Linux For Ibm Z Systems | 8.0_s390x | Affected |
| Redhat | Enterprise Linux For Ibm Z Systems Eus | 8.6_s390x | Affected |
| Redhat | Enterprise Linux For Ibm Z Systems Eus | 8.8_s390x | Affected |
| Redhat | Enterprise Linux For Ibm Z Systems Eus | 9.0_s390x | Affected |
| Redhat | Enterprise Linux For Ibm Z Systems Eus | 9.2_s390x | Affected |
| Redhat | Enterprise Linux For Power Little Endian | 8.0_ppc64le | Affected |
| Redhat | Enterprise Linux For Power Little Endian Eus | 8.6_ppc64le | Affected |
| Redhat | Enterprise Linux For Power Little Endian Eus | 8.8_ppc64le | Affected |
| Redhat | Enterprise Linux For Power Little Endian Eus | 9.0_ppc64le | Affected |
| Redhat | Enterprise Linux For Power Little Endian Eus | 9.2_ppc64le | Affected |
| Redhat | Enterprise Linux Server Aus | 8.2 | Affected |
| Redhat | Enterprise Linux Server Aus | 8.4 | Affected |
| Redhat | Enterprise Linux Server Aus | 8.6 | Affected |
| Redhat | Enterprise Linux Server Aus | 9.2 | Affected |
| Redhat | Enterprise Linux Server Tus | 8.2 | Affected |
| Redhat | Enterprise Linux Server Tus | 8.4 | Affected |
| Redhat | Enterprise Linux Server Tus | 8.6 | Affected |
| Redhat | Software Collections | 1.0 | Affected |
Weakness type
-
CWE-686: Function Call With Incorrect Argument Type
The product calls a function, procedure, or routine, but the caller specifies an argument that is the wrong data type, which may lead to resultant weaknesses.
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/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…
- https://www.postgresql.org/support/security/CVE-2023-5868/
- https://access.redhat.com/errata/RHSA-2023:7545
- https://access.redhat.com/errata/RHSA-2023:7579
- https://access.redhat.com/errata/RHSA-2023:7580
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.