Vulnerabilities in pkg:maven/org.xbib.elasticsearch/log4j
PACKAGECVE-2021-44228 is a CRITICAL (CVSS 10.0) remote code injection vulnerability (CWE-917: Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')) affecting Log4j core libraries in the Maven ecosystem. The issue involves remote code injection in log4j. Remediation is available by upgrading affected packages to version 2.15.0, 2.3.1, 2.12.2, 1.9.2, 1.10.8, 1.11.10, 2.0.11.
pkg:maven/org.xbib.elasticsearch/log4j
Vulnerability advisories affecting package pkg:maven/org.xbib.elasticsearch/log4j. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-jfh8-c2jp-5v3q | CVE-2021-44228 | CRITICAL | Remote code injection in Log4j |
CVE-2021-44228 at a Glance
Security Impact
CVSS: 10.0
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:C/C:H/I:H/A:H/E:H).
How to Fix CVE-2021-44228
To remediate this vulnerability, upgrade all affected Log4j core 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.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.15.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.12.2</version>
</dependency>
<dependency>
<groupId>com.guicedee.services</groupId>
<artifactId>log4j-core</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.xbib.elasticsearch</groupId>
<artifactId>log4j</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>uk.co.nichesolutions.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.ops4j.pax.logging</groupId>
<artifactId>pax-logging-log4j2</artifactId>
<version>1.9.2</version>
</dependency>
<dependency>
<groupId>org.ops4j.pax.logging</groupId>
<artifactId>pax-logging-log4j2</artifactId>
<version>1.10.8</version>
</dependency>
<dependency>
<groupId>org.ops4j.pax.logging</groupId>
<artifactId>pax-logging-log4j2</artifactId>
<version>1.11.10</version>
</dependency>
<dependency>
<groupId>org.ops4j.pax.logging</groupId>
<artifactId>pax-logging-log4j2</artifactId>
<version>2.0.11</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.logging.log4j
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2021-44228, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.logging.log4j
Analyze the terminal output to locate any version of Log4j core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.15.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.logging.log4j 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-917: Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection'), where the product constructs all or part of an expression language (el) statement in a framework such as a java server page (jsp) using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended el statement before it is executed. In Log4j core, 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-2021-44228 Affected Log4j core Versions
10 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.logging.log4j:log4j-core
|
Maven |
≥ 2.13.0
< 2.15.0
|
2.15.0
|
|
org.apache.logging.log4j:log4j-core
|
Maven |
≥ 2.0-beta9
< 2.3.1
|
2.3.1
|
|
org.apache.logging.log4j:log4j-core
|
Maven |
≥ 2.4
< 2.12.2
|
2.12.2
|
|
com.guicedee.services:log4j-core
|
Maven |
≤ 1.2.1.2-jre17
|
|
|
org.xbib.elasticsearch:log4j
|
Maven |
6.3.2.1
All 1 versions
6.3.2.1
|
None specified
|
|
uk.co.nichesolutions.logging.log4j:log4j-core
|
Maven |
2.6.3-CUSTOM
All 1 versions
2.6.3-CUSTOM
|
None specified
|
|
org.ops4j.pax.logging:pax-logging-log4j2
|
Maven |
≥ 1.8.0
< 1.9.2
|
1.9.2
|
|
org.ops4j.pax.logging:pax-logging-log4j2
|
Maven |
≥ 1.10.0
< 1.10.8
|
1.10.8
|
|
org.ops4j.pax.logging:pax-logging-log4j2
|
Maven |
≥ 1.11.0
< 1.11.10
|
1.11.10
|
|
org.ops4j.pax.logging:pax-logging-log4j2
|
Maven |
≥ 2.0.0
< 2.0.11
|
2.0.11
|
References
Frequently Asked Questions
What is CVE-2021-44228?
Which Log4j core versions are affected?
What version fixes CVE-2021-44228?
Is log4j-core affected?
Is log4j affected?
What is the CVSS score of CVE-2021-44228?
What CWE is associated with CVE-2021-44228?
How can I check Maven dependencies for CVE-2021-44228?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jfh8-c2jp-5v3q",
"modified" : "2025-10-22T19:13:24Z",
"published" : "2021-12-10T00:40:56Z",
"aliases" : [ "CVE-2021-44228" ],
"summary" : "Remote code injection in Log4j",
"details" : "# Summary\n\nLog4j versions prior to 2.16.0 are subject to a remote code execution vulnerability via the ldap JNDI parser.\nAs per [Apache's Log4j security guide](https://logging.apache.org/log4j/2.x/security.html): Apache Log4j2 <=2.14.1 JNDI features used in configuration, log messages, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoints. An attacker who can control log messages or log message parameters can execute arbitrary code loaded from LDAP servers when message lookup substitution is enabled. From log4j 2.16.0, this behavior has been disabled by default.\n\nLog4j version 2.15.0 contained an earlier fix for the vulnerability, but that patch did not disable attacker-controlled JNDI lookups in all situations. For more information, see the `Updated advice for version 2.16.0` section of this advisory.\n\n# Impact\n\nLogging untrusted or user controlled data with a vulnerable version of Log4J may result in Remote Code Execution (RCE) against your application. This includes untrusted data included in logged errors such as exception traces, authentication failures, and other unexpected vectors of user controlled input. \n\n# Affected versions\n\nAny Log4J version prior to v2.15.0 is affected to this specific issue.\n\nThe v1 branch of Log4J which is considered End Of Life (EOL) is vulnerable to other RCE vectors so the recommendation is to still update to 2.16.0 where possible.\n\n## Security releases\nAdditional backports of this fix have been made available in versions 2.3.1, 2.12.2, and 2.12.3\n\n## Affected packages\nOnly the `org.apache.logging.log4j:log4j-core` package is directly affected by this vulnerability. The `org.apache.logging.log4j:log4j-api` should be kept at the same version as the `org.apache.logging.log4j:log4j-core` package to ensure compatability if in use.\n\n# Remediation Advice\n\n## Updated advice for version 2.16.0\n\nThe Apache Logging Services team provided updated mitigation advice upon the release of version 2.16.0, which [disables JNDI by default and completely removes support for message lookups](https://logging.apache.org/log4j/2.x/changes-report.html#a2.16.0).\nEven in version 2.15.0, lookups used in layouts to provide specific pieces of context information will still recursively resolve, possibly triggering JNDI lookups. This problem is being tracked as [CVE-2021-45046](https://nvd.nist.gov/vuln/detail/CVE-2021-45046). More information is available on the [GitHub Security Advisory for CVE-2021-45046](https://github.com/advisories/GHSA-7rjr-3q55-vv33).\n\nUsers who want to avoid attacker-controlled JNDI lookups but cannot upgrade to 2.16.0 must [ensure that no such lookups resolve to attacker-provided data and ensure that the the JndiLookup class is not loaded](https://issues.apache.org/jira/browse/LOG4J2-3221).\n\nPlease note that Log4J v1 is End Of Life (EOL) and will not receive patches for this issue. Log4J v1 is also vulnerable to other RCE vectors and we recommend you migrate to Log4J 2.16.0 where possible.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.logging.log4j:log4j-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.13.0"
}, {
"fixed" : "2.15.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.logging.log4j:log4j-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0-beta9"
}, {
"fixed" : "2.3.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.logging.log4j:log4j-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.4"
}, {
"fixed" : "2.12.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.guicedee.services:log4j-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.2.1.2-jre17"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xbib.elasticsearch:log4j"
},
"versions" : [ "6.3.2.1" ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "uk.co.nichesolutions.logging.log4j:log4j-core"
},
"versions" : [ "2.6.3-CUSTOM" ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.ops4j.pax.logging:pax-logging-log4j2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.8.0"
}, {
"fixed" : "1.9.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.ops4j.pax.logging:pax-logging-log4j2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.10.0"
}, {
"fixed" : "1.10.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.ops4j.pax.logging:pax-logging-log4j2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.11.0"
}, {
"fixed" : "1.11.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.ops4j.pax.logging:pax-logging-log4j2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.11"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-44228"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/logging-log4j2/pull/608"
}, {
"type" : "WEB",
"url" : "https://github.com/github/advisory-database/pull/5501"
}, {
"type" : "WEB",
"url" : "https://cert-portal.siemens.com/productcert/pdf/ssa-397453.pdf"
}, {
"type" : "WEB",
"url" : "https://packetstormsecurity.com/files/165673/UniFi-Network-Application-Unauthenticated-Log4Shell-Remote-Code-Execution.html"
}, {
"type" : "WEB",
"url" : "https://packetstormsecurity.com/files/167794/Open-Xchange-App-Suite-7.10.x-Cross-Site-Scripting-Command-Injection.html"
}, {
"type" : "WEB",
"url" : "https://packetstormsecurity.com/files/167917/MobileIron-Log4Shell-Remote-Command-Execution.html"
}, {
"type" : "WEB",
"url" : "https://packetstormsecurity.com/files/171626/AD-Manager-Plus-7122-Remote-Code-Execution.html"
}, {
"type" : "WEB",
"url" : "https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0032"
}, {
"type" : "WEB",
"url" : "https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd"
}, {
"type" : "WEB",
"url" : "https://seclists.org/fulldisclosure/2022/Dec/2"
}, {
"type" : "WEB",
"url" : "https://seclists.org/fulldisclosure/2022/Jul/11"
}, {
"type" : "WEB",
"url" : "https://seclists.org/fulldisclosure/2022/Mar/23"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20211210-0007"
}, {
"type" : "WEB",
"url" : "https://support.apple.com/kb/HT213189"
}, {
"type" : "WEB",
"url" : "https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-log4j-qRuKNEbd"
}, {
"type" : "WEB",
"url" : "https://twitter.com/kurtseifried/status/1469345530182455296"
}, {
"type" : "WEB",
"url" : "https://www.bentley.com/en/common-vulnerability-exposure/be-2022-0001"
}, {
"type" : "WEB",
"url" : "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-44228"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2021/dsa-5020"
}, {
"type" : "WEB",
"url" : "https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00646.html"
}, {
"type" : "WEB",
"url" : "https://www.kb.cert.org/vuls/id/930724"
}, {
"type" : "WEB",
"url" : "https://www.nu11secur1ty.com/2021/12/cve-2021-44228.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/alert-cve-2021-44228.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpuapr2022.html"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujan2022.html"
}, {
"type" : "WEB",
"url" : "https://cert-portal.siemens.com/productcert/pdf/ssa-479842.pdf"
}, {
"type" : "WEB",
"url" : "https://cert-portal.siemens.com/productcert/pdf/ssa-661247.pdf"
}, {
"type" : "WEB",
"url" : "https://cert-portal.siemens.com/productcert/pdf/ssa-714170.pdf"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-7rjr-3q55-vv33"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/logging-log4j2"
}, {
"type" : "WEB",
"url" : "https://github.com/cisagov/log4j-affected-db"
}, {
"type" : "WEB",
"url" : "https://github.com/cisagov/log4j-affected-db/blob/develop/SOFTWARE-LIST.md"
}, {
"type" : "WEB",
"url" : "https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-44228"
}, {
"type" : "WEB",
"url" : "https://github.com/tangxiaofeng7/apache-log4j-poc"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/LOG4J2-3198"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/LOG4J2-3201"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/LOG4J2-3214"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/LOG4J2-3221"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2021/12/msg00007.html"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M5CSVUNV4HWZZXGOKNSK6L7RPM7BOKIB"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VU57UJDCFIASIO35GC55JMKSRXJMCDFM"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M5CSVUNV4HWZZXGOKNSK6L7RPM7BOKIB"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VU57UJDCFIASIO35GC55JMKSRXJMCDFM"
}, {
"type" : "WEB",
"url" : "https://logging.apache.org/log4j/2.x/changes-report.html#a2.15.0"
}, {
"type" : "WEB",
"url" : "https://logging.apache.org/log4j/2.x/manual/lookups.html#JndiLookup"
}, {
"type" : "WEB",
"url" : "https://logging.apache.org/log4j/2.x/manual/migration.html"
}, {
"type" : "WEB",
"url" : "https://logging.apache.org/log4j/2.x/security.html"
}, {
"type" : "WEB",
"url" : "https://msrc-blog.microsoft.com/2021/12/11/microsofts-response-to-cve-2021-44228-apache-log4j2"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/165225/Apache-Log4j2-2.14.1-Remote-Code-Execution.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/165260/VMware-Security-Advisory-2021-0028.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/165261/Apache-Log4j2-2.14.1-Information-Disclosure.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/165270/Apache-Log4j2-2.14.1-Remote-Code-Execution.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/165281/Log4j2-Log4Shell-Regexes.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/165282/Log4j-Payload-Generator.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/165306/L4sh-Log4j-Remote-Code-Execution.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/165307/Log4j-Remote-Code-Execution-Word-Bypassing.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/165311/log4j-scan-Extensive-Scanner.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/165371/VMware-Security-Advisory-2021-0028.4.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/165532/Log4Shell-HTTP-Header-Injection.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/165642/VMware-vCenter-Server-Unauthenticated-Log4Shell-JNDI-Injection-Remote-Code-Execution.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/165673/UniFi-Network-Application-Unauthenticated-Log4Shell-Remote-Code-Execution.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/167794/Open-Xchange-App-Suite-7.10.x-Cross-Site-Scripting-Command-Injection.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/167917/MobileIron-Log4Shell-Remote-Command-Execution.html"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/171626/AD-Manager-Plus-7122-Remote-Code-Execution.html"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2022/Dec/2"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2022/Jul/11"
}, {
"type" : "WEB",
"url" : "http://seclists.org/fulldisclosure/2022/Mar/23"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2021/12/10/1"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2021/12/10/2"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2021/12/10/3"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2021/12/13/1"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2021/12/13/2"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2021/12/14/4"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2021/12/15/3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-400", "CWE-502", "CWE-917" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2021-12-10T00:40:41Z",
"nvd_published_at" : "2021-12-10T10:15:00Z"
}
}