Skip to content
Heist/ feed
Back to feed
High

Hydra: hydra.utils.instantiate with untrusted config can lead to code execution

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-68508
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 03:52 UTC · Revision 1

Source evidence

Hydra: hydra.utils.instantiate with untrusted config can lead to code execution

core-osv · Original source

Published 21 Aug 2026, 20:09 UTC

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.

osv:CVE-2026-68508
Complete source record
{
  "id": "558ab07905840561b35c340d0a7533df39b03f83edec8039254991fadd69801e",
  "url": "https://osv.dev/vulnerability/CVE-2026-68508",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Hydra: hydra.utils.instantiate with untrusted config can lead to code execution",
    "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.",
    "evidence": "osv:CVE-2026-68508",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-68508",
      "aliases": [
        "CVE-2026-68508",
        "GHSA-2cp2-2r3c-7p7r",
        "PYSEC-2026-3850"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/hydra-ecosystem/hydra",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "81070c4266f2c7e0bb614f84585b3bd0cb721ce1"
                },
                {
                  "fixed": "7faad0dcedfb4c0a364aa1067c0080fd6fdf8dca"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.3.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "7faad0dcedfb4c0a364aa1067c0080fd6fdf8dca"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "81070c4266f2c7e0bb614f84585b3bd0cb721ce1"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.3.4"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.3.3",
            "v1.3.2",
            "v1.3.1",
            "v1.3.0",
            "v1.1.1",
            "v1.1.0",
            "v1.1.0.rc1",
            "v1.1.0.dev6",
            "v1.0.3",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0",
            "v1.0.0rc4",
            "v1.0.0rc3",
            "v1.0.0rc1",
            "v1.0.0rc2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68508.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.231225634Z",
      "provider": "osv",
      "references": [
        "https://github.com/hydra-ecosystem/hydra/releases/tag/v1.3.4",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68508.json",
        "https://github.com/hydra-ecosystem/hydra/security/advisories/GHSA-2cp2-2r3c-7p7r",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-68508",
        "https://github.com/hydra-ecosystem/hydra/issues/3259",
        "https://github.com/hydra-ecosystem/hydra/commit/7faad0dcedfb4c0a364aa1067c0080fd6fdf8dca",
        "https://github.com/hydra-ecosystem/hydra/pull/3261"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-470",
          "CWE-94"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68508.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-68508",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509987,
  "published_at": "2026-08-21T20:09:26.113+00:00"
}