{"answers":{"affected":"3 open source packages ship an affected version, including skops.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-54412 exists.","fix":"Upgrade skops to 0.12.0 or later.","what":"CVE-2025-54412 is a high-severity code injection vulnerability in skops-dev skops, published on 26 Jul 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-54412 and fix it if it is affected.\n\nWhat it is: CVE-2025-54412 is a high-severity code injection vulnerability in skops-dev skops, published on 26 Jul 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-54412 exists.\n\nAffected packages and fixed versions:\n- skops (PyPI): affected all versions; fixed in 0.12.0\n- skops (PyPI): affected all versions; fixed in 0.12.0\n- skops (PyPI): affected all versions; fixed in 0.12.0\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-54412/ (Markdown: https://insights.sbomify.com/CVE-2025-54412/index.md)","id":"CVE-2025-54412","markdown":"https://insights.sbomify.com/CVE-2025-54412/index.md","name":"CVE-2025-54412","record":{"aliases":["GHSA-m7f4-hrc6-fwg3","PYSEC-2026-1927"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python ML library","requires_auth":"none","summary":"Attackers can exploit inconsistent type validation in skops to execute arbitrary code via hidden operator methods.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","version":"4.0"},"cwes":[{"id":"CWE-351","name":"Insufficient Type Distinction"}],"description":"skops is a Python library which helps users share and ship their scikit-learn based models. Versions 0.11.0 and below contain a inconsistency in the OperatorFuncNode which can be exploited to hide the execution of untrusted operator methods. This can then be used in a code reuse attack to invoke seemingly safe functions and escalate to arbitrary code execution with minimal and misleading trusted types. This is fixed in version 0.12.0.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"skops' Inconsistent Trusted Type Validation Enables Hidden `operator` Methods Execution","id":"CVE-2025-54412","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2025"},"n_packages":3,"n_references":3,"next":{"headline":"Skops may allow MethodNode to access unexpected object fields through dot notation, leading to arbitrary code execution at load time","id":"CVE-2025-54413"},"packages":[{"ecosystem":"PyPI","fixed":["0.12.0"],"introduced":["0"],"last_affected":[],"package":"skops","purl":null,"source":"GHSA-m7f4-hrc6-fwg3"},{"ecosystem":"PyPI","fixed":["0.12.0"],"introduced":["0"],"last_affected":[],"package":"skops","purl":"pkg:pypi/skops","source":"GHSA-m7f4-hrc6-fwg3"},{"ecosystem":"PyPI","fixed":["0.12.0"],"introduced":["0"],"last_affected":[],"package":"skops","purl":"pkg:pypi/skops","source":"PYSEC-2026-1927"}],"prev":{"headline":"Discourse welcome banner user name XSS","id":"CVE-2025-54411"},"products":["skops"],"published":"2025-07-26","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-07-28","vendors":["skops-dev"]},"summary":"Attackers can exploit inconsistent type validation in skops to execute arbitrary code via hidden operator methods.","url":"https://insights.sbomify.com/CVE-2025-54412/"}