# CVE-2025-60787: motionEye vulnerable to RCE via unsanitized motion config parameter

- Severity: High 7.2 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- 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): 26.8%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-03T00:00:00.000Z
- Modified: 2026-11-05T23:10:00.150Z
- Also known as: GHSA-j945-qm58-4gjx, PYSEC-2026-1680
- Weaknesses: CWE-20, CWE-78, CWE-116
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- motioneye (PyPI): before 0.43.1b5
- motioneye_project motioneye: 0.42.1; 0.43.1

## Every score

- CISA-ADP: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/prabhatverma47/motionEye-RCE-through-config-parameter> (exploit, third-party-advisory, web)
- <https://github.com/motioneye-project/motioneye/security/advisories/GHSA-j945-qm58-4gjx> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-60787> (advisory)
- <https://github.com/motioneye-project/motioneye> (package)
- <https://pypi.org/project/motioneye> (package)
- <https://github.com/advisories/GHSA-j945-qm58-4gjx> (advisory)

## Sources

- CVE List: [CVE-2025-60787](https://www.cve.org/CVERecord?id=CVE-2025-60787), CVE Terms of Use, modified 2026-07-05
- GitHub Advisory Database: [GHSA-j945-qm58-4gjx](https://github.com/advisories/GHSA-j945-qm58-4gjx), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-60787](https://nvd.nist.gov/vuln/detail/CVE-2025-60787), Public domain, modified 2026-11-05
- PyPA Advisory Database: [PYSEC-2026-1680](https://osv.dev/vulnerability/PYSEC-2026-1680), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-60787 · Whole record: https://cve.day/CVE-2025-60787.json · Rebuilt by cve.day 2026-11-25T22:59:05.483Z
