CVE-2021-42057
JSON

7.8high

Obsidian Dataview vulnerable to code injection due to unsafe eval

Severity
7.8high CVSS:3.1 by NVD
Exploit likelihood
1.24% (higher than 70% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-xfg5-vrmc-24wc

Description

Obsidian Dataview through 0.4.12-hotfix1 allows eval injection. The evalInContext function in executes user input, which allows an attacker to craft malicious Markdown files that will execute arbitrary code once opened. NOTE: 0.4.13 provides a mitigation for some use cases.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
obsidian-dataview (npm)before 0.4.13GitHub Advisory Database
obsidian obsidian_dataviewup to 0.4.11, 0.4.12NVD

All scores

GitHub7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD9.3high CVSS:2.0AV:N/AC:M/Au:N/C:C/I:C/A:C

Classification

What each source says

CVE List

Obsidian Dataview through 0.4.12-hotfix1 allows eval injection. The evalInContext function in executes user input, which allows an attacker to craft malicious Markdown files that will execute arbitrary code once opened. NOTE: 0.4.13 provides a mitigation for some use cases.

GitHub Advisory Database

Obsidian Dataview through 0.4.12-hotfix1 allows eval injection. The evalInContext function in executes user input, which allows an attacker to craft malicious Markdown files that will execute arbitrary code once opened. NOTE: 0.4.13 provides a mitigation for some use cases.

NVD (es)

Obsidian Dataview versiones hasta 0.4.12-hotfix1, permite una inyección de eval. La función evalInContext ejecuta la entrada del usuario, que permite a un atacante diseñar archivos Markdown maliciosos que ejecutarán código arbitrario una vez abiertos. NOTA: La versión 0.4.13 proporciona una mitigación para algunos casos de uso

References

Sources

SourceRecordLicence
CVE ListCVE-2021-42057 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-xfg5-vrmc-24wc changed 2023-11-08CC-BY-4.0
NVDCVE-2021-42057 changed 2026-06-17Public domain