{"id":"GHSA-rc77-xxq6-4mff","summary":"Command Injection in hot-formula-parser","details":"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.","aliases":["CVE-2020-6836"],"modified":"2023-11-08T04:03:57.359747Z","published":"2020-05-06T19:32:33Z","database_specific":{"github_reviewed_at":"2020-05-06T19:32:05Z","nvd_published_at":null,"cwe_ids":["CWE-94"],"severity":"CRITICAL","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-6836"},{"type":"WEB","url":"https://github.com/handsontable/formula-parser/pull/58"},{"type":"WEB","url":"https://github.com/handsontable/formula-parser/commit/396b089738d4bf30eb570a4fe6a188affa95cd5e"},{"type":"WEB","url":"https://blog.truesec.com/2020/01/17/reverse-shell-through-a-node-js-math-parser"},{"type":"PACKAGE","url":"https://github.com/handsontable/formula-parser"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1439"}],"affected":[{"package":{"name":"hot-formula-parser","ecosystem":"npm","purl":"pkg:npm/hot-formula-parser"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.0.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/05/GHSA-rc77-xxq6-4mff/GHSA-rc77-xxq6-4mff.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}