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

- Severity: High 8.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-05-14T15:54:59.309Z
- Modified: 2026-09-10T03:50:57.453Z
- Also known as: GHSA-g5mq-prx7-c588, PYSEC-2025-39
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- motioneye-project motioneye: >= 0.43.1b1, < 0.43.1b4
- motioneye (PyPI): from 0.43.1b1 before 0.43.1b4

## Every score

- GitHub_M: CVSS:4.0 8.9 High `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`
- GitHub: CVSS:4.0 High `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> (exploit, advisory, web)
- <https://github.com/motioneye-project/motioneye/issues/3142> (report, web)
- <https://github.com/motioneye-project/motioneye/pull/3143> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-47782> (advisory)
- <https://github.com/motioneye-project/motioneye> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/motioneye/PYSEC-2025-39.yaml> (web)

## Sources

- CVE List: [CVE-2025-47782](https://www.cve.org/CVERecord?id=CVE-2025-47782), CVE Terms of Use, modified 2025-05-14
- GitHub Advisory Database: [GHSA-g5mq-prx7-c588](https://github.com/advisories/GHSA-g5mq-prx7-c588), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-47782](https://nvd.nist.gov/vuln/detail/CVE-2025-47782), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-39](https://osv.dev/vulnerability/PYSEC-2025-39), CC-BY-4.0, modified 2025-05-14

---

Page: https://cve.day/CVE-2025-47782 · Whole record: https://cve.day/CVE-2025-47782.json · Rebuilt by cve.day 2026-11-25T22:58:58.051Z
