# CVE-2026-68508: Hydra: hydra.utils.instantiate with untrusted config can lead to code execution

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-08-21T20:09:26.113Z
- Modified: 2026-10-12T16:10:00.220Z
- Also known as: GHSA-2cp2-2r3c-7p7r, PYSEC-2026-3850
- Weaknesses: CWE-94, CWE-470
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- facebookresearch hydra: < 1.3.4
- hydra-core (PyPI): before 1.3.4

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/hydra-ecosystem/hydra/security/advisories/GHSA-2cp2-2r3c-7p7r> (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/commit/7faad0dcedfb4c0a364aa1067c0080fd6fdf8dca> (web)
- <https://github.com/hydra-ecosystem/hydra/releases/tag/v1.3.4> (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)

## Sources

- CVE List: [CVE-2026-68508](https://www.cve.org/CVERecord?id=CVE-2026-68508), CVE Terms of Use, modified 2026-08-21
- GitHub Advisory Database: [GHSA-2cp2-2r3c-7p7r](https://github.com/advisories/GHSA-2cp2-2r3c-7p7r), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-68508](https://nvd.nist.gov/vuln/detail/CVE-2026-68508), Public domain, modified 2026-10-12
- PyPA Advisory Database: [PYSEC-2026-3850](https://osv.dev/vulnerability/PYSEC-2026-3850), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-68508 · Whole record: https://cve.day/CVE-2026-68508.json · Rebuilt by cve.day 2026-11-25T22:59:34.831Z
