CVE-2024-45216: Solr Improper Authentication Vulnerability Vulnerability
CRITICALCVE-2024-45216 is a CRITICAL (CVSS 9.8) improper authentication vulnerability vulnerability (CWE-287: Improper Authentication) affecting Solr libraries in the Maven ecosystem. The issue involves improper authentication vulnerability in apache solr. Remediation is available by upgrading affected packages to version 8.11.4, 9.7.0.
CVE-2024-45216 at a Glance
Security Impact
CVSS: 9.8
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:H/I:H/A:H).
How to Fix CVE-2024-45216
To remediate this vulnerability, upgrade all affected Solr 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.solr</groupId>
<artifactId>solr</artifactId>
<version>8.11.4</version>
</dependency>
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr</artifactId>
<version>9.7.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.solr
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2024-45216, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.solr
Analyze the terminal output to locate any version of Solr in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.11.4), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.solr 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Solr, 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-45216 Affected Solr Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.solr:solr
|
Maven |
≥ 5.3.0
< 8.11.4
|
8.11.4
|
|
org.apache.solr:solr
|
Maven |
≥ 9.0.0
< 9.7.0
|
9.7.0
|
References
Frequently Asked Questions
What is CVE-2024-45216?
Which Solr versions are affected?
What version fixes CVE-2024-45216?
Is solr affected?
What is the CVSS score of CVE-2024-45216?
What CWE is associated with CVE-2024-45216?
How can I check Maven dependencies for CVE-2024-45216?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mjvf-4h88-6xm3",
"modified" : "2025-07-02T00:01:27Z",
"published" : "2024-10-16T09:30:31Z",
"aliases" : [ "CVE-2024-45216" ],
"summary" : "Improper Authentication vulnerability in Apache Solr",
"details" : "Solr instances using the PKIAuthenticationPlugin, which is enabled by default when Solr Authentication is used, are vulnerable to Authentication bypass. A fake ending at the end of any Solr API URL path, will allow requests to skip Authentication while maintaining the API contract with the original URL Path. This fake ending looks like an unprotected API path, however it is stripped off internally after authentication but before API routing.\n\n\nThis issue affects Apache Solr: from 5.3.0 before 8.11.4, from 9.0.0 before 9.7.0.\n\nUsers are recommended to upgrade to version 9.7.0, or 8.11.4, which fix the issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.solr:solr"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.3.0"
}, {
"fixed" : "8.11.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.solr:solr"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.0.0"
}, {
"fixed" : "9.7.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45216"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/SOLR-17417"
}, {
"type" : "WEB",
"url" : "https://solr.apache.org/security.html#cve-2024-45216-apache-solr-authentication-bypass-possible-using-a-fake-url-path-ending"
}, {
"type" : "PACKAGE",
"url" : "http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/webapp"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2024/10/15/8"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287", "CWE-863" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-10-16T17:46:16Z",
"nvd_published_at" : "2024-10-16T08:15:05Z"
}
}