Skip to main content

motionEye EUVDEUVD-2026-39088

| CVE-2026-32315 MEDIUM
Incorrect Permission Assignment for Critical Resource (CWE-732)
2026-06-22 https://github.com/motioneye-project/motioneye GHSA-rhgp-6wq6-9j67
5.5
CVSS 3.1 · Vendor: https://github.com/motioneye-project/motioneye
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local shell access
  2. Delivery
    Read /etc/motioneye/motion.conf (no privileges needed)
  3. Exploit
    Extract SHA1 admin password hash
  4. Execution
    Forge authenticated admin API request using hash as signing key (GHSA-45h7-499j-7ww3)
  5. Persist
    Submit crafted image_file_name parameter
  6. Impact
    Trigger OS command injection as Motion daemon (CVE-2025-60787)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V13 - Configuration Permission assignment review
Exploitation Conditions

Exploitation of this specific flaw requires only a valid local shell account on the motionEye host - no sudo access, no special group membership, and no elevated privileges are needed. The vulnerability is triggered as soon as any admin password is set via the motionEye web UI, which causes the hash to be written to the world-readable motion.conf. Both the manual and motioneye_init installation paths produce the vulnerable state by default; no non-default configuration is required to be exposed. The primary limiting factor is local access: this flaw cannot be exploited remotely on its own. Chaining to achieve full privilege escalation additionally requires that GHSA-45h7-499j-7ww3 and CVE-2025-60787 are both unpatched on the same host, and that the admin password has been set at least once via the web UI.

Impact

The NVD CVSS 3.1 score of 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) accurately captures the standalone flaw: local, low-complexity, low-privilege read of a credential file with no direct integrity or availability impact. However, this score materially understates real-world risk when the advisory's documented chaining context is factored in. The three-step chain - this CVE exposing the hash, GHSA-45h7-499j-7ww3 accepting the raw hash as an API signing key, and CVE-2025-60787 providing OS command injection under admin auth - allows any local shell user to achieve root-level code execution with no exploitability uplift beyond reading a file. Publicly available proof-of-concept code lowers attacker barrier significantly. No EPSS data was provided in the source intelligence, and this CVE is absent from CISA KEV, indicating no confirmed widespread active exploitation at time of analysis. The combination of a weak hash algorithm (SHA1), a working PoC, and a documented privilege escalation chain makes this higher operational priority than the base CVSS score alone suggests for multi-user Linux deployments running motionEye.

Exploit ScenarioDerived

A low-privilege local user on a motionEye host runs 'cat /etc/motioneye/motion.conf' and extracts the @admin_password SHA1 hash with no special tools or privileges. The attacker then uses the raw hash directly as the API signing key (exploiting GHSA-45h7-499j-7ww3) to forge authenticated admin API requests, then sends a crafted image_file_name value via the admin API to trigger OS command injection (CVE-2025-60787), executing arbitrary commands as the Motion daemon - typically running as root. Proof-of-concept code for the file read step is published in the GitHub Security Advisory GHSA-rhgp-6wq6-9j67.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 2.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 22, 2026

World-readable configuration file permissions in motionEye <= 0.43.1b4 expose the admin SHA1 password hash to any local user account on the host. The flaw affects both supported installation methods (manual and motioneye_init), making it a software default rather than a deployment error. Proof-of-concept code is publicly available in the vendor's GitHub Security Advisory; when chained with GHSA-45h7-499j-7ww3 (hash-as-signing-key authentication bypass) and CVE-2025-60787 (OS command injection requiring admin auth), a local unprivileged attacker can escalate to the Motion daemon user - often root - without any elevated privileges. No active exploitation is confirmed in CISA KEV at time of analysis.

RemediationAI

