CVE-2025-60787 Details
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.
A command injection vulnerability has been identified in MotionEye versions through 0.43.1b4. The issue arises from unsanitized user input in configuration parameters, such as 'image_file_name', which is written to Motion configuration files. This vulnerability allows remote authenticated attackers with admin access to execute arbitrary code when Motion is restarted.
Users can manually sanitize the 'image_file_name' parameter to remove any potentially harmful characters before uploading it. Additionally, a patch is available that modifies the MotionEye configuration file to include proper input sanitization.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/prabhatverma47/motionEye-RCE-through-config-parameter | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-116 | Improper Encoding or Escaping of Output | CISA-ADP |
| CWE-20 | Improper Input Validation | CISA-ADP |
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| motioneye project motioneye | 0.42.1 0.43.1 beta1 0.43.1 beta2 0.43.1 beta3 0.43.1 beta4 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Translated | [email protected] |
| Jul 5, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 10, 2025 | Initial Analysis | [email protected] |
| Oct 3, 2025 | CVE Modified | CISA-ADP |
| Oct 3, 2025 | New CVE Received | [email protected] |