cbcvebase.
CVE-2025-60787
published 2025-10-03

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…

PriorityP267high7.2CVSS 3.1
AVNACLPRHUINSUCHIHAH
EXPLOIT
EPSS
24.42%
97.6th percentile
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.

Affected

5 ranges
VendorProductVersion rangeFixed in
motioneye-projectmotioneye< 0.44.00.44.0
motioneye_projectmotioneye
motioneye_projectmotioneye
motioneye_projectmotioneye>= 0 < 0.43.1b50.43.1b5
motioneye_projectmotioneye>= 0 < 0.44.00.44.0

Detection & IOCsextracted from sources · hover to see the quote

versionmotionEye <= 0.43.1b4
command$(touch /tmp/test).%Y-%m-%d-%H-%M-%S
urlhttp://127.0.0.1:9999
otherghcr.io/motioneye-project/motioneye:edge
port8765
  • Detect client-side validation bypass attempts: look for browser console injection of `configUiValid = function() { return true; };` or equivalent JS overrides in web proxy/WAF logs targeting motionEye endpoints.
  • Alert on motionEye configuration file writes (camera-*.conf) containing shell interpolation syntax such as `$(...)` or backtick expressions in filename parameters.
  • Monitor for unexpected file creation in /tmp (e.g., /tmp/test) by the motion or motioneye process, which may indicate successful command injection via config parameter exploitation.
  • A public Metasploit module exists for this CVE (linux/http/motioneye_auth_rce_cve_2025_60787); detect exploitation attempts matching Metasploit's default request patterns against motionEye HTTP endpoints.
  • ·Exploitation requires authenticated admin access; unauthenticated attackers cannot directly exploit this vulnerability. Ensure admin credentials are not left at default (blank password).
  • ·Code execution is deferred — the injected payload only executes when the motion process restarts or re-reads its configuration, not immediately upon saving the malicious value.
  • ·Commands execute as the user running the web server process, not necessarily root; impact depends on the privilege level of the motioneye/motion service account.

CVSS provenance

nvdv3.17.2HIGHCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
ghsa7.2HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.