CVE-2024-3366: Xxl job core Xuxueli Xxl-job Template Injection Vulnerability Vulnerability

LOW
Advisory Identifier: GHSA-2v42-xp3j-47m4
CVSS 3.5
CWE-502 CWE-74
Published
Advisory Summary

CVE-2024-3366 is a LOW (CVSS 3.5) xuxueli xxl-job template injection vulnerability vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Xxl job core libraries in the Maven ecosystem. The issue involves xuxueli xxl-job template injection vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2024-3366 at a Glance

CVE Identifier CVE-2024-3366
GHSA Identifier GHSA-2v42-xp3j-47m4
Severity LOW
CVSS v3.1 Base Score 3.5
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Xxl job core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 3.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2024-3366

To remediate this vulnerability, upgrade all affected Xxl job 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.

com.xuxueli:xxl-job-core fixed: Latest secure release
<dependency>
    <groupId>com.xuxueli</groupId>
    <artifactId>xxl-job-core</artifactId>
    <version>Latest secure release</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=com.xuxueli

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2024-3366, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.xuxueli

Analyze the terminal output to locate any version of Xxl job core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.xuxueli 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 Xxl job 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

A vulnerability classified as problematic was found in Xuxueli xxl-job version 2.4.0. This vulnerability affects the function `deserialize` of the file `com/xxl/job/core/util/JdkSerializeTool.java` of the component `Template Handler`. The manipulation leads to injection. The exploit has been disclosed to the public and may be used. The identifier of this vulnerability is VDB-259480.

CVE-2024-3366 Affected Xxl job core Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
com.xuxueli:xxl-job-core
Maven
≤ 2.4.0

References

Frequently Asked Questions

What is CVE-2024-3366?
CVE-2024-3366 is a security vulnerability in Xxl job core involving Xuxueli xxl-job template injection vulnerability under CWE-502: Deserialization of Untrusted Data.
Which Xxl job core versions are affected?
Affected versions include releases prior to current release patches across affected packages: com.xuxueli:xxl-job-core.
What version fixes CVE-2024-3366?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is xxl-job-core affected?
Yes, com.xuxueli:xxl-job-core is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-3366?
CVE-2024-3366 has a CVSS v3.1 base score of 3.5 (LOW) with vector string CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2024-3366?
CVE-2024-3366 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 CVE-2024-3366?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.xuxueli'. 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-2v42-xp3j-47m4",
  "modified" : "2025-05-23T18:32:28Z",
  "published" : "2024-04-06T12:30:56Z",
  "aliases" : [ "CVE-2024-3366" ],
  "summary" : "Xuxueli xxl-job template injection vulnerability",
  "details" : "A vulnerability classified as problematic was found in Xuxueli xxl-job version 2.4.0. This vulnerability affects the function `deserialize` of the file `com/xxl/job/core/util/JdkSerializeTool.java` of the component `Template Handler`. The manipulation leads to injection. The exploit has been disclosed to the public and may be used. The identifier of this vulnerability is VDB-259480.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.xuxueli:xxl-job-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "2.4.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-3366"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xuxueli/xxl-job/issues/3391"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xuxueli/xxl-job/commit/e3b2e1234614195390f46e26c15cd4881bd4dbe3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xuxueli/xxl-job"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xuxueli/xxl-job/blob/761de38a0b2a39706e2008e7914fba13bf4ca184/xxl-job-core/src/main/java/com/xxl/job/core/util/JdkSerializeTool.java#L4"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.259480"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.259480"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?submit.308180"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502", "CWE-74" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-08T15:42:15Z",
    "nvd_published_at" : "2024-04-06T11:15:08Z"
  }
}