CVE-2025-60787

HIGH

MotionEye <= 0.43.1b4 - Authenticated Configuration Command Injection

Title source: manual
STIX 2.1

Exploitation Summary

EIP tracks 11 public exploits for CVE-2025-60787. PoCs published by prabhat, adminlove520, lil0xplorer, including Metasploit module exploits/linux/http/motioneye_auth_rce_cve_2025_60787.

AI-analyzed exploit summary This exploit bypasses client-side validation in motionEye's web UI to inject shell commands into configuration values, leading to remote code execution when the motion service restarts. The PoC demonstrates creating a harmless file (/tmp/test) as proof of concept.

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.

Exploits (11)

exploitdb WORKING POC
by prabhat · textwebappsmultiple
https://www.exploit-db.com/exploits/52481

This exploit bypasses client-side validation in motionEye's web UI to inject shell commands into configuration values, leading to remote code execution when the motion service restarts. The PoC demonstrates creating a harmless file (/tmp/test) as proof of concept.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: motionEye <= 0.43.1b4
Auth required
Prerequisites: Access to motionEye web UI with admin credentials · Browser with devtools to override client-side validation
devstral-2 · analyzed Feb 16, 2026 Full analysis →
github WORKING POC 2 stars
by adminlove520 · pythonpoc
https://github.com/adminlove520/CVE-Poc_All_in_One/tree/main/2025/CVE-2025-60787

This repository contains a functional exploit for CVE-2025-60787, an authenticated RCE vulnerability in motionEye. The exploit supports both reverse shell and command execution payloads, leveraging motionEye's authentication mechanism and camera configuration manipulation.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: motionEye
Auth required
Prerequisites: valid motionEye credentials · network access to the motionEye instance · Python 3 environment
devstral-2 · analyzed Mar 08, 2026 Full analysis →
nomisec WORKING POC 1 stars
by lil0xplorer · poc
https://github.com/lil0xplorer/CVE-2025-60787_PoC

This repository contains a functional exploit for CVE-2025-60787, an authenticated RCE vulnerability in MotionEye <= 0.43.1b4. The exploit bypasses client-side validation on the `image_file_name` field to inject a reverse shell payload.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: MotionEye <= 0.43.1b4
Auth required
Prerequisites: valid credentials · network access to target · listener setup for reverse shell
devstral-2 · analyzed Mar 08, 2026 Full analysis →
nomisec WRITEUP
by Revnin · poc
https://github.com/Revnin/CCTV-MACHINE

This repository contains a penetration test report detailing a black box assessment of HackTheBox's CCTV machine, achieving root compromise via a chain of vulnerabilities including default credentials, SQL injection (CVE-2024-51482), password hash cracking, and RCE in motionEye (CVE-2025-60787). The report provides an overview of the attack path but lacks specific technical details or exploit code.

Classification
Writeup 90%
Attack Type
Other
Complexity
Moderate
Reliability
Theoretical
Target: motionEye (version not specified)
Auth required
Prerequisites: IP address of target machine · default credentials · SQL injection vulnerability (CVE-2024-51482) · password hash cracking · RCE vulnerability in motionEye (CVE-2025-60787)
devstral-2 · analyzed Apr 27, 2026 Full analysis →
nomisec WORKING POC
by agent-skywalker · poc
https://github.com/agent-skywalker/CVE-2025-60787

This repository contains a functional exploit for CVE-2025-60787, targeting motionEye. The exploit leverages a signature computation vulnerability to bypass authentication and execute a reverse shell command via crafted camera configuration settings.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: motionEye (version not specified)
No auth needed
Prerequisites: Network access to motionEye web interface · Python environment to run the exploit
devstral-2 · analyzed Mar 14, 2026 Full analysis →
nomisec WORKING POC
by d3vn0mi · poc
https://github.com/d3vn0mi/CVE-2025-60787-POC

