CVE-2026-68508: Hydra: hydra.utils.instantiate with untrusted config can lead to code execution
hydra.utils.instantiate() resolves and calls Python objects from config. If an
application passes untrusted config to instantiate(), an attacker who controls
_target_ and its arguments can cause arbitrary code execution in the consuming
process.
Hydra is not a network service. Exploitation requires a consuming application,
library, or user workflow to load attacker-controlled config, CLI overrides, or
model metadata and pass it to hydra.utils.instantiate().
References
- github.com/advisories/GHSA-2cp2-2r3c-7p7r
- github.com/hydra-ecosystem/hydra/commit/7faad0dcedfb4c0a364aa1067c0080fd6fdf8dca
- github.com/hydra-ecosystem/hydra/issues/3259
- github.com/hydra-ecosystem/hydra/pull/3261
- github.com/hydra-ecosystem/hydra/releases/tag/v1.3.4
- github.com/hydra-ecosystem/hydra/security/advisories/GHSA-2cp2-2r3c-7p7r
- nvd.nist.gov/vuln/detail/CVE-2026-68508
Code Behaviors & Features
Detect and mitigate CVE-2026-68508 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →