CVE-2025-47782 Details
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.
A remote code execution vulnerability has been identified in motionEye versions 0.43.1b1 through 0.43.1b3. The issue arises in the add_camera function of the motionEye web API, where a crafted camera device path can be used to execute arbitrary commands in a non-interactive shell. This execution occurs as the motionEye run user, which is 'motion' by default. The vulnerability is triggered by sending a POST request to the 'config/add' endpoint with a specially formatted device path that exploits command substitution.
Users can upgrade to motionEye version 0.43.1b4, where this vulnerability has been patched. Alternatively, the patch can be applied manually by replacing the single quotes in the command string with a safely quoted input device.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 14, 2025CISA-ADP
Assessed May 14, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g5mq-prx7-c588 | CISA-ADP | AdvisoryBundleExploitRemedyVendor |
| https://github.com/motioneye-project/motioneye/issues/3142 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/motioneye-project/motioneye/pull/3143 | [email protected] | Source CodeVendor |
| https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g5mq-prx7-c588 | [email protected] | AdvisoryBundleExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| motionEye | 0.43.1b1 0.43.1b2 0.43.1b3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 14, 2025 | CVE Modified | CISA-ADP |
| May 14, 2025 | New CVE Received | [email protected] |
Volerion