CVE-2024-23685: Mod remote storage Hard-coded System User Credentials Vulnerability

MODERATE
Advisory Identifier: GHSA-m8v7-469p-5x89
CVSS 5.3
CWE-798
Published
Advisory Summary

CVE-2024-23685 is a MODERATE (CVSS 5.3) hard-coded system user credentials vulnerability (CWE-798: Use of Hard-coded Credentials) affecting Mod remote storage libraries in the Maven ecosystem. The issue involves hard-coded system user credentials in folio data export spring module. Remediation is available by upgrading affected packages to version 2.0.3, 1.7.2.

CVE-2024-23685 at a Glance

CVE Identifier CVE-2024-23685
GHSA Identifier GHSA-m8v7-469p-5x89
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-798: Use of Hard-coded Credentials
Affected Product Mod remote storage
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.3

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
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-2024-23685

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

org.folio:mod-remote-storage fixed: 2.0.3
<dependency>
    <groupId>org.folio</groupId>
    <artifactId>mod-remote-storage</artifactId>
    <version>2.0.3</version>
</dependency>
org.folio:mod-remote-storage fixed: 1.7.2
<dependency>
    <groupId>org.folio</groupId>
    <artifactId>mod-remote-storage</artifactId>
    <version>1.7.2</version>
</dependency>
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 -Dincludes=org.folio

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.folio

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

Note: The mvn dependency:tree -Dincludes=org.folio 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-798: Use of Hard-coded Credentials, where the product contains hard-coded credentials, such as a password or cryptographic key. In Mod remote storage, 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

### Impact The module creates a system user that is used to perform internal module-to-module operations. Credentials for this user are hard-coded in the source code. This makes it trivial to authenticate as this user, allowing unauthorized read access to these mod-inventory-storage records: instances, holdings, items, contributor-types, identifier-types. This includes records marked as suppressed from discovery. ### Patches Upgrade mod-remote-storage to >=2.0.3, or a 1.7.x version >=1.7.1. ### Workarounds No known workarounds. ### References https://wiki.folio.org/x/hbMMBw - FOLIO Security Advisory with Upgrade Instructions https://github.com/folio-org/mod-remote-storage/commit/57df495f76e9aa5be9ce7ce3a65f89b6dbcbc13b - Fix

CVE-2024-23685 Affected Mod remote storage Versions

2 component(s)
Fixed Versions:
2.0.31.7.2
Product / Package Ecosystem Affected Versions Fixed Version
org.folio:mod-remote-storage
Maven
≥ 2.0.0
< 2.0.3
2.0.3
org.folio:mod-remote-storage
Maven
< 1.7.2
1.7.2

References

Frequently Asked Questions

What is CVE-2024-23685?
CVE-2024-23685 is a security vulnerability in Mod remote storage involving Hard-coded System User Credentials in Folio Data Export Spring module under CWE-798: Use of Hard-coded Credentials.
Which Mod remote storage versions are affected?
Affected versions include releases prior to 2.0.3, 1.7.2 across affected packages: org.folio:mod-remote-storage.
What version fixes CVE-2024-23685?
Upgrading to 2.0.3, 1.7.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mod-remote-storage affected?
Yes, org.folio:mod-remote-storage is affected in releases prior to 2.0.3, 1.7.2. Upgrade your dependency to 2.0.3, 1.7.2 or later.
What is the CVSS score of CVE-2024-23685?
CVE-2024-23685 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-23685?
CVE-2024-23685 is classified under CWE-798: Use of Hard-coded Credentials (The product contains hard-coded credentials, such as a password or cryptographic key.).
How can I check Maven dependencies for CVE-2024-23685?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.folio'. 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-m8v7-469p-5x89",
  "modified" : "2026-01-22T20:40:36Z",
  "published" : "2023-07-25T14:44:27Z",
  "aliases" : [ "CVE-2024-23685" ],
  "summary" : "Hard-coded System User Credentials in Folio Data Export Spring module ",
  "details" : "### Impact\nThe module creates a system user that is used to perform internal module-to-module operations.  Credentials for this user are hard-coded in the source code.  This makes it trivial to authenticate as this user, allowing unauthorized read access to these mod-inventory-storage records: instances, holdings, items, contributor-types, identifier-types. This includes records marked as suppressed from discovery.\n\n### Patches\nUpgrade mod-remote-storage to >=2.0.3, or a 1.7.x version >=1.7.1.\n\n### Workarounds\nNo known workarounds.\n\n### References\nhttps://wiki.folio.org/x/hbMMBw - FOLIO Security Advisory with Upgrade Instructions\nhttps://github.com/folio-org/mod-remote-storage/commit/57df495f76e9aa5be9ce7ce3a65f89b6dbcbc13b - Fix",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.folio:mod-remote-storage"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.folio:mod-remote-storage"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/folio-org/mod-remote-storage/security/advisories/GHSA-m8v7-469p-5x89"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-23685"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/folio-org/mod-remote-storage/commit/57df495f76e9aa5be9ce7ce3a65f89b6dbcbc13b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/folio-org/mod-remote-storage"
  }, {
    "type" : "WEB",
    "url" : "https://vulncheck.com/advisories/vc-advisory-GHSA-m8v7-469p-5x89"
  }, {
    "type" : "WEB",
    "url" : "https://wiki.folio.org/x/hbMMBw"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-798" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-25T14:44:27Z",
    "nvd_published_at" : null
  }
}