Hydra: hydra.utils.instantiate with untrusted config can lead to code execution
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| facebookresearch | hydra | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Facebookresearch | Hydra |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-2cp2-2r3c-7p7r | Hydra: hydra.utils.instantiate with untrusted config can lead to code execution |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.456% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Facebookresearch
Facebookresearch hydra |
|
| Vendors & Products |
Facebookresearch
Facebookresearch hydra |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Hydra: hydra.utils.instantiate with untrusted config can lead to code execution | |
| Weaknesses | CWE-470 CWE-94 |
|
| References |
|
|
| Metrics |
cvssV3_1
|