Hydra: hydra.utils.instantiate with untrusted config can lead to code execution
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-94.
Summary
Hydra is a framework for elegantly configuring complex applications. Prior to 1.3.4, hydra.utils.instantiate() resolves and calls Python objects selected by configuration through _resolve_target() in hydra/_internal/instantiate/_instantiate2.py, allowing attacker-controlled target values and arguments to choose dangerous callables. A consuming application, library, CLI workflow, or model loader that passes untrusted configuration, CLI overrides, or model metadata into hydra.utils.instantiate() can therefore execute arbitrary code in its own process, including reading or modifying files and credentials or terminating the process. Version 1.3.4 adds target blocking with an explicit HYDRA_INSTANTIATE_ALLOWLIST_OVERRIDE escape hatch. This issue is fixed in version 1.3.4.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| facebookresearch | hydra | before 1.3.4 | 1.3.4 | Patch available | CNA |
| — | hydra-core (PyPI) | before 1.3.4 | 1.3.4 | Patch available | GHSA-2cp2-2r3c-7p7r |
- hydra Vendorfacebookresearch Affected before 1.3.4 Fixed in 1.3.4 Patch available CNA
- hydra-core (PyPI) Vendor— Affected before 1.3.4 Fixed in 1.3.4 Patch available GHSA-2cp2-2r3c-7p7r
Remediation
- Fix · CNA hydra (facebookresearch) Fixed in 1.3.4
- Fix · GHSA-2cp2-2r3c-7p7r hydra-core (PyPI) Fixed in 1.3.4 Advisory →
Red Hat 2 advisories
- RHSA-2026:70979 Released 2026-09-23 · Red Hat rating ImportantRed Hat AI Inference 3.4.5 (cuda)
- Red Hat AI Inference Server 3.4 registry.redhat.io/rhaii/vllm-cuda-rhel9
- RHSA-2026:70965 Released 2026-09-23 · Red Hat rating ImportantRed Hat AI Inference 3.4.5 (cpu)
- Red Hat AI Inference Server 3.4 registry.redhat.io/rhaii/vllm-cpu-rhel9
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat AI Inference Server 3.4 | Fixed | RHSA-2026:70965, RHSA-2026:70979 |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-68508
- 2026-10-03 Alias added: GHSA-2cp2-2r3c-7p7r
References
Other 6
- https://github.com/hydra-ecosystem/hydra/security/advisories/GHSA-2cp2-2r3c-7p7r
- https://github.com/hydra-ecosystem/hydra/issues/3259
- https://github.com/hydra-ecosystem/hydra/pull/3261
- https://github.com/hydra-ecosystem/hydra/commit/7faad0dcedfb4c0a364aa1067c0080fd6fdf8dca
- https://github.com/hydra-ecosystem/hydra/releases/tag/v1.3.4
- https://github.com/hydra-ecosystem/hydra
Sources
- CVE-2026-68508 · CVE Program
- CVE-2026-68508 · NVD
- FIRST EPSS
- GHSA-2cp2-2r3c-7p7r · GitHub Advisory Database · CC BY 4.0
- CVE-2026-68508 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences