CVE-2025-2622: Snail job Aizuda Snail-job Vulnerable To Deserialization Vulnerability

MODERATE
Advisory Identifier: GHSA-4m5h-5v4q-4xgq
CVSS 6.3
CWE-502 CWE-20
Published
Advisory Summary

CVE-2025-2622 is a MODERATE (CVSS 6.3) aizuda snail-job vulnerable to deserialization vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Snail job libraries in the Maven ecosystem. The issue involves aizuda snail-job vulnerable to deserialization via `nodeexpression` argument. Remediation is available in the latest vendor maintenance releases.

CVE-2025-2622 at a Glance

CVE Identifier CVE-2025-2622
GHSA Identifier GHSA-4m5h-5v4q-4xgq
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Snail job
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.3

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

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

How to Fix CVE-2025-2622

To remediate this vulnerability, upgrade all affected Snail job 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.aizuda:snail-job fixed: Latest secure release
<dependency>
    <groupId>com.aizuda</groupId>
    <artifactId>snail-job</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.aizuda

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=com.aizuda

Analyze the terminal output to locate any version of Snail job 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.aizuda 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 Snail job, 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 was found in aizuda snail-job 1.4.0. It has been classified as critical. Affected is the function getRuntime of the file /snail-job/workflow/check-node-expression of the component Workflow-Task Management Module. The manipulation of the argument nodeExpression leads to deserialization. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.

CVE-2025-2622 Affected Snail job Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
com.aizuda:snail-job
Maven
1.4.0
All 1 versions
1.4.0
None specified

References

Frequently Asked Questions

What is CVE-2025-2622?
CVE-2025-2622 is a security vulnerability in Snail job involving aizuda snail-job Vulnerable to Deserialization via `nodeExpression` Argument under CWE-502: Deserialization of Untrusted Data.
Which Snail job versions are affected?
Affected versions include releases prior to current release patches across affected packages: com.aizuda:snail-job.
What version fixes CVE-2025-2622?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is snail-job affected?
Yes, com.aizuda:snail-job 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-2025-2622?
CVE-2025-2622 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2025-2622?
CVE-2025-2622 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-2025-2622?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.aizuda'. 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-4m5h-5v4q-4xgq",
  "modified" : "2025-03-24T19:57:56Z",
  "published" : "2025-03-22T18:30:25Z",
  "aliases" : [ "CVE-2025-2622" ],
  "summary" : "aizuda snail-job Vulnerable to Deserialization via `nodeExpression` Argument",
  "details" : "A vulnerability was found in aizuda snail-job 1.4.0. It has been classified as critical. Affected is the function getRuntime of the file /snail-job/workflow/check-node-expression of the component Workflow-Task Management Module. The manipulation of the argument nodeExpression leads to deserialization. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.aizuda:snail-job"
    },
    "versions" : [ "1.4.0" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-2622"
  }, {
    "type" : "PACKAGE",
    "url" : "https://gitee.com/aizuda/snail-job"
  }, {
    "type" : "WEB",
    "url" : "https://gitee.com/aizuda/snail-job/issues/IBSQ24"
  }, {
    "type" : "WEB",
    "url" : "https://gitee.com/aizuda/snail-job/issues/IBSQ24#note_38500450_link"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.300624"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.300624"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?submit.518999"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-502" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-24T19:57:55Z",
    "nvd_published_at" : "2025-03-22T17:15:35Z"
  }
}