Upgrade to motionEye 0.44.0b1 or later via pip (pip install 'motioneye>=0.44.0b1'), which is the only durable fix - the patch explicitly sets 0600 permissions on motion.conf and camera-*.conf at write time. If an immediate upgrade is not feasible, apply a temporary permission fix with 'chmod 600 /etc/motioneye/motion.conf /etc/motioneye/camera-*.conf' and ensure ownership matches the service account ('chown motion:motion /etc/motioneye/motion.conf'). Caution: motionEye rewrites its configuration on password changes and camera updates, which will silently restore 0644 permissions until the software is patched - manual chmod must be reapplied after any such event, making this workaround operationally fragile. Following remediation, rotate the admin password, as any hash that was previously exposed should be treated as compromised. Vendor advisory: https://github.com/motioneye-project/motioneye/security/advisories/GHSA-rhgp-6wq6-9j67.

Affected VersionsENISA

motioneye < 0.44.0

Affected Packages

pypi motioneye fix: 0.44.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

motionEye is a Python-based web front-end for the Motion daemon, distributed via pip (pkg:pip/motioneye). During initialization and whenever the admin password is set via the web UI, motionEye writes /etc/motioneye/motion.conf and per-camera camera-*.conf files without explicitly applying restrictive permissions, defaulting to 0644 (world-readable). CWE-732 (Incorrect Permission Assignment for Critical Resource) identifies the root cause: the software neglects to call chmod or pass a restrictive mode when creating sensitive credential files. The admin password is stored as a bare SHA1 digest in the @admin_password field - SHA1 is computationally inexpensive to crack via rainbow tables or GPU-accelerated dictionary attacks, compounding the exposure. Both the manual installation path (pip install + mkdir) and the automated motioneye_init path reproduce the same 644 permissions, confirmed on a fresh motionEye v0.43.1b4 installation.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/motioneye-project/motioneye) PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 5.5 MEDIUM

Local access required (AV:L), any unprivileged account sufficient (PR:L), no interaction or special configuration needed; only confidentiality is impacted by the file read itself.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/motioneye-project/motioneye).

CVSS VectorVendor: https://github.com/motioneye-project/motioneye

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

Security Advisory: World-Readable Configuration File Exposes Admin Password Hash in motionEye

Summary

motionEye v0.43.1 and prior versions create the configuration file /etc/motioneye/motion.conf with 644 permissions (-rw-r--r--), making it readable by any local user on the system. This file contains sensitive data including the admin password hash, which can be leveraged by other vulnerabilities to escalate privileges.

Affected Versions

  • motionEye <= 0.43.1b4
  • Fixed in motionEye 0.44.0b1 (applies 0600 mode to motion.conf and camera-*.conf files)

Vulnerability Details

World-Readable Configuration File (CWE-732)

When motionEye writes its configuration, the file /etc/motioneye/motion.conf is created with 644 permissions regardless of the installation method. This file contains the admin password hash in the @admin_password field:

# @admin_username admin
# @admin_password c18006fc138809314751cd1991f1e0b820fabd37

Any local user can read this hash without elevated privileges:

bash
$ sudo -u testuser cat /etc/motioneye/motion.conf
# @admin_password c18006fc138809314751cd1991f1e0b820fabd37

Additionally, per-camera configuration files (camera-*.conf) are also created with the same 644 permissions, potentially exposing camera-specific credentials and settings.

Impact

The exposed admin password hash enables several attack paths:

  • Offline password cracking: The SHA1 hash can be cracked to recover the plaintext admin password
  • Authentication bypass: When combined with the signature authentication weakness (see GHSA-45h7-499j-7ww3), the hash can be used directly to forge authenticated admin API requests
  • Full system compromise: When further chained with CVE-2025-60787 (OS command injection), a local unprivileged user can escalate to the Motion daemon user (often root)

Proof of Concept

The following demonstrates that an unprivileged user can read the admin password hash from the config file and verify it matches the admin's password:

