{"id":"CVE-2025-60787","details":"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.","aliases":["GHSA-j945-qm58-4gjx","PYSEC-2026-1680"],"modified":"2026-08-12T03:51:10.194675501Z","published":"2025-10-03T00:00:00Z","database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/60xxx/CVE-2025-60787.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/60xxx/CVE-2025-60787.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-60787"},{"type":"PACKAGE","url":"https://github.com/prabhatverma47/motionEye-RCE-through-config-parameter"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/motioneye-project/motioneye","events":[{"introduced":"acdc6644dbb0768a228d45fc2b230b779a9bc661"},{"last_affected":"acdc6644dbb0768a228d45fc2b230b779a9bc661"}],"database_specific":{"extracted_events":[{"introduced":"0.42.1"},{"last_affected":"0.42.1"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:motioneye_project:motioneye:0.42.1:*:*:*:*:*:*:*"}}],"versions":["0.42.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-60787.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"}]}