GHSA-3qpm-h9ch-px3c: Powernukkit Remote Code Injection, Improper Input Vulnerability
CRITICALGHSA-3qpm-h9ch-px3c is a CRITICAL (CVSS 10.0) remote code injection, improper input vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Powernukkit libraries in the Maven ecosystem. The issue involves remote code injection, improper input validation and uncontrolled recursion in log4j library. Remediation is available by upgrading affected packages to version 1.5.2.1.
GHSA-3qpm-h9ch-px3c 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).
How to Fix GHSA-3qpm-h9ch-px3c
To remediate this vulnerability, upgrade all affected Powernukkit 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.powernukkit</groupId>
<artifactId>powernukkit</artifactId>
<version>1.5.2.1</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.powernukkit
How to Check if You Are Affected
To determine whether your Java application is affected by GHSA-3qpm-h9ch-px3c, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.powernukkit
Analyze the terminal output to locate any version of Powernukkit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.2.1), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.powernukkit 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 Powernukkit, 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-3qpm-h9ch-px3c Affected Powernukkit Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.powernukkit:powernukkit
|
Maven |
< 1.5.2.1
|
1.5.2.1
|
References
Frequently Asked Questions
What is GHSA-3qpm-h9ch-px3c?
Which Powernukkit versions are affected?
What version fixes GHSA-3qpm-h9ch-px3c?
Is powernukkit affected?
What is the CVSS score of GHSA-3qpm-h9ch-px3c?
What CWE is associated with GHSA-3qpm-h9ch-px3c?
How can I check Maven dependencies for GHSA-3qpm-h9ch-px3c?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3qpm-h9ch-px3c",
"modified" : "2022-01-04T22:06:05Z",
"published" : "2022-01-06T18:31:23Z",
"aliases" : [ ],
"summary" : "Remote code injection, Improper Input Validation and Uncontrolled Recursion in Log4j library",
"details" : "### Summary\nThe version used of Log4j, the library used for logging by PowerNukkit, is subject to a remote code execution vulnerability via the ldap JNDI parser.\nIt's well detailed at [CVE-2021-44228](https://github.com/advisories/GHSA-jfh8-c2jp-5v3q) and CVE-2021-45105(https://github.com/advisories/GHSA-p6xc-xr62-6r2g).\n\n### Impact\nMalicious client code could be used to send messages and cause remote code execution on the server.\n\n### Patches\nPowerNukkit `1.5.2.1` is a patch-release that only updates the Log4j version to `2.17.0` and should be used instead of `1.5.2.0`.\nAll versions prior to `1.5.2.1` are affected and are not patched.\n\n### Workarounds\nIf you can't upgrade, you can use the `-Dlog4j2.formatMsgNoLookups=true` startup argument as remediation, as this prevents the vulnerability from happening.\n\n### References\nhttps://github.com/advisories/GHSA-jfh8-c2jp-5v3q\nhttps://github.com/advisories/GHSA-p6xc-xr62-6r2g\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [the PowerNukkit repository](https://github.com/PowerNukkit/PowerNukkit/issues)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.powernukkit:powernukkit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.5.2.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.5.2.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/PowerNukkit/PowerNukkit/security/advisories/GHSA-3qpm-h9ch-px3c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/PowerNukkit/PowerNukkit"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-400", "CWE-502" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2022-01-04T22:06:05Z",
"nvd_published_at" : null
}
}