GHSA-xxfh-x98p-j8fr: Pax logging log4j2 Remote Code Injection Vulnerability
CRITICALGHSA-xxfh-x98p-j8fr is a CRITICAL remote code injection vulnerability (General Security Weakness) affecting Pax logging log4j2 libraries in the Maven ecosystem. The issue involves remote code injection in log4j (through pax-logging-log4j2). Remediation is available by upgrading affected packages to version 2.0.11, 1.11.10.
GHSA-xxfh-x98p-j8fr at a Glance
How to Fix GHSA-xxfh-x98p-j8fr
To remediate this vulnerability, upgrade all affected Pax logging log4j2 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.ops4j.pax.logging</groupId>
<artifactId>pax-logging-log4j2</artifactId>
<version>2.0.11</version>
</dependency>
<dependency>
<groupId>org.ops4j.pax.logging</groupId>
<artifactId>pax-logging-log4j2</artifactId>
<version>1.11.10</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.ops4j.pax.logging
How to Check if You Are Affected
To determine whether your Java application is affected by GHSA-xxfh-x98p-j8fr, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.ops4j.pax.logging
Analyze the terminal output to locate any version of Pax logging log4j2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.11), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.ops4j.pax.logging 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 General Security Weakness. In Pax logging log4j2, 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
GHSA-xxfh-x98p-j8fr Affected Pax logging log4j2 Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.ops4j.pax.logging:pax-logging-log4j2
|
Maven |
≥ 2.0.0
< 2.0.11
|
2.0.11
|
|
org.ops4j.pax.logging:pax-logging-log4j2
|
Maven |
< 1.11.10
|
1.11.10
|
References
Frequently Asked Questions
What is GHSA-xxfh-x98p-j8fr?
Which Pax logging log4j2 versions are affected?
What version fixes GHSA-xxfh-x98p-j8fr?
Is pax-logging-log4j2 affected?
What CWE is associated with GHSA-xxfh-x98p-j8fr?
How can I check Maven dependencies for GHSA-xxfh-x98p-j8fr?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xxfh-x98p-j8fr",
"modified" : "2021-12-11T21:25:16Z",
"published" : "2021-12-10T20:15:37Z",
"aliases" : [ ],
"summary" : "Remote code injection in Log4j (through pax-logging-log4j2)",
"details" : "### Impact\nRemote Code Execution.\n\n### Patches\nUsers of pax-logging 1.11.9 should update to 1.11.10.\nUsers of pax-logging 2.0.10 should update to 2.0.11.\n\n### Workarounds\nSet system property `-Dlog4j2.formatMsgNoLookups=true`\n\n### References\nhttps://github.com/advisories/GHSA-jfh8-c2jp-5v3q\n\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.ops4j.pax.logging:pax-logging-log4j2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.ops4j.pax.logging:pax-logging-log4j2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.11.10"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ops4j/org.ops4j.pax.logging/security/advisories/GHSA-xxfh-x98p-j8fr"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-jfh8-c2jp-5v3q"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ops4j/org.ops4j.pax.logging"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2021-12-10T18:54:56Z",
"nvd_published_at" : null
}
}