GHSA-XV5P-FJW5-VRJ6
Vulnerability from github – Published: 2025-11-25 20:39 – Updated: 2025-11-27 09:00Summary
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:
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 rpc_server.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 rpc_client.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
- 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
Unpicklerwith a restrictedfind_class()method that only allows whitelisted classes -
Network security:
- If the service is intended for internal use only, bind to localhost (
127.0.0.1) instead of0.0.0.0 -
Implement authentication and authorization mechanisms
-
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/1y8bBBp7dnWoT_WHBtdB0Fts4NRUIfdWi/view?usp=sharing
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "fugue"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "0.9.2"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2025-62703"
],
"database_specific": {
"cwe_ids": [
"CWE-502",
"CWE-78"
],
"github_reviewed": true,
"github_reviewed_at": "2025-11-25T20:39:15Z",
"nvd_published_at": "2025-11-25T22:15:47Z",
"severity": "HIGH"
},
"details": "### Summary\nThe Fugue framework implements an RPC server system for distributed computing operations. In the core\u00a0functionality of the RPC server implementation, I\u00a0found that\u00a0the\u00a0_decode()\u00a0function in\u00a0fugue/rpc/flask.py\u00a0directly uses\u00a0cloudpickle.loads()\u00a0to deserialize data\u00a0without any sanitization. This creates a remote code execution vulnerability when malicious pickle data is processed by the RPC\u00a0server.The vulnerability exists in the RPC communication mechanism where the client can\u00a0send arbitrary serialized Python objects that will be deserialized on the server\u00a0side, allowing\u00a0attackers to\u00a0execute arbitrary code\u00a0on the victim\u0027s machine.\n\n### Details\n_decode()\u00a0function in\u00a0fugue/rpc/flask.py directly uses\u00a0cloudpickle.loads()\u00a0to deserialize data\u00a0without any sanitization.\n\n### PoC\n* Step1:\nThe victim user starts an RPC\u00a0server binding to open network using\u00a0the Fugue framework. Here, I use the\u00a0official RPC\u00a0server code\u00a0to initialize\u00a0the server. \n\n* Step2:\nThe attacker modifies\u00a0the\u00a0_encode()\u00a0function\u00a0in\u00a0fugue/rpc/flask.py\u00a0to\u00a0inject malicious pickle data:\n\n\u003cimg width=\"740\" height=\"260\" alt=\"image\" src=\"https://github.com/user-attachments/assets/6064516b-e1a6-45fa-a91c-8e276bc4a106\" /\u003e\n\nIn this example, attacker modifies _encode to let the victim execute command \u201cls -l\u201d\n\n* Step 3:\nThe attacker then\u00a0uses the RPC client to send\u00a0the malicious\u00a0request\n\nFugue 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 rpc_server.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 rpc_client.py.\n\n\n### Impact\nRemote code execution in the victim\u0027s machine. Once the victim starts\u00a0the RPCServer with network binding (especially\u00a00.0.0.0), an attacker on\u00a0the network\u00a0can gain arbitrary code execution by connecting to the RPCServer\u00a0and sending crafted pickle payloads. This vulnerability allows\u00a0for:\n\n- Complete system compromise\n- Data exfiltration\n- Lateral movement within the network\n- Denial of service attacks\n- Installation of persistent backdoors\n\n### Mitigation\n1. **Replace unsafe deserialization**: Replace `pickle.loads()` with safer alternatives such as:\n - JSON serialization for simple data structures\n - Protocol Buffers or MessagePack for complex data\n - If pickle must be used, implement a custom `Unpickler` with a restricted `find_class()` method that only allows whitelisted classes\n\n2. **Network security**: \n - If the service is intended for internal use only, bind to localhost (`127.0.0.1`) instead of `0.0.0.0`\n - Implement authentication and authorization mechanisms\n\n3. **Security warnings**: When starting the service on public interfaces, display clear security warnings to inform users about the risks.\n\nAttachment: https://drive.google.com/file/d/1y8bBBp7dnWoT_WHBtdB0Fts4NRUIfdWi/view?usp=sharing",
"id": "GHSA-xv5p-fjw5-vrj6",
"modified": "2025-11-27T09:00:39Z",
"published": "2025-11-25T20:39:15Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/fugue-project/fugue/security/advisories/GHSA-xv5p-fjw5-vrj6"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-62703"
},
{
"type": "WEB",
"url": "https://github.com/fugue-project/fugue/commit/6f25326779fd1f528198098d6287c5a863176fc0"
},
{
"type": "WEB",
"url": "https://drive.google.com/file/d/1y8bBBp7dnWoT_WHBtdB0Fts4NRUIfdWi/view?usp=sharing"
},
{
"type": "PACKAGE",
"url": "https://github.com/fugue-project/fugue"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "Fugue is Vulnerable to Remote Code Execution\u00a0by Pickle Deserialization via FlaskRPCServer"
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.