bash
# Verify the file permissions
$ ls -la /etc/motioneye/motion.conf
-rw-r--r-- 1 motion motion 255 Mar 11 15:42 /etc/motioneye/motion.conf
# Read the hash as an unprivileged user
$ sudo -u testuser cat /etc/motioneye/motion.conf | grep admin_password
# @admin_password c18006fc138809314751cd1991f1e0b820fabd37
# Verify the hash matches the admin password (SHA1)
$ sudo -u testuser python3 -c "import hashlib; print(hashlib.sha1(b'testpassword123').hexdigest())"
c18006fc138809314751cd1991f1e0b820fabd37

Verified Output

The following output was captured on a fresh motionEye v0.43.1b4 installation (official motioneye_init method, admin password set to testpassword123):

$ ls -la /etc/motioneye/motion.conf
-rw-r--r-- 1 motion motion 255 Mar 11 15:42 /etc/motioneye/motion.conf

$ sudo -u testuser cat /etc/motioneye/motion.conf | grep admin_password
# @admin_password c18006fc138809314751cd1991f1e0b820fabd37

$ sudo -u testuser python3 -c "import hashlib; print(hashlib.sha1(b'testpassword123').hexdigest())"
c18006fc138809314751cd1991f1e0b820fabd37

The hash extracted by the unprivileged testuser matches the SHA1 of the admin password, confirming full credential exposure.

Reproduction Steps

This vulnerability has been tested and confirmed with both installation methods described in the official motionEye documentation.

Method 1: Manual Installation

  1. Install motionEye on a Linux system:
bash
   sudo pip install motioneye
   mkdir -p /etc/motioneye /var/log/motioneye /var/lib/motioneye /run/motioneye
   cp /usr/local/lib/python3.12/dist-packages/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf
   sudo meyectl startserver -c /etc/motioneye/motioneye.conf
  1. Set an admin password via the web UI at http://localhost:8765
  2. Verify the config file is world-readable:
bash
   ls -la /etc/motioneye/motion.conf
# -rw-r--r-- 1 root root 255 ... /etc/motioneye/motion.conf
  1. As an unprivileged user, read the hash:
bash
   sudo -u testuser cat /etc/motioneye/motion.conf
# @admin_password c18006fc138809314751cd1991f1e0b820fabd37

Method 2: Official motioneye_init Installation

  1. Install motionEye using the official init script:
bash
   sudo pip install motioneye
   sudo motioneye_init
  1. The motioneye_init script automatically creates the required directories, installs the systemd service, and starts motionEye. Set an admin password via the web UI at http://localhost:8765
  2. Verify the config file is still world-readable:
bash
   ls -la /etc/motioneye/motion.conf
# -rw-r--r-- 1 motion motion 255 ... /etc/motioneye/motion.conf

Note that while the ownership changes to motion:motion (instead of root:root in the manual method), the permissions remain 644, meaning any local user can still read the file.

  1. Confirm as an unprivileged user:
bash
   sudo -u testuser cat /etc/motioneye/motion.conf
# @admin_password c18006fc138809314751cd1991f1e0b820fabd37

Both installation methods produce the same vulnerable state, confirming this is the default behavior of the software and not a user misconfiguration.

Related Vulnerabilities

  • GHSA-45h7-499j-7ww3: Password hash accepted as API signing key (CWE-836), which allows the hash exposed by this vulnerability to be used for forging authenticated admin API requests
  • CVE-2025-60787: OS command injection via image_file_name, which requires admin authentication. When chained with both this vulnerability and GHSA-45h7-499j-7ww3, enables local privilege escalation to root

Suggested Remediation

  1. Fix file permissions: Create motion.conf and camera-*.conf with 600 permissions (-rw-------), readable only by the motionEye service user (addressed in motionEye 0.44.0b1)

Timeline

  • 2026-03-11: Vulnerability discovered during security research
  • 2026-03-11: Vendor notified via GitHub Security Advisory
  • 2026-03-12: Vendor acknowledged, confirmed fix in motionEye 0.44.0b1

Threat Intelligence Overview

EPSS Score
2.9%
Top 15% exploitable
Prevalence
Low
niche home/hobbyist surveillance camera software
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 2.9%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: +3
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy