---
id: "CVE-2025-61622"
page: "https://infrastack.ai/live/CVE-2025-61622"
kind: "vulnerability"
aliases: ["CVE-2025-61622", "GHSA-538v-3wq9-4h3r"]
title: "Apache Pyfory python is vulnerable to deserialization of untrusted data"
severity: "critical"
cvss: 9.8
epss: 0.48963
exploited: false
status: "open"
category: "package"
products: [{"name": "pyfory", "fixed": ["0.12.3"], "affected": ">= 0.12.0, < 0.12.3", "ecosystem": "pypi"}, {"name": "pyfury", "fixed": [], "affected": ">= 0.1.0, <= 0.10.3", "ecosystem": "pypi"}, {"name": "apache fory", "fixed": [], "affected": ">= 0.1.0, <= 0.10.3", "ecosystem": "vendor"}, {"name": "apache fory", "fixed": [], "affected": ">= 0.12.0, <= 0.12.2", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["cwe-502", "data-serialization", "package", "pyfory", "pyfury", "python"]
not_affected_if: ["pyfory-at-0.12.3-or-later", "trusted-data-only"]
published_at: "2025-10-01T10:15:34+00:00"
first_seen_at: "2026-11-16T16:08:25+00:00"
updated_at: "2026-11-16T16:38:06+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-538v-3wq9-4h3r", "first_seen_at": "2026-11-16T16:08:25+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-61622", "first_seen_at": "2026-11-16T16:38:06+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.48963, "url": "https://api.first.org/data/v1/epss?cve=CVE-2025-61622"}]
---

# Apache Pyfory python is vulnerable to deserialization of untrusted data

Link for people: https://infrastack.ai/live/CVE-2025-61622 (this .md is for agents)

pyfory, a Python serialization library, and its legacy pyfury name deserialize data by falling back to pickle when an attacker-crafted stream selects that serializer. An attacker who can supply serialized data to an application that reads it gets arbitrary code execution through pickle.loads.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:pyfory affected >= 0.12.0, < 0.12.3 fixed 0.12.3
- pypi:pyfury affected >= 0.1.0, <= 0.10.3 fixed no fixed version listed
- vendor:apache fory affected >= 0.1.0, <= 0.10.3 fixed no fixed version listed
- vendor:apache fory affected >= 0.12.0, <= 0.12.2 fixed no fixed version listed

## How to check

- Run `pip show pyfory` and `pip show pyfury` to see the installed versions.
- Check whether the application reads pyfory-serialized data from sources outside its trust boundary, such as network requests, uploads or queues.

## Fix

- pyfory: upgrade to `0.12.3` or later, which removes the pickle fallback serializer.
- pyfury: fixed version unknown; the sources list affected versions up to `0.10.3` only.

## Timeline

- 2026-11-16T16:08:25+00:00 ghsa https://github.com/advisories/GHSA-538v-3wq9-4h3r
- 2026-11-16T16:38:06+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2025-61622

## Documents

- [advisory] Vendor advisory: lists.apache.org https://lists.apache.org/thread/vfn9hp9qt06db5yo1gmj3l114o3o2csd
- [advisory] Third-party advisory: www.openwall.com http://www.openwall.com/lists/oss-security/2025/09/29/3
- [fix] Patch: github.com https://github.com/apache/fory/pull/2629
- [fix] Patch: github.com https://github.com/apache/fory/commit/379b948ecae5c3b849e5bdb3997978c9a163e40b
- [fix] Release: github.com https://github.com/apache/fory/releases/tag/v0.12.3

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
