CVE-2026-48207

Apache Fory: PyFory ReduceSerializer Incomplete Policy Enforcement

Published May 21, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
Deserialization of untrusted data in Apache Fory PyFory. PyFory's ReduceSerializer could bypass documented DeserializationPolicy validation hooks during reduce-state restoration and global-name resolution. An application is vulnerable if it deserializes attacker-controlled data using PyFory Python-native mode with strict mode disabled and relies on DeserializationPolicy to restrict unsafe classes, functions, or module attributes.

This issue affects Apache Fory: from before 1.0.0.

Mitigation: Users of Apache Fory are recommended to upgrade to version 1.0.0 or later, which enforces DeserializationPolicy validation for the affected ReduceSerializer paths and thus fixes this issue.

Analysis

AI-generated

Technical impact

The vulnerability is caused by PyFory's ReduceSerializer bypassing DeserializationPolicy validation hooks during reduce‑state restoration and global‑name resolution when strict mode is disabled. As a result, an attacker can craft serialized objects that will be deserialized without policy enforcement, enabling execution of arbitrary code. This is a classic insecure deserialization flaw.

Affected Systems

All Apache Fory releases before version 1.0.0 are affected; any application that uses PyFory in Python‑native mode with strict mode turned off and relies on DeserializationPolicy to limit unsafe classes or functions is vulnerable.

Risk and Exploitability

The CVSS score of 9.8 marks the issue as critical. EPSS data are not available, so the current probability of exploitation cannot be quantified, and the vulnerability has not yet been listed in CISA KEV. The likely attack path entails an attacker delivering a maliciously crafted serialized payload to a Python application that loads it with PyFory in native mode, bypassing policy checks and achieving remote code execution. This inference is based on the description of the deserialization bypass and the requirement for attacker‑controlled data to trigger the flaw.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Fory to version 1.0.0 or later, which enforces DeserializationPolicy on the affected ReduceSerializer paths.
  • Ensure that strict mode is enabled and that a DeserializationPolicy disallows unsafe classes, functions, or module attributes in configurations that use PyFory.
  • If an upgrade cannot be performed immediately, restrict deserialization to trusted data sources and validate or sandbox the payload before passing it to PyFory.

Generated by OpenCVE AI on May 21, 2026 at 18:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-m5gw-83w2-7749 Apache Fory PyFory Deserialization of Untrusted Data
History
Type Values Removed Values Added
CPEs cpe:2.3:a:apache:fory:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Apache
Apache fory
Vendors & Products Apache
Apache fory
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Deserialization of untrusted data in Apache Fory PyFory. PyFory's ReduceSerializer could bypass documented DeserializationPolicy validation hooks during reduce-state restoration and global-name resolution. An application is vulnerable if it deserializes attacker-controlled data using PyFory Python-native mode with strict mode disabled and relies on DeserializationPolicy to restrict unsafe classes, functions, or module attributes. This issue affects Apache Fory: from before 1.0.0. Mitigation: Users of Apache Fory are recommended to upgrade to version 1.0.0 or later, which enforces DeserializationPolicy validation for the affected ReduceSerializer paths and thus fixes this issue.
Title Apache Fory: PyFory ReduceSerializer Incomplete Policy Enforcement
Weaknesses CWE-502
References
Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
May 21, 2026, 6:37 PM
Reserved
May 21, 2026, 12:06 PM
Status
Analyzed
Published
May 21, 2026, 5:16 PM
Modified
Jul 23, 2026, 4:10 PM