Vulnerabilities in pkg:maven/org.apache.lucene/lucene-replicator
PACKAGECVE-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.
pkg:maven/org.apache.lucene/lucene-replicator
Vulnerability advisories affecting package pkg:maven/org.apache.lucene/lucene-replicator. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-g643-xq6w-r67c | CVE-2024-45772 | MODERATE | Deserialization of Untrusted Data vulnerability in Apache Lucene Replicator. |
CVE-2024-45772 at a Glance
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).
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.
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-replicator</artifactId>
<version>9.12.0</version>
</dependency>
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
CVE-2024-45772 Affected Lucene replicator Versions
1 component(s)| 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?
Which Lucene replicator versions are affected?
What version fixes CVE-2024-45772?
Is lucene-replicator affected?
What is the CVSS score of CVE-2024-45772?
What CWE is associated with CVE-2024-45772?
How can I check Maven dependencies for CVE-2024-45772?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}