CVE-2025-60787: MotionEye v0.43.1b4 and before is vulnerable to OS Command Injection in configuration parameters such as image
CVE-2025-60787 is a high-severity flaw (CVSS 7.2) affecting motioneye. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- EPSS top 3%: very likely to be exploited
- Public exploit reference
A fixed release or distro patch exists.
Last updated 2026-07-05 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: gunzf0x/CVE-2025-60787 (10 stars)
- GitHub PoC: lil0xplorer/CVE-2025-60787_PoC (2 stars)
- GitHub PoC: Rohitberiwala/CVE-2025-60787-MotionEye-RCE (1 stars)
- Write-up: github.com/prabhatverma47/motionEye-RCE-through-config-parameter
- GitHub PoC: prabhatverma47/CVE-2025-60787
- Exploit-DB: motionEye 0.43.1b4 - RCE
- Metasploit: Remote Code Execution Vulnerability in MotionEye Frontend (CVE-2025-60787)
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-60787?
motioneye: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2025-60787 being exploited?
CVE-2025-60787 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-60787 affect?
CVE-2025-60787 affects motioneye. Severity is high (CVSS 7.2). 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 ac
How urgent is CVE-2025-60787?
Priority 55/100. High severity; EPSS top 3%: very likely to be exploited; Public exploit reference