Arbitrary Code Injection Affecting hot-formula-parser package, versions <3.0.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.27% (68th 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 Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-HOTFORMULAPARSER-541328
  • published10 Jan 2020
  • disclosed18 Dec 2019
  • creditAlexander Andersson

Introduced: 18 Dec 2019

CVE-2020-6836  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade hot-formula-parser to version 3.0.1 or higher.

Overview

hot-formula-parser is a Parser class that evaluates excel and mathematical formulas.

Affected versions of this package are vulnerable to Arbitrary Code Injection. The package doesn't sanitize values passed to the parse function and concatenates it in an eval call.

PoC

SUM([(function(){require('child_process').execSync('touch test')})(),2])

CVSS Scores

version 3.1