Vulnerabilities in pkg:maven/org.powernukkit/powernukkit

PACKAGE
Advisory Summary

GHSA-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.powernukkit/powernukkit

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.powernukkit/powernukkit. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-3qpm-h9ch-px3c - CRITICAL Remote code injection, Improper Input Validation and Uncontrolled Recursion in Log4j library

GHSA-3qpm-h9ch-px3c at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-3qpm-h9ch-px3c
Severity CRITICAL
CVSS v3.1 Base Score 10.0
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Powernukkit
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

org.powernukkit:powernukkit fixed: 1.5.2.1
<dependency>
    <groupId>org.powernukkit</groupId>
    <artifactId>powernukkit</artifactId>
    <version>1.5.2.1</version>
</dependency>
Verify Direct and Transitive Dependencies

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

### Summary The version used of Log4j, the library used for logging by PowerNukkit, is subject to a remote code execution vulnerability via the ldap JNDI parser. It'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). ### Impact Malicious client code could be used to send messages and cause remote code execution on the server. ### Patches PowerNukkit `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`. All versions prior to `1.5.2.1` are affected and are not patched. ### Workarounds If you can't upgrade, you can use the `-Dlog4j2.formatMsgNoLookups=true` startup argument as remediation, as this prevents the vulnerability from happening. ### References https://github.com/advisories/GHSA-jfh8-c2jp-5v3q https://github.com/advisories/GHSA-p6xc-xr62-6r2g ### For more information If you have any questions or comments about this advisory: * Open an issue in [the PowerNukkit repository](https://github.com/PowerNukkit/PowerNukkit/issues)

GHSA-3qpm-h9ch-px3c Affected Powernukkit Versions

1 component(s)
Fixed Versions:
1.5.2.1
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?
GHSA-3qpm-h9ch-px3c is a security vulnerability in Powernukkit involving Remote code injection, Improper Input Validation and Uncontrolled Recursion in Log4j library under CWE-502: Deserialization of Untrusted Data.
Which Powernukkit versions are affected?
Affected versions include releases prior to 1.5.2.1 across affected packages: org.powernukkit:powernukkit.
What version fixes GHSA-3qpm-h9ch-px3c?
Upgrading to 1.5.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is powernukkit affected?
Yes, org.powernukkit:powernukkit is affected in releases prior to 1.5.2.1. Upgrade your dependency to 1.5.2.1 or later.
What is the CVSS score of GHSA-3qpm-h9ch-px3c?
GHSA-3qpm-h9ch-px3c has a CVSS v3.1 base score of 10.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with GHSA-3qpm-h9ch-px3c?
GHSA-3qpm-h9ch-px3c is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Maven dependencies for GHSA-3qpm-h9ch-px3c?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.powernukkit'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}