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

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.58% (79th 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-HOTFORMULAPARSER-541328
  • published 10 Jan 2020
  • disclosed 18 Dec 2019
  • credit Alexander Andersson

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
Expand this section

Snyk

Recommended
7.6 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    High
  • Availability (A)
    Low
Expand this section

NVD

9.8 critical