RCE in Motioneye Project
CVE-2025-60787
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.186, 97.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Motioneye Project — versions 0.42.1, 0.43.1
Weakness classification (CWE)
Public exploits and proof-of-concept code
Metasploit modules
11 public repositories with exploit or proof-of-concept code for this CVE:
- gunzf0x/CVE-2025-60787 (10 stars, last pushed 2026-03-08): PoC for CVE-2025-60787 - Authenticated RCE in motionEye for all versions up to 0.43.1b4 (included)
- lil0xplorer/CVE-2025-60787_PoC (2 stars, last pushed 2026-03-08)
- Rohitberiwala/CVE-2025-60787-MotionEye-RCE (1 star, last pushed 2026-03-12): 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 (last pushed 2026-10-03): MotionEye OS Command Injection (CVE-2025-60787)
- ledksv/cctv (last pushed 2026-09-13): CCTV — HackTheBox | CVE-2024-51482 ZoneMinder SQLi, bcrypt crack, CVE-2025-60787 motionEye RCE for root
- ozcanpng/CVE-2025-60787 (last pushed 2026-07-10): CVE-2025-60787 motionEye authenticated command injection RCE PoC
- Revnin/CCTV-MACHINE (last pushed 2026-04-26): A black box penetration test on HackTheBox's CCTV machine achieving full root compromise via four vulnerabilities: default credentials, SQL injection (CVE-2024-51482), password hash cracking, and Rem…
- agent-skywalker/CVE-2025-60787 (last pushed 2026-03-14): MotionEye v0.43.1b4 OS Command Injection
- d3vn0mi/CVE-2025-60787-POC (last pushed 2026-03-13): 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 (last pushed 2026-02-28)
1 more are listed on the interactive page.
Also mentioned in 2 other repositories (fkie-cad/nvd-json-data-feeds, nomi-sec/PoC-in-GitHub). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- motioneye-project.com (Broken Link)
- github.com/prabhatverma47/motionEye-RCE-through-config-parameter (Exploit, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.