{"id":"CVE-2025-61622","kind":"vulnerability","aliases":["CVE-2025-61622","GHSA-538v-3wq9-4h3r"],"related":[],"title":"Apache Pyfory python is vulnerable to deserialization of untrusted data","description":"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.","summary":"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.","severity":"critical","cvss":9.8,"epss":0.48963,"exploited":false,"exploited_at":null,"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"],"how_to_check":"- Run `pip show pyfory` and `pip show pyfury` to see the installed versions.\n- 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.\n- pyfury: fixed version unknown; the sources list affected versions up to `0.10.3` only.","status":"open","published_at":"2025-10-01T10:15:34+00:00","first_seen_at":"2026-11-16T16:08:25+00:00","triaged_at":"2026-11-16T16:08:49+00:00","updated_at":"2026-11-16T16:38:06+00:00","category":"package","confidence":0.85,"triage":{"at":"2026-11-16T16:08:49Z","model":"claude-haiku-5-5","output":{"fix":"- pyfory: upgrade to `0.12.3` or later, which removes the pickle fallback serializer.\n- pyfury: fixed version unknown; the sources list affected versions up to `0.10.3` only.","reach":"network","title":"pyfory: untrusted serialized data runs code through pickle fallback","impact":"high","summary":"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.","audience":"developers","category":"package","nicknames":[],"who_cares":["python","pyfory","pyfury","data-serialization"],"confidence":0.85,"fix_status":"available","needs_auth":"no","worst_case":"Attacker runs arbitrary code on the server reading the data.","analyst_note":"Confirm whether pyfury has a fixed version; the product data lists none. Source: https://github.com/advisories/GHSA-538v-3wq9-4h3r","how_to_check":"- Run `pip show pyfory` and `pip show pyfury` to see the installed versions.\n- Check whether the application reads pyfory-serialized data from sources outside its trust boundary, such as network requests, uploads or queues.","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["trusted-data-only","pyfory-at-0.12.3-or-later"],"who_is_affected":"Applications that call pyfory (or the legacy pyfury package) to deserialize data that comes from untrusted sources are exposed. Systems that only deserialize data they produced themselves, or that never receive pyfory data from outside, are not exposed by this flaw. Look at services that accept serialized payloads over the network or from message queues.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"critical"},"cost_usd":0.000816,"input_tokens":4788,"output_tokens":675,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2025':12A,20A '-502':29B '-61622':13A,21A '0.1.0':100C '0.10.3':102C '0.12.0':91C '0.12.2':93C '0.12.3':156C '3wq9':17A '4h3r':18A '538v':16A 'allow':103C 'apach':1A 'apache':24A,26A 'applic':72B,108C 'arbitrari':77B,104C 'attack':57B,64B,121C 'attacker-craft':56B 'back':51B 'code':78B,105C,146C 'craft':58B,123C 'cve':11A,19A 'cwe':28B 'data':10A,31B,48B,69B,85C,116C,125C 'data-seri':30B 'deseri':7A,47B,82C,134C 'execut':79B,106C,138C,147C 'fall':50B 'fallback':131C,163C 'fix':167C 'fory':25A,27A 'get':76B 'ghsa':15A 'ghsa-538v-3wq9-4h3r':14A 'issu':169C 'later':158C 'lead':135C 'legaci':44B,96C 'librari':41B 'name':46B 'packag':33B 'pickl':53B,130C,162C 'pickle-fallback':129C 'pickle.loads':81B,140C 'pyfori':2A,34B,37B,89C,114C,154C 'pyfory':22A 'pyfuri':35B,45B,97C 'pyfury':23A 'python':3A,36B,39B,87C 'read':74B,113C 'recommend':150C 'remot':145C 'remov':161C 'select':60B,128C 'serial':32B,40B,62B,68B,115C,132C,164C 'sourc':119C 'stream':59B,126C 'suppli':67B 'thus':166C 'untrust':9A,84C,118C 'upgrad':152C 'user':148C 'version':90C,98C,155C 'vulner':5A,110C,143C","nicknames":[],"mitigations":[],"who_affected":"Applications that call pyfory (or the legacy pyfury package) to deserialize data that comes from untrusted sources are exposed. Systems that only deserialize data they produced themselves, or that never receive pyfory data from outside, are not exposed by this flaw. Look at services that accept serialized payloads over the network or from message queues.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["apachefory","fory","pyfory","pyfury"],"ptokens":["apache","fory","pyfory","pyfury"],"labels":["critical","cwe502","dataserialization","package","pyfory","pyfury","pypi","python","vendor"],"campaign_type":null,"search_a":"'-2025':12A,20A '-61622':13A,21A '3wq9':17A '4h3r':18A '538v':16A 'apach':1A 'apache':24A,26A 'cve':11A,19A 'data':10A 'deseri':7A 'fory':25A,27A 'ghsa':15A 'ghsa-538v-3wq9-4h3r':14A 'pyfori':2A 'pyfory':22A 'pyfury':23A 'python':3A 'untrust':9A 'vulner':5A","search_b":"'-502':29B 'applic':72B 'arbitrari':77B 'attack':57B,64B 'attacker-craft':56B 'back':51B 'code':78B 'craft':58B 'cwe':28B 'data':31B,48B,69B 'data-seri':30B 'deseri':47B 'execut':79B 'fall':50B 'get':76B 'legaci':44B 'librari':41B 'name':46B 'packag':33B 'pickl':53B 'pickle.loads':81B 'pyfori':34B,37B 'pyfuri':35B,45B 'python':36B,39B 'read':74B 'select':60B 'serial':32B,40B,62B,68B 'stream':59B 'suppli':67B","search_c":"'0.1.0':100C '0.10.3':102C '0.12.0':91C '0.12.2':93C '0.12.3':156C 'allow':103C 'applic':108C 'arbitrari':104C 'attack':121C 'code':105C,146C 'craft':123C 'data':85C,116C,125C 'deseri':82C,134C 'execut':106C,138C,147C 'fallback':131C,163C 'fix':167C 'issu':169C 'later':158C 'lead':135C 'legaci':96C 'pickl':130C,162C 'pickle-fallback':129C 'pickle.loads':140C 'pyfori':89C,114C,154C 'pyfuri':97C 'python':87C 'read':113C 'recommend':150C 'remot':145C 'remov':161C 'select':128C 'serial':115C,132C,164C 'sourc':119C 'stream':126C 'thus':166C 'untrust':84C,118C 'upgrad':152C 'user':148C 'version':90C,98C,155C 'vulner':110C,143C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2025-10-01T10:15:34+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-538v-3wq9-4h3r","url":"https://github.com/advisories/GHSA-538v-3wq9-4h3r","severity":"critical","published_at":"2025-10-01T12:30:27+00:00","modified_at":"2026-11-16T16:04:39+00:00","first_seen_at":"2026-11-16T16:08:25+00:00","fetched_at":"2026-11-16T16:17:15+00:00","note":null},{"source":"nvd","external_id":"CVE-2025-61622","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61622","severity":null,"published_at":"2025-10-01T10:15:34+00:00","modified_at":"2026-10-09T09:10:00+00:00","first_seen_at":"2026-11-16T16:38:06+00:00","fetched_at":"2026-11-16T16:38:06+00:00","note":null}],"documents":[{"id":171037,"url":"https://github.com/apache/fory/pull/2629","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":171038,"url":"https://github.com/apache/fory/commit/379b948ecae5c3b849e5bdb3997978c9a163e40b","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":171039,"url":"https://github.com/apache/fory/releases/tag/v0.12.3","title":"Release: github.com","kind":"release","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release: github.com"},{"id":171330,"url":"https://lists.apache.org/thread/vfn9hp9qt06db5yo1gmj3l114o3o2csd","title":"Vendor advisory: lists.apache.org","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Vendor advisory: lists.apache.org"},{"id":171331,"url":"http://www.openwall.com/lists/oss-security/2025/09/29/3","title":"Third-party advisory: www.openwall.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.openwall.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.48963,"url":"https://api.first.org/data/v1/epss?cve=CVE-2025-61622"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}