Description
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.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Remote Code Execution Vulnerability in MotionEye Frontend (CVE-2025-60787)
exploit/linux/http/motioneye_auth_rce_cve_2025_60787
Exploit-DB 1
- motionEye 0.43.1b4 - RCE EDB-52481 · webapps · Feb 11, 2026
GitHub 9 repositories
-
gunzf0x/CVE-2025-60787 ★ 10 · Mar 8, 2026
PoC for CVE-2025-60787 - Authenticated RCE in motionEye for all versions up to 0.43.1b4 (included)
-
lil0xplorer/CVE-2025-60787_PoC ★ 2 · Mar 8, 2026
-
Rohitberiwala/CVE-2025-60787-MotionEye-RCE ★ 1 · Mar 7, 2026
Professional PoC for CVE-2025-60787: Remote Code Execution in MotionEye (<= 0.43.1b4). This exploit demonstrates an OS Command Injection vulnerability through client-side validation bypass, allowing …
-
diamorphine666/CVE-2025-60787 ★ 0 · Oct 3, 2026
MotionEye OS Command Injection (CVE-2025-60787)
-
ozcanpng/CVE-2025-60787 ★ 0 · Jul 10, 2026
CVE-2025-60787 motionEye authenticated command injection RCE PoC
-
agent-skywalker/CVE-2025-60787 ★ 0 · Mar 14, 2026
MotionEye v0.43.1b4 OS Command Injection
-
d3vn0mi/CVE-2025-60787-POC ★ 0 · Mar 13, 2026
Python PoC for CVE-2025-60787, authenticated OS command injection RCE in motionEye <= 0.43.1b4 via unsanitized image_file_name config
-
GarethMSheldon/CVE-2025-60787-Detection-motionEye-RCE-via-Config-Injection ★ 0 · Feb 28, 2026
-
prabhatverma47/CVE-2025-60787 ★ 0 · Oct 3, 2025
CVE-2025-60787 Poc - RCE - MotionEye <= 0.43.1b4
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | motioneye | < 0.43.1b5 | 0.43.1b5 | GHSA-j945-qm58-4gjx |