CVE-2024-45772: Lucene replicator Deserialization Of Untrusted Data Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-g643-xq6w-r67c
CVSS 5.1
CWE-502
Published
Advisory Summary

CVE-2024-45772 is a MODERATE (CVSS 5.1) deserialization of untrusted data vulnerability vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Lucene replicator libraries in the Maven ecosystem. The issue involves deserialization of untrusted data vulnerability in apache lucene replicator.. Remediation is available by upgrading affected packages to version 9.12.0.

CVE-2024-45772 at a Glance

CVE Identifier CVE-2024-45772
GHSA Identifier GHSA-g643-xq6w-r67c
Severity MODERATE
CVSS v3.1 Base Score 5.1
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Lucene replicator
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.1

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

Attack Vector Adjacent (AV:A)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2024-45772

To remediate this vulnerability, upgrade all affected Lucene replicator 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.apache.lucene:lucene-replicator fixed: 9.12.0
<dependency>
    <groupId>org.apache.lucene</groupId>
    <artifactId>lucene-replicator</artifactId>
    <version>9.12.0</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.apache.lucene

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.lucene

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

Note: The mvn dependency:tree -Dincludes=org.apache.lucene 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Lucene replicator, 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

This issue affects Apache Lucene's replicator module: from 4.4.0 before 9.12.0. The deprecated org.apache.lucene.replicator.http package is affected. The org.apache.lucene.replicator.nrt package is not affected. Users are recommended to upgrade to version 9.12.0, which fixes the issue. The deserialization can only be triggered if users actively deploy an network-accessible implementation and a corresponding client using a HTTP library that uses the API (e.g., a custom servlet and HTTPClient). Java serialization filters (such as -Djdk.serialFilter='!*' on the commandline) can mitigate the issue on vulnerable versions without impacting functionality.

CVE-2024-45772 Affected Lucene replicator Versions

1 component(s)
Fixed Versions:
9.12.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.lucene:lucene-replicator
Maven
≥ 4.4.0
< 9.12.0
9.12.0

References

Frequently Asked Questions

What is CVE-2024-45772?
CVE-2024-45772 is a security vulnerability in Lucene replicator involving Deserialization of Untrusted Data vulnerability in Apache Lucene Replicator. under CWE-502: Deserialization of Untrusted Data.
Which Lucene replicator versions are affected?
Affected versions include releases prior to 9.12.0 across affected packages: org.apache.lucene:lucene-replicator.
What version fixes CVE-2024-45772?
Upgrading to 9.12.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is lucene-replicator affected?
Yes, org.apache.lucene:lucene-replicator is affected in releases prior to 9.12.0. Upgrade your dependency to 9.12.0 or later.
What is the CVSS score of CVE-2024-45772?
CVE-2024-45772 has a CVSS v3.1 base score of 5.1 (MODERATE) with vector string CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:L.
What CWE is associated with CVE-2024-45772?
CVE-2024-45772 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Maven dependencies for CVE-2024-45772?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.lucene'. 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-g643-xq6w-r67c",
  "modified" : "2024-12-12T19:25:02Z",
  "published" : "2024-09-30T09:30:47Z",
  "aliases" : [ "CVE-2024-45772" ],
  "summary" : "Deserialization of Untrusted Data vulnerability in Apache Lucene Replicator.",
  "details" : "This issue affects Apache Lucene's replicator module: from 4.4.0 before 9.12.0.\nThe deprecated org.apache.lucene.replicator.http package is affected.\nThe org.apache.lucene.replicator.nrt package is not affected.\n\nUsers are recommended to upgrade to version 9.12.0, which fixes the issue.\n\nThe deserialization can only be triggered if users actively deploy an network-accessible implementation and a corresponding client using a HTTP library that uses the API (e.g., a custom servlet and HTTPClient). Java serialization filters (such as -Djdk.serialFilter='!*' on the commandline) can mitigate the issue on vulnerable versions without impacting functionality.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.lucene:lucene-replicator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.4.0"
      }, {
        "fixed" : "9.12.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45772"
  }, {
    "type" : "PACKAGE",
    "url" : "https://gitbox.apache.org/repos/asf?p=lucene.git"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/3f3oph7bqnqspb9q5p0gm5mgc1b6thjo"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/09/29/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-30T21:46:44Z",
    "nvd_published_at" : "2024-09-30T09:15:02Z"
  }
}