CVE-2025-61622: Pyfory Apache Pyfory Python Is Vulnerable Vulnerability

CRITICAL
Advisory Identifier: GHSA-538v-3wq9-4h3r
CVSS 9.8
CWE-502
Published
Advisory Summary

CVE-2025-61622 is a CRITICAL (CVSS 9.8) apache pyfory python is vulnerable vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Pyfory libraries in the PyPI ecosystem. The issue involves apache pyfory python is vulnerable to deserialization of untrusted data. Remediation is available by upgrading affected packages to version 0.12.3.

CVE-2025-61622 at a Glance

CVE Identifier CVE-2025-61622
GHSA Identifier GHSA-538v-3wq9-4h3r
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Pyfory
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.8

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:U/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 Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2025-61622

To remediate this vulnerability, upgrade all affected Pyfory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pyfory fixed: 0.12.3
pip install pyfory>=0.12.3
pyfury fixed: Latest secure release
pip install pyfury>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show pyfory

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-61622, inspect your installed packages using pip:

pip show pyfory

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

Note: The pip show pyfory command checks currently installed packages in your active Python environment.

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 Pyfory, 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

Deserialization of untrusted data in python in pyfory versions 0.12.0 through 0.12.2, or the legacy pyfury versions from 0.1.0 through 0.10.3: allows arbitrary code execution. An application is vulnerable if it reads pyfory serialized data from untrusted sources. An attacker can craft a data stream that selects pickle-fallback serializer during deserialization, leading to the execution of `pickle.loads`, which is vulnerable to remote code execution. Users are recommended to upgrade to pyfory version 0.12.3 or later, which has removed pickle fallback serializer and thus fixes this issue.

CVE-2025-61622 Affected Pyfory Versions

2 component(s)
Fixed Versions:
0.12.3
Product / Package Ecosystem Affected Versions Fixed Version
pyfory
PyPI
≥ 0.12.0
< 0.12.3
0.12.3
pyfury
PyPI
≥ 0.1.0
≤ 0.10.3

References

Frequently Asked Questions

What is CVE-2025-61622?
CVE-2025-61622 is a security vulnerability in Pyfory involving Apache Pyfory python is vulnerable to deserialization of untrusted data under CWE-502: Deserialization of Untrusted Data.
Which Pyfory versions are affected?
Affected versions include releases prior to 0.12.3 across affected packages: pyfory, pyfury.
What version fixes CVE-2025-61622?
Upgrading to 0.12.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pyfory affected?
Yes, pyfory is affected in releases prior to 0.12.3. Upgrade your dependency to 0.12.3 or later.
Is pyfury affected?
Yes, pyfury 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-61622?
CVE-2025-61622 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2025-61622?
CVE-2025-61622 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 PyPI dependencies for CVE-2025-61622?
Run the dependency tree command: 'pip show pyfory'. 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-538v-3wq9-4h3r",
  "modified" : "2025-11-05T20:47:02Z",
  "published" : "2025-10-01T12:30:27Z",
  "aliases" : [ "CVE-2025-61622" ],
  "summary" : "Apache Pyfory python is vulnerable to deserialization of untrusted data",
  "details" : "Deserialization of untrusted data in python in pyfory versions 0.12.0 through 0.12.2, or the legacy pyfury versions from 0.1.0 through 0.10.3: allows arbitrary code execution. An application is vulnerable if it reads pyfory serialized data from untrusted sources. An attacker can craft a data stream that selects pickle-fallback serializer during deserialization, leading to the execution of `pickle.loads`, which is vulnerable to remote code execution.\n\nUsers are recommended to upgrade to pyfory version 0.12.3 or later, which has removed pickle fallback serializer and thus fixes this issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pyfory"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.12.0"
      }, {
        "fixed" : "0.12.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pyfury"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.1.0"
      }, {
        "last_affected" : "0.10.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-61622"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/fory/pull/2629"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/fory/commit/379b948ecae5c3b849e5bdb3997978c9a163e40b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/fory"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/fory/releases/tag/v0.12.3"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/vfn9hp9qt06db5yo1gmj3l114o3o2csd"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/09/29/3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-01T19:38:16Z",
    "nvd_published_at" : "2025-10-01T10:15:34Z"
  }
}