Vulnerability · Published May 14, 2025 · Assigned by GitHub_M
CVE-2025-47782motionEye vulnerable to RCE in add_camera Function Due to unsafe command execution
High 8.9
In plain English
A high-severity OS command injection in motioneye from motioneye-project. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | motioneye | 0.43.1b4 | GHSA-g5mq-prx7-c588 |
| PyPI | motioneye | 0.43.1b4 | PYSEC-2025-39 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| motioneye-project | motioneye | >= 0.43.1b1, < 0.43.1b4 |
Weakness: CWE-78 · 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
References
- https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g5mq-prx7-c588 x_refsource_CONFIRM
- https://github.com/motioneye-project/motioneye/issues/3142 x_refsource_MISC
- https://github.com/motioneye-project/motioneye/pull/3143 x_refsource_MISC