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

High 8.9 Published Updated

An authenticated admin can execute arbitrary commands via the add_camera API due to unsafe command execution in motionEye.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-47782?

CVE-2025-47782 is a high-severity command injection vulnerability in motioneye-project motioneye, published on 14 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-78

Which versions are affected by CVE-2025-47782?

3 open source packages ship an affected version, including motioneye.

PackageAffectedFixed in
motioneye PyPIFrom 0.43.1b10.43.1b4
motioneye PyPIFrom 0.43.1b10.43.1b4
motioneye PyPIFrom 0.43.1b10.43.1b4

How do I fix CVE-2025-47782?

Upgrade motioneye to 0.43.1b4 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-47782 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-47782 exists.

Sources

Also known as GHSA-g5mq-prx7-c588, PYSEC-2025-39.

Is CVE-2025-47782 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free