{"id":"CVE-2020-6836","aliases":["CVE-2020-6836","GHSA-rc77-xxq6-4mff"],"related":[],"kind":"vulnerability","state":"published","title":"Command Injection in hot-formula-parser","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Versions of `hot-formula-parser` prior to 3.0.1 are vulnerable to Command Injection. The package fails to sanitize values passed to the  `parse` function and concatenates it in an `eval` call. If a value of the formula is supplied by user-controlled input it may allow attackers to run arbitrary commands in the server.  \nParsing the following formula creates a `test` file in the present directory:  \n`\"SUM([(function(){require('child_process').execSync('touch test')})(),2])\"`\n\n\n## Recommendation\n\nUpgrade to version 3.0.1 or later.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El archivo grammar-parser.jison en el paquete hot-formula-parser versiones anteriores a la versión 3.0.1 para Node.js, es vulnerable a una inyección de código arbitrario. El paquete no puede sanear los valores pasados a la función parse y los concatena en una llamada eval. Si un valor de la fórmula es tomado de una entrada controlada por el usuario, puede permitir a atacantes ejecutar comandos arbitrarios en el servidor.","source":"nvd"}],"published":"2020-01-11T00:42:28.000Z","modified":"2026-06-17T03:23:53.660Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.0.1"}],"ecosystem":"npm","package":"hot-formula-parser","purl":"pkg:npm/hot-formula-parser","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.0.1"}],"vendor":"hot-formula-parser_project","product":"hot-formula-parser","cpe":"cpe:2.3:a:hot-formula-parser_project:hot-formula-parser:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://www.npmjs.com/advisories/1439","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/handsontable/formula-parser/commit/396b089738d4bf30eb570a4fe6a188affa95cd5e","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://blog.truesec.com/2020/01/17/reverse-shell-through-a-node-js-math-parser/","tags":["x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-6836","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/handsontable/formula-parser/pull/58","tags":["web"],"sources":["ghsa"]},{"url":"https://blog.truesec.com/2020/01/17/reverse-shell-through-a-node-js-math-parser","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/handsontable/formula-parser","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-6836","url":"https://www.cve.org/CVERecord?id=CVE-2020-6836","licence":"CVE Terms of Use","modified":"2024-08-04T09:11:05.148Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rc77-xxq6-4mff","url":"https://github.com/advisories/GHSA-rc77-xxq6-4mff","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:57.359Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-6836","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-6836","licence":"Public domain","modified":"2026-06-17T03:23:53.660Z"}],"updatedAt":"2026-11-25T22:57:50.506Z","epss":{"score":0.02148,"percentile":0.8263,"date":"2026-12-01T12:00:22.000Z"}}