CVE-2025-59328: Fory core Apache Fory Deserialization Of Untrusted Vulnerability

MODERATE
Advisory Identifier: GHSA-5hmf-8wx5-4qq3
CVSS 6.5
CWE-502
Published
Advisory Summary

CVE-2025-59328 is a MODERATE (CVSS 6.5) apache fory deserialization of untrusted vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Fory core libraries in the Maven ecosystem. The issue involves apache fory deserialization of untrusted data vulnerability. Remediation is available by upgrading affected packages to version 0.12.2.

CVE-2025-59328 at a Glance

CVE Identifier CVE-2025-59328
GHSA Identifier GHSA-5hmf-8wx5-4qq3
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Fory core
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

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:N/I:N/A:H).

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 None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2025-59328

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

org.apache.fory:fory-core fixed: 0.12.2
<dependency>
    <groupId>org.apache.fory</groupId>
    <artifactId>fory-core</artifactId>
    <version>0.12.2</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.apache.fory

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.apache.fory

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

Note: The mvn dependency:tree -Dincludes=org.apache.fory 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 Fory 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 in Apache Fory allows a remote attacker to cause a Denial of Service (DoS). The issue stems from the insecure deserialization of untrusted data. An attacker can supply a large, specially crafted data payload that, when processed, consumes an excessive amount of CPU resources during the deserialization process. This leads to CPU exhaustion, rendering the application or system using the Apache Fory library unresponsive and unavailable to legitimate users. Users of Apache Fory are strongly advised to upgrade to version 0.12.2 or later to mitigate this vulnerability. Developers of libraries and applications that depend on Apache Fory should update their dependency requirements to Apache Fory 0.12.2 or later and release new versions of their software.

CVE-2025-59328 Affected Fory core Versions

1 component(s)
Fixed Versions:
0.12.2
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.fory:fory-core
Maven
< 0.12.2
0.12.2

References

Frequently Asked Questions

What is CVE-2025-59328?
CVE-2025-59328 is a security vulnerability in Fory core involving Apache Fory Deserialization of Untrusted Data vulnerability under CWE-502: Deserialization of Untrusted Data.
Which Fory core versions are affected?
Affected versions include releases prior to 0.12.2 across affected packages: org.apache.fory:fory-core.
What version fixes CVE-2025-59328?
Upgrading to 0.12.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is fory-core affected?
Yes, org.apache.fory:fory-core is affected in releases prior to 0.12.2. Upgrade your dependency to 0.12.2 or later.
What is the CVSS score of CVE-2025-59328?
CVE-2025-59328 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2025-59328?
CVE-2025-59328 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-59328?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.fory'. 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-5hmf-8wx5-4qq3",
  "modified" : "2025-11-05T20:44:32Z",
  "published" : "2025-09-15T18:31:06Z",
  "aliases" : [ "CVE-2025-59328" ],
  "summary" : "Apache Fory Deserialization of Untrusted Data vulnerability",
  "details" : "A vulnerability in Apache Fory allows a remote attacker to cause a Denial of Service (DoS). The issue stems from the insecure deserialization of untrusted data. An attacker can supply a large, specially crafted data payload that, when processed, consumes an excessive amount of CPU resources during the deserialization process. This leads to CPU exhaustion, rendering the application or system using the Apache Fory library unresponsive and unavailable to legitimate users.\n\nUsers of Apache Fory are strongly advised to upgrade to version 0.12.2 or later to mitigate this vulnerability. Developers of libraries and applications that depend on Apache Fory should update their dependency requirements to Apache Fory 0.12.2 or later and release new versions of their software.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.fory:fory-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.12.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-59328"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/fory/pull/2578"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/fory/commit/c3b4d3fe389e38495aeb8301d75da1ab658f0c6e"
  }, {
    "type" : "WEB",
    "url" : "https://fory.apache.org/security"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/fory"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/fory/releases/tag/v0.12.2"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/09/15/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-15T23:31:43Z",
    "nvd_published_at" : "2025-09-15T17:15:36Z"
  }
}