p PatchFirst

CVE-2026-68508

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 7.8 · High · EPSS 0.5% · Fix available

Published
Updated

Stack: python

Affected products and versions

  • hydra

    Versions
    • < 1.3.4: Affected

    No fix published

  • hydra-core PyPI

    Versions
    • 0.1.4
    • 0.1.5
    • 0.1.5rc1
    • 0.10.0
    • 0.11.0
    • 0.11.0rc1
    • 0.11.1
    • 0.11.1rc1
    • 0.11.2
    • 0.11.2rc1
    • 0.11.3
    • 0.9.0
    • 1.0.0
    • 1.0.0rc1
    • 1.0.0rc2
    • 1.0.0rc3
    • 1.0.0rc4
    • 1.0.1
    • 1.0.2
    • 1.0.3
    • 1.0.4
    • 1.0.5
    • 1.0.6
    • 1.0.7
    • 1.1.0
    • 1.1.0.dev1
    • 1.1.0.dev2
    • 1.1.0.dev3
    • 1.1.0.dev4
    • 1.1.0.dev5
    • 1.1.0.dev6
    • 1.1.0.dev7
    • 1.1.0rc1
    • 1.1.1
    • 1.1.2
    • 1.1.2.dev0
    • 1.2.0
    • 1.2.0.dev1
    • 1.2.0.dev2
    • 1.2.0.dev3
    • 1.2.0.dev4
    • 1.2.0.dev5
    • 1.3.0
    • 1.3.0.dev0
    • 1.3.0.dev1
    • 1.3.1
    • 1.3.2
    • 1.3.3
    Affected ranges
    • ECOSYSTEM: < 1.3.4

    Update to 1.3.4

Original sources

Check your server →