Exploit database

Vulnerability

CVE-2025-60787

Vulnerability details

Score
7.2
Severity
high

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

7 sources
Remote Code Execution Vulnerability in MotionEye Frontend (CVE-2025-60787)
MSF-linux--http--motioneye_auth_rce_cve_2025_60787MetasploitLinux,Unix / remote

This module exploits a template injection vulnerability in the MotionEye Frontend. MotionEye Frontend versions 0.43.1b4 and prior are vulnerable to OS Command Injection in configuration parameters such as image_file_name. Unsanitized user input is written to MotionEye Frontend configuration files, allowing remote authenticated attackers with admin access to achieve code execution. Successful exploitation will result in the command executing as the user running the web server, potentially exposing sensitive data or disrupting survey operations. An attacker can execute arbitrary system commands in the context of the user running the web server.

2025-09-09motioneye_auth_rce_cve_2025_60787.rb
gunzf0x/cve-2025-60787
GH-3a28b2b2c5310ed2ce67d3f6833d7160GitHubUnofficial GitHub source

PoC for CVE-2025-60787 - Authenticated RCE in motionEye for all versions up to 0.43.1b4 (included)

2026-03-082 files · 10 stars
lil0xplorer/cve-2025-60787_poc
GH-debf27b06b9cef8f51616a74cdd116d5GitHubUnofficial GitHub source

lil0xplorer/cve-2025-60787_poc source repository

2026-03-082 files · 2 stars
rohitberiwala/cve-2025-60787-motioneye-rce
GH-4f4af6560c2332ccdd1afdef2655eccfGitHubUnofficial GitHub source

Professional PoC for CVE-2025-60787: Remote Code Execution in MotionEye (<= 0.43.1b4). This exploit demonstrates an OS Command Injection vulnerability through client-side validation bypass, allowing attackers to execute arbitrary commands via configuration files.

2026-03-073 files · 1 stars
agent-skywalker/cve-2025-60787
GH-c45ebc40e63460a336f941f01dcaf4b1GitHubUnofficial GitHub source

MotionEye v0.43.1b4 OS Command Injection

2026-03-142 files · 0 stars
d3vn0mi/cve-2025-60787-poc
GH-d597fc8cd72768ccd72ec54985a16fffGitHubUnofficial GitHub source

Python PoC for CVE-2025-60787, authenticated OS command injection RCE in motionEye <= 0.43.1b4 via unsanitized image_file_name config

2026-03-134 files · 0 stars