{"id":"CVE-2025-60787","published":"2025-10-03T00:00:00Z","modified":"2026-07-05T01:13:41Z","title":"MotionEye v0.43.1b4 and before is vulnerable to OS Command Injection in configuration parameters such as image_file_name","vendor":null,"product":null,"tier":"tail","description":{"text":"MotionEye v0.43.1b4 and before is vulnerable to OS Command Injection in configuration parameters such as image_file_name. Unsanitized user input is written to Motion configuration files, allowing remote authenticated attackers with admin access to achieve code execution when Motion is restarted.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.26764,"percentile":0.98075,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/prabhatverma47/motionEye-RCE-through-config-parameter","tags":[]}],"priority":{"score":29.7,"factors":[{"name":"EPSS percentile","points":19.62},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.04}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2026-02-11"},"pocGithub":{"count":8,"skipped":1,"earliest":"2025-10-03","earliestUrl":"https://github.com/prabhatverma47/CVE-2025-60787","repos":[{"name":"gunzf0x/CVE-2025-60787","url":"https://github.com/gunzf0x/CVE-2025-60787","stars":10,"created":"2026-03-08"},{"name":"lil0xplorer/CVE-2025-60787_PoC","url":"https://github.com/lil0xplorer/CVE-2025-60787_PoC","stars":2,"created":"2026-03-08"},{"name":"Rohitberiwala/CVE-2025-60787-MotionEye-RCE","url":"https://github.com/Rohitberiwala/CVE-2025-60787-MotionEye-RCE","stars":1,"created":"2026-03-07"},{"name":"prabhatverma47/CVE-2025-60787","url":"https://github.com/prabhatverma47/CVE-2025-60787","stars":0,"created":"2025-10-03"},{"name":"d3vn0mi/CVE-2025-60787-POC","url":"https://github.com/d3vn0mi/CVE-2025-60787-POC","stars":0,"created":"2026-03-13"}]},"metasploit":[{"name":"Remote Code Execution Vulnerability in MotionEye Frontend (CVE-2025-60787)","module":"exploit/linux/http/motioneye_auth_rce_cve_2025_60787","type":"exploit","disclosureDate":"2025-09-09","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/motioneye_auth_rce_cve_2025_60787.rb"}],"first":{"date":"2025-09-09","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/motioneye_auth_rce_cve_2025_60787.rb"},"provenance":"source"},"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-10-03T14:57:27.015264Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"motioneye","vulnerableRanges":["<0.43.1b5"],"patched":["0.43.1b5"],"from":["GHSA-j945-qm58-4gjx","PYSEC-2026-1680"],"provenance":"source"}],"summary":{"text":"MotionEye v0.43.1b4 and earlier contains an OS command injection flaw in configuration parameters such as image_file_name, where unsanitised user input is written into Motion configuration files. An attacker with remote access and admin-level authentication can achieve code execution when Motion is restarted.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:02:56Z"},"euvd":{"id":"EUVD-2025-32486","exploited":false,"provenance":"source"},"exploits":[{"id":52481,"url":"https://www.exploit-db.com/exploits/52481","title":"motionEye 0.43.1b4 - Remote Code Execution (RCE)","date":"2026-02-11","verified":false,"provenance":"source"}],"lineage":{"packageHistory":[{"cve":"CVE-2022-25568","published":"2022-03-24","fixed":"0.43.1b1","kev":false},{"cve":"CVE-2025-47782","published":"2025-05-14","fixed":"0.43.1b4","kev":false,"link":{"from":"CVE-2025-47782","to":"CVE-2025-60787","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:motioneye","fromFixed":"0.43.1b4","toFixed":"0.43.1b5","daysApart":142}]}},{"cve":"CVE-2025-60787","published":"2025-10-03","fixed":"0.43.1b5","kev":false},{"cve":"CVE-2026-31978","published":"2026-06-24","fixed":"0.44.0","kev":false},{"cve":"CVE-2026-32315","published":"2026-06-24","fixed":"0.44.0","kev":false},{"cve":"CVE-2026-46488","published":"2026-09-15","fixed":"0.44.0","kev":false}],"package":"PyPI:motioneye"}}