CVE-2026-68508
HIGH 7.8CVSS 3.1Hydra: hydra.utils.instantiate with untrusted config can lead to code execution
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.
- Published
- 21 Aug 2026
- Last modified
- 12 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-470CWE-94
- Also known as
- GHSA-2cp2-2r3c-7p7rPYSEC-2026-3850
- Sources
- NVDJSONOSV GHSA-2cp2-2r3c-7p7rJSONOSV PYSEC-2026-3850JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | hydra-core | < 1.3.4 | 1.3.4 |
References
- https://github.com/hydra-ecosystem/hydra/commit/7faad0dcedfb4c0a364aa1067c0080fd6fdf8dca · WEB
- https://github.com/hydra-ecosystem/hydra/issues/3259 · WEB
- https://github.com/hydra-ecosystem/hydra/pull/3261 · WEB
- https://github.com/hydra-ecosystem/hydra/releases/tag/v1.3.4 · WEB
- https://github.com/hydra-ecosystem/hydra/security/advisories/GHSA-2cp2-2r3c-7p7r · WEB
- https://github.com/hydra-ecosystem/hydra · PACKAGE
- https://pypi.org/project/hydra-core · PACKAGE
- https://github.com/advisories/GHSA-2cp2-2r3c-7p7r · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-68508 · ADVISORY
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 21 Aug 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Sep 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 Aug 2026)