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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| obsidian-dataview (npm) | before 0.4.13 | GitHub Advisory Database |
| obsidian obsidian_dataview | up to 0.4.11, 0.4.12 | NVD |
All scores
| GitHub | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 9.3high CVSS:2.0 | AV: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
| https://github.com/blacksmithgu/obsidian-dataview/issues/615 | exploit, issue-tracking, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-42057 | advisory | |
| https://github.com/blacksmithgu/obsidian-dataview | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-42057 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xfg5-vrmc-24wc changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-42057 changed 2026-06-17 | Public domain |