CVE-2025-62703: Fugue is Vulnerable to Remote Code Execution by Pickle Deserialization via FlaskRPCServer

Published Nov 25, 2025
·
Updated

Summary The Fugue framework implements an RPC server system for distributed computing operations. In the core functionality of the RPC server implementation, I found that the decode() function in fugue/rpc/flask.py directly uses cloudpickle.loads() to deserialize data without any sanitization. This creates a remote code execution vulnerability when malicious pickle data is processed by the RPC server.The vulnerability exists in the RPC communication mechanism where the client can send arbitrary serialized Python objects that will be deserialized on the server side, allowing attackers to execute arbitrary code on the victim's machine.

Details decode() function in fugue/rpc/flask.py directly uses cloudpickle.loads() to deserialize data without any sanitization.

PoC Step1: The victim user starts an RPC server binding to open network using the Fugue framework. Here, I use the official RPC server code to initialize the server.

Step2: The attacker modifies the encode() function in fugue/rpc/flask.py to inject malicious pickle data:

<img width="740" height="260" alt="image" src="https://github.com/user-attachments/assets/6064516b-e1a6-45fa-a91c-8e276bc4a106" />

In this example, attacker modifies encode to let the victim execute command “ls -l”

Step 3: The attacker then uses the RPC client to send the malicious request

Fugue gives a demo video and the PoC in the attachment, along with modified flask.py. When users reproduce this issue, in the server side (as an victim), users can run python rpcserver.py. In the client side (as an attacker), users can first replace fugue/rpc/flask.py in pip site-packages with provided flask.py in the attachment and then run rpcclient.py.

Impact Remote code execution in the victim's machine. Once the victim starts the RPCServer with network binding (especially 0.0.0.0), an attacker on the network can gain arbitrary code execution by connecting to the RPCServer and sending crafted pickle payloads. This vulnerability allows for:

- Complete system compromise - Data exfiltration - Lateral movement within the network - Denial of service attacks - Installation of persistent backdoors

Mitigation 1. Replace unsafe deserialization: Replace pickle.loads() with safer alternatives such as: - JSON serialization for simple data structures - Protocol Buffers or MessagePack for complex data - If pickle must be used, implement a custom Unpickler with a restricted findclass() method that only allows whitelisted classes

2. Network security: - If the service is intended for internal use only, bind to localhost (127.0.0.1) instead of 0.0.0.0 - Implement authentication and authorization mechanisms

3. Security warnings: When starting the service on public interfaces, display clear security warnings to inform users about the risks.

Attachment: https://drive.google.com/file/d/1y8bBBp7dnWoTWHBtdB0Fts4NRUIfdWi/view?usp=sharing

Other sources

Fugue is a unified interface for distributed computing that lets users execute Python, Pandas, and SQL code on Spark, Dask, and Ray with minimal rewrites. In version 0.9.2 and prior, there is a remote code execution vulnerability by pickle deserialization via FlaskRPCServer. The Fugue framework implements an RPC server system for distributed computing operations. In the core functionality of the RPC server implementation, I found that the decode() function in fugue/rpc/flask.py directly uses cloudpickle.loads() to deserialize data without any sanitization. This creates a remote code execution vulnerability when malicious pickle data is processed by the RPC server. The vulnerability exists in the RPC communication mechanism where the client can send arbitrary serialized Python objects that will be deserialized on the server side, allowing attackers to execute arbitrary code on the victim's machine. This issue has been patched via commit 6f25326.

MITRE

Affected Software

2 affected components
pip/fugue<=0.9.2
Fugue-project Fugue<=0.9.1

Event History

Nov 25, 2025
Advisory Published
via GitHub·08:39 PM
Data Sourced
via GitHub·08:39 PM
DescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·09:31 PM
Data Sourced
via MITRE·09:31 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-62703?

CVE-2025-62703 has been classified with a high severity due to the risks associated with deserialization vulnerabilities.

2

How do I fix CVE-2025-62703?

To fix CVE-2025-62703, upgrade the Fugue framework to a version above 0.9.2, where the vulnerability has been addressed.

3

What impact does CVE-2025-62703 have on vulnerable systems?

CVE-2025-62703 can allow an attacker to execute arbitrary code by exploiting the deserialization aspects of the RPC server.

4

Which software versions are affected by CVE-2025-62703?

CVE-2025-62703 affects versions of the Fugue framework up to and including 0.9.2.

5

Is CVE-2025-62703 related to remote code execution risks?

Yes, CVE-2025-62703 can lead to remote code execution due to the unsafe deserialization of user-controlled data.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203