CVE-2023-5868: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-3f9w-7983-qcmq
CVSS 4.3
CWE-686
Published
Advisory Summary

CVE-2023-5868 is a MODERATE (CVSS 4.3) security vulnerability vulnerability (CWE-686: Function Call With Incorrect Argument Type) affecting Software libraries in the Maven ecosystem. The weakness occurs when 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.. Remediation is available in the latest vendor maintenance releases.

CVE-2023-5868 at a Glance

CVE Identifier CVE-2023-5868
GHSA Identifier GHSA-3f9w-7983-qcmq
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-686: Function Call With Incorrect Argument Type
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 4.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-5868

To remediate this vulnerability, upgrade all affected Software dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-5868, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree

Analyze the terminal output to locate any version of Software in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-686: Function Call With Incorrect Argument Type, where 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. In Software, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

References

access.redhat.com/errata/rhsa-2023:75... WEB
https://access.redhat.com/errata/RHSA-2023:7581
access.redhat.com/errata/rhsa-2023:75... WEB
https://access.redhat.com/errata/RHSA-2023:7579
access.redhat.com/errata/rhsa-2024:03... WEB
https://access.redhat.com/errata/RHSA-2024:0337
access.redhat.com/errata/rhsa-2023:78... WEB
https://access.redhat.com/errata/RHSA-2023:7884
access.redhat.com/errata/rhsa-2023:78... WEB
https://access.redhat.com/errata/RHSA-2023:7883
access.redhat.com/errata/rhsa-2023:77... WEB
https://access.redhat.com/errata/RHSA-2023:7785
access.redhat.com/errata/rhsa-2023:77... WEB
https://access.redhat.com/errata/RHSA-2023:7784
access.redhat.com/errata/rhsa-2023:77... WEB
https://access.redhat.com/errata/RHSA-2023:7772
access.redhat.com/errata/rhsa-2023:77... WEB
https://access.redhat.com/errata/RHSA-2023:7770
access.redhat.com/errata/rhsa-2023:77... WEB
https://access.redhat.com/errata/RHSA-2023:7714
access.redhat.com/errata/rhsa-2023:76... WEB
https://access.redhat.com/errata/RHSA-2023:7695
access.redhat.com/errata/rhsa-2023:76... WEB
https://access.redhat.com/errata/RHSA-2023:7694
access.redhat.com/errata/rhsa-2023:76... WEB
https://access.redhat.com/errata/RHSA-2023:7667
access.redhat.com/errata/rhsa-2023:76... WEB
https://access.redhat.com/errata/RHSA-2023:7666
access.redhat.com/errata/rhsa-2023:76... WEB
https://access.redhat.com/errata/RHSA-2023:7656
access.redhat.com/errata/rhsa-2024:03... WEB
https://access.redhat.com/errata/RHSA-2024:0332
access.redhat.com/errata/rhsa-2024:03... WEB
https://access.redhat.com/errata/RHSA-2024:0304
access.redhat.com/errata/rhsa-2023:78... WEB
https://access.redhat.com/errata/RHSA-2023:7885
access.redhat.com/errata/rhsa-2023:76... WEB
https://access.redhat.com/errata/RHSA-2023:7616
access.redhat.com/errata/rhsa-2023:75... WEB
https://access.redhat.com/errata/RHSA-2023:7580
access.redhat.com/errata/rhsa-2023:75... WEB
https://access.redhat.com/errata/RHSA-2023:7545
NVD — CVE-2023-5868 NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-5868
Software Security Information SECURITY
https://www.postgresql.org/support/security/CVE-2023-5868
www.postgresql.org/about/news/postgres... WEB
https://www.postgresql.org/about/news/postgresql-161-155-1410-1313-1217-and-1122-released-2749
Software Security Information SECURITY
https://security.netapp.com/advisory/ntap-20240119-0003
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2023/11/msg00007.html
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=2247168
Software Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2023-5868

Frequently Asked Questions

What is CVE-2023-5868?
CVE-2023-5868 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-686: Function Call With Incorrect Argument Type.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2023-5868?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What is the CVSS score of CVE-2023-5868?
CVE-2023-5868 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2023-5868?
CVE-2023-5868 is classified under 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.).
How can I check Maven dependencies for CVE-2023-5868?
Run the dependency tree command: 'mvn dependency:tree'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3f9w-7983-qcmq",
  "modified" : "2025-11-04T21:30:50Z",
  "published" : "2023-12-10T18:30:18Z",
  "aliases" : [ "CVE-2023-5868" ],
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-5868"
  }, {
    "type" : "WEB",
    "url" : "https://www.postgresql.org/support/security/CVE-2023-5868"
  }, {
    "type" : "WEB",
    "url" : "https://www.postgresql.org/about/news/postgresql-161-155-1410-1313-1217-and-1122-released-2749"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20240119-0003"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2023/11/msg00007.html"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2247168"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2023-5868"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:0337"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:0332"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:0304"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7885"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7884"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7883"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7785"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7784"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7772"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7770"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7714"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7695"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7694"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7667"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7666"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7656"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7616"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7581"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7580"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7579"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7545"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-686" ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2023-12-10T18:15:07Z"
  }
}