CVE-2020-6836 json
Command Injection in hot-formula-parser
published 6y ago modified 4mo ago also GHSA-rc77-xxq6-4mff , EUVD-2020-0442
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
Summary
grammar-parser.jison in the hot-formula-parser package before 3.0.1 for Node.js is vulnerable to arbitrary code injection. The package fails to sanitize values passed to the parse function and concatenates them in an eval call. If a value of the formula is taken from user-controlled input, it may allow attackers to run arbitrary commands on the server.
Patch / fix
- npm hot-formula-parser 3.0.1
- hot-formula-parser_project hot-formula-parser 3.0.1
- github.com/handsontable/formula-parser@396b089 commit
- github.com/handsontable/formula-parser#58 pull request
- npmjs.com/advisories/1439 advisory
Is CVE-2020-6836 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
2.15% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | hot-formula-parser | <3.0.1 |
3.0.1 |
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/handsontable/formula-parser/commit/396b089738d4bf30eb570a4fe6a188affa95cd5e
web, patch
-
npmjs.com
/advisories/1439
web, patch, third-party-advisory
-
github.com
/handsontable/formula-parser/pull/58
web
- blog.truesec.com /2020/01/17/reverse-shell-through-a-node-js-math-parser/
-
nvd.nist.gov
/vuln/detail/CVE-2020-6836
advisory
-
blog.truesec.com
/2020/01/17/reverse-shell-through-a-node-js-math-parser
web
-
github.com
/handsontable/formula-parser
package
Sources
- CVE List CVE-2020-6836
- GitHub Advisory GHSA-rc77-xxq6-4mff
- NVD CVE-2020-6836
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.