{"answers":{"affected":"5 open source packages ship an affected version, including hydra-optuna-sweeper.","exploited":"There is no known exploitation of CVE-2026-106440 in the wild and no public exploit code.","fix":"Upgrade hydra-optuna-sweeper to a fixed version for your release line: 1.3.0 or 1.4.0.dev10.","what":"CVE-2026-106440 is a high-severity code injection vulnerability in hydra-ecosystem hydra, published on 6 Oct 2026. 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-2026-106440 and fix it if it is affected.\n\nWhat it is: CVE-2026-106440 is a high-severity code injection vulnerability in hydra-ecosystem hydra, published on 6 Oct 2026. 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: There is no known exploitation of CVE-2026-106440 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- hydra-optuna-sweeper (PyPI): affected from 1.2.0; fixed in 1.3.0, 1.4.0.dev10\n- hydra-optuna-sweeper (PyPI): affected from 1.2.0; fixed in 1.3.0\n- hydra-optuna-sweeper (PyPI): affected from 1.2.0; fixed in 1.3.0\n- hydra-optuna-sweeper (PyPI): affected from 1.4.0.dev4; fixed in 1.4.0.dev10\n- hydra-optuna-sweeper (PyPI): affected from 1.4.0.dev4; fixed in 1.4.0.dev10\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-2026-106440/ (Markdown: https://insights.sbomify.com/CVE-2026-106440/index.md)","id":"CVE-2026-106440","markdown":"https://insights.sbomify.com/CVE-2026-106440/index.md","name":"CVE-2026-106440","record":{"aliases":["GHSA-5jjj-9xc3-rm56","PYSEC-2026-4224"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Hydra configuration framework","requires_auth":"none","summary":"Attackers controlling Optuna sweep configurations can execute arbitrary Python code via untrusted callables in Hydra's custom search space.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code"}],"description":"Hydra is a framework for elegantly configuring complex applications. From 1.2.0 until 1.3.0 and 1.4.0.dev10, the hydra-optuna-sweeper package accepts a configuration-controlled dotted path in hydra.sweeper.custom_search_space, resolves it with hydra.utils.get_method(), and later invokes the returned callable in the Hydra controller process. Because get_method() is a trusted-input lookup helper and does not apply the execution policy used by instantiate(), an attacker who controls Optuna sweep configuration or command-line overrides can select importable Python code for execution with the application's privileges, including bypassing a trusted execution whitelist on affected Hydra 1.4 development releases. This issue is fixed in versions 1.3.0 and 1.4.0.dev10.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Hydra: Optuna custom_search_space can resolve and execute untrusted callables via get_method","id":"CVE-2026-106440","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":5,"n_references":4,"next":{"headline":"Hydra logging configuration permits unsafe callable resolution","id":"CVE-2026-106441"},"packages":[{"ecosystem":"PyPI","fixed":["1.3.0","1.4.0.dev10"],"introduced":["1.2.0","1.4.0.dev4"],"last_affected":[],"package":"hydra-optuna-sweeper","purl":"pkg:pypi/hydra-optuna-sweeper","source":"PYSEC-2026-4224"},{"ecosystem":"PyPI","fixed":["1.3.0"],"introduced":["1.2.0"],"last_affected":[],"package":"hydra-optuna-sweeper","purl":null,"source":"GHSA-5jjj-9xc3-rm56"},{"ecosystem":"PyPI","fixed":["1.3.0"],"introduced":["1.2.0"],"last_affected":[],"package":"hydra-optuna-sweeper","purl":"pkg:pypi/hydra-optuna-sweeper","source":"GHSA-5jjj-9xc3-rm56"},{"ecosystem":"PyPI","fixed":["1.4.0.dev10"],"introduced":["1.4.0.dev4"],"last_affected":[],"package":"hydra-optuna-sweeper","purl":null,"source":"GHSA-5jjj-9xc3-rm56"},{"ecosystem":"PyPI","fixed":["1.4.0.dev10"],"introduced":["1.4.0.dev4"],"last_affected":[],"package":"hydra-optuna-sweeper","purl":"pkg:pypi/hydra-optuna-sweeper","source":"GHSA-5jjj-9xc3-rm56"}],"prev":{"headline":"Hydra: Mutable instantiate policy sets allow target blocklist bypass","id":"CVE-2026-106439"},"products":["hydra"],"published":"2026-10-06","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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-09","vendors":["hydra-ecosystem"]},"summary":"Attackers controlling Optuna sweep configurations can execute arbitrary Python code via untrusted callables in Hydra's custom search space.","url":"https://insights.sbomify.com/CVE-2026-106440/"}