This repository contains a functional exploit for CVE-2025-60787, an authenticated remote code execution vulnerability in motionEye <= 0.43.1b4. The exploit leverages unsanitized configuration parameters (e.g., `image_file_name`) to inject OS commands, which are executed when the Motion service processes the configuration.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: motionEye <= 0.43.1b4
Auth required
Prerequisites: Valid admin credentials for motionEye · Network access to the target instance
devstral-2 · analyzed Mar 14, 2026 Full analysis →
nomisec WORKING POC
by gunzf0x · poc
https://github.com/gunzf0x/CVE-2025-60787

This repository contains a functional Python exploit for CVE-2025-60787, an authenticated RCE vulnerability in motionEye. The exploit supports both reverse shell and command execution modes, leveraging motionEye's authentication mechanism and camera configuration manipulation.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: motionEye
Auth required
Prerequisites: valid motionEye credentials · network access to the target · Python 3 environment
devstral-2 · analyzed Mar 08, 2026 Full analysis →
nomisec WORKING POC
by Rohitberiwala · poc
https://github.com/Rohitberiwala/CVE-2025-60787-MotionEye-RCE

This repository contains a functional Python exploit for CVE-2025-60787, targeting a command injection vulnerability in MotionEye (≤ 0.43.1b4). The exploit bypasses client-side validation to inject arbitrary commands via the 'picture_filename' parameter, achieving remote code execution upon service restart.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: MotionEye ≤ 0.43.1b4
Auth required
Prerequisites: network access to MotionEye web interface · valid credentials
devstral-2 · analyzed Mar 07, 2026 Full analysis →
nomisec WRITEUP
by GarethMSheldon · poc
https://github.com/GarethMSheldon/CVE-2025-60787-Detection-motionEye-RCE-via-Config-Injection

This repository provides a detailed technical analysis and detection guidance for CVE-2025-60787, an unauthenticated RCE vulnerability in motionEye <= 0.43.1b4. It includes MITRE ATT&CK mapping, detection rules (YARA, KQL), and IOCs for identifying exploitation attempts.

Classification
Writeup 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: motionEye <= 0.43.1b4
No auth needed
Prerequisites: access to motionEye web interface · ability to modify configuration parameters
devstral-2 · analyzed Mar 01, 2026 Full analysis →
github WRITEUP
by prabhatverma47 · poc
https://github.com/prabhatverma47/CVE-2025-60787

This repository provides a detailed technical analysis of CVE-2025-60787, an RCE vulnerability in MotionEye <= 0.43.1b4 due to client-side validation bypass. It includes root cause analysis, patch suggestions, and a step-by-step reproduction guide.

Classification
Writeup 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: MotionEye <= 0.43.1b4
Auth required
Prerequisites: Access to MotionEye web interface · Valid credentials (default: admin/blank password) · Docker environment for testing
devstral-2 · analyzed Feb 19, 2026 Full analysis →
metasploit WORKING POC EXCELLENT
by Maksim Rogov, prabhatverma47 · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/motioneye_auth_rce_cve_2025_60787.rb

This Metasploit module exploits a template injection vulnerability in MotionEye Frontend (CVE-2025-60787) by leveraging unsanitized user input in configuration parameters to achieve remote code execution. It requires authentication and targets versions 0.43.1b4 and prior.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: MotionEye Frontend <= 0.43.1b4
Auth required
Prerequisites: Valid admin credentials for MotionEye Frontend · Network access to the target
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Scores

CVSS v3 7.2
EPSS 0.2475
EPSS Percentile 97.6%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact total

Details

CWE
CWE-116 CWE-20 CWE-78
Status published
Products (3)
motioneye_project/motioneye 0.42.1
motioneye_project/motioneye 0.43.1 beta1 (4 CPE variants)
pypi/motioneye 0 - 0.43.1b5PyPI
Published Oct 03, 2025
Tracked Since Feb 18, 2026