{"answers":{"affected":"6 open source packages ship an affected version, including pyfory and pyfury. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-61622 in the wild and no public exploit code.","fix":"Upgrade pyfory to 0.12.3 or later.","what":"CVE-2025-61622 is a critical unsafe deserialization vulnerability in Apache Fory, published on 1 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-61622 and fix it if it is affected.\n\nWhat it is: CVE-2025-61622 is a critical unsafe deserialization vulnerability in Apache Fory, published on 1 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-61622 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pyfory (PyPI): affected from 0.12.0; fixed in 0.12.3\n- pyfory (PyPI): affected from 0.12.0; fixed in 0.12.3\n- pyfory (PyPI): affected from 0.12.0; fixed in 0.12.3\n- pyfury (PyPI): affected from 0.1.0 up to 0.10.3; no fix listed\n- pyfury (PyPI): affected from 0.1.0 up to 0.10.3; no fix listed\n- pyfury (PyPI): affected from 0.1.0 up to 0.10.3; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-61622/ (Markdown: https://insights.sbomify.com/CVE-2025-61622/index.md)","id":"CVE-2025-61622","markdown":"https://insights.sbomify.com/CVE-2025-61622/index.md","name":"CVE-2025-61622","record":{"aliases":["GHSA-538v-3wq9-4h3r","PYSEC-2026-490","PYSEC-2026-491"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python serialization library","requires_auth":"none","summary":"An attacker can achieve remote code execution by crafting malicious data streams that trigger unsafe pickle deserialization in the pyfory library.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"fory","vendor":"apache"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2025-10-03","github_poc":1,"max_poc_stars":4,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-10-03T12:44:16Z","kind":"github_poc","ref":"https://github.com/fa1consec/cve_2025_61622_poc","stars":4,"title":"This PoC demonstrates the Remote Code Execution (RCE) vulnerability in  Apache Pyfory (versions 0.12.0-0.12.2 and legacy PyFury 0.1.0-0.10.3)  due to insecure pickle fallback deserialization (CVE-2025-61622)."}],"tier":"poc_unverified"},"has_fix":true,"headline":"Apache Fory, Apache Fory: Python RCE via unguarded pickle fallback serializer in pyfory","id":"CVE-2025-61622","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"deserialization","year":"2025"},"n_packages":6,"n_references":1,"next":{"headline":"Apache OFBiz: Reflected Cross-site Scripting","id":"CVE-2025-61623"},"packages":[{"ecosystem":"PyPI","fixed":["0.12.3"],"introduced":["0.12.0"],"last_affected":[],"package":"pyfory","purl":null,"source":"GHSA-538v-3wq9-4h3r"},{"ecosystem":"PyPI","fixed":["0.12.3"],"introduced":["0.12.0"],"last_affected":[],"package":"pyfory","purl":"pkg:pypi/pyfory","source":"GHSA-538v-3wq9-4h3r"},{"ecosystem":"PyPI","fixed":["0.12.3"],"introduced":["0.12.0"],"last_affected":[],"package":"pyfory","purl":"pkg:pypi/pyfory","source":"PYSEC-2026-490"},{"ecosystem":"PyPI","fixed":[],"introduced":["0.1.0"],"last_affected":["0.10.3"],"package":"pyfury","purl":null,"source":"GHSA-538v-3wq9-4h3r"},{"ecosystem":"PyPI","fixed":[],"introduced":["0.1.0"],"last_affected":["0.10.3"],"package":"pyfury","purl":"pkg:pypi/pyfury","source":"GHSA-538v-3wq9-4h3r"},{"ecosystem":"PyPI","fixed":[],"introduced":["0.1.0"],"last_affected":["0.10.3"],"package":"pyfury","purl":"pkg:pypi/pyfury","source":"PYSEC-2026-491"}],"prev":{"headline":"Denial of service in T8100/T9100/T8200/T8300","id":"CVE-2025-61619"},"products":["Apache Fory"],"published":"2025-10-01","related":[{"cvss_score":9.8,"headline":"Apache Fory: Heap type confusion in C++ polymorphic smart-pointer deserialization","id":"CVE-2026-71558","kev_date_added":null,"published":"2026-08-07"},{"cvss_score":9.8,"headline":"Apache Fory, Apache Fory: Class-registration bypass through an auto-admitted SerializedLambda capturing interface","id":"CVE-2026-64606","kev_date_added":null,"published":"2026-07-21"},{"cvss_score":9.8,"headline":"Apache Fory: Heap type confusion and out-of-bounds read/write in C++ compatible-mode field-skip paths","id":"CVE-2026-64608","kev_date_added":null,"published":"2026-07-21"},{"cvss_score":9.8,"headline":"Apache Fory: PyFory ReduceSerializer Incomplete Policy Enforcement","id":"CVE-2026-48207","kev_date_added":null,"published":"2026-05-21"},{"cvss_score":9.1,"headline":"Apache Fory: Out-of-bounds heap read in C++ struct deserializer tagged-int fast-path","id":"CVE-2026-71560","kev_date_added":null,"published":"2026-08-07"},{"cvss_score":9.1,"headline":"Apache Fory, Apache Fory: Out-of-Bounds Read via sun.misc.Unsafe in zero-copy java deserialization","id":"CVE-2026-64609","kev_date_added":null,"published":"2026-07-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-04","vendors":["Apache Software Foundation"]},"summary":"An attacker can achieve remote code execution by crafting malicious data streams that trigger unsafe pickle deserialization in the pyfory library.","url":"https://insights.sbomify.com/CVE-2025-61622/"}