Skip to main content
VulnerabilityPublished Updated

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

Affects dvcSource GCVE Database

0
Compare
Authoritative record:CVE-2026-68508· High 7.8

Not known to be exploited · CVSS 7.8 High : upgrade to 3.67.1_10 soon.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.67.1_10
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade dvc to 3.67.1_10.

Affected software

ProductAffectedFixed in
Homebrewdvcpkg:brew/dvcOther threatsAffected
  • <3.67.1_10
Fixed in
  • 3.67.1_10

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

## Summary `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()`. ## Details Hydra's instantiate API is designed to construct objects and call functions from configuration. For example: ```yaml component: _target_: package.module.Class arg: value ``` When this config is passed to `hydra.utils.instantiate()`, Hydra resolves `_target_` and calls it with the provided arguments. This is intended for trusted application configuration. However, if untrusted input controls `_target_`, the config becomes a callable-selection mechanism. A malicious config can select a callable capable of executing code or commands and provide attacker-controlled arguments. This issue is the same general class of problem discussed by Unit 42 for downstream AI/ML libraries such as NVIDIA NeMo, where untrusted model metadata was passed into Hydra instantiate: https://unit42.paloaltonetworks.com/rce-vulnerabilities-in-ai-python-libraries/ Hydra 1.3.4 includes a blacklist for some dangerous `_target_` values. That blacklist is defense-in-depth and is not a complete security boundary. The blacklist is not present in the released `hydra-core` 1.3.3 package, so this issue should not be described as a bypass of a released 1.3.3 blacklist. ## Impact A successful attack can execute code in the process that calls `hydra.utils.instantiate()`. The impact is limited to the privileges and environment of that process. Potential impact includes: - Reading files, credentials, environment variables, or data accessible to the process - Modifying files, outputs, checkpoints, or application state writable by the process - Terminating or disrupting the process ## Affected Usage Applications and libraries are affected when they pass untrusted or semi-trusted config, model metadata, CLI overrides, or other externally controlled data to `hydra.utils.instantiate()` without constraining which targets may be instantiated. Trusted application-owned configuration is not affected in the same way. ## Remediation Hydra 1.3.4 hardens the existing behavior by adding a blacklist of obvious dangerous targets. It is a substantial security improvement, and users remaining on the 1.3 release line should upgrade to 1.3.4 or a newer version. The unreleased Hydra 1.4 development line uses an allowlist-based instantiation model that fully addresses this vulnerability class. The allowlist must come from trusted application code or another trusted channel, not from the untrusted config being instantiated. Applications that consume untrusted or semi-trusted config should not pass it directly to `hydra.utils.instantiate()`. They should validate `_target_` values against a trusted allowlist before instantiation.

References

Community reviews

Loading reviews…