Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. hydra-core
  4. ›
  5. CVE-2026-68508

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

August 21, 2026

hydra.utils.instantiate() resolves and calls Python objects from config. If an application passes untrusted config to instantiate(), an attacker who controls _target_ and its arguments can cause arbitrary code execution in the consuming process.

Hydra is not a network service. Exploitation requires a consuming application, library, or user workflow to load attacker-controlled config, CLI overrides, or model metadata and pass it to hydra.utils.instantiate().

References

  • github.com/advisories/GHSA-2cp2-2r3c-7p7r
  • github.com/hydra-ecosystem/hydra/commit/7faad0dcedfb4c0a364aa1067c0080fd6fdf8dca
  • github.com/hydra-ecosystem/hydra/issues/3259
  • github.com/hydra-ecosystem/hydra/pull/3261
  • github.com/hydra-ecosystem/hydra/releases/tag/v1.3.4
  • github.com/hydra-ecosystem/hydra/security/advisories/GHSA-2cp2-2r3c-7p7r
  • nvd.nist.gov/vuln/detail/CVE-2026-68508

Code Behaviors & Features

Detect and mitigate CVE-2026-68508 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.3.4

Fixed versions

  • 1.3.4

Solution

Upgrade to version 1.3.4 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/hydra-core/CVE-2026-68508.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 11 Sep 2026 00:17:34 +0000.