CVE-2026-31978 Details
Description
motionEye (mEye) is an online interface for motion software, which is a video surveillance program with motion detection. Versions prior to 0.44.0 are vulnerable to path traversal in the picture and movie API endpoints, suhc as /picture/{id}/preview/{filename}. Neither the API handlers, nor the mediafiles.py functions such as get_media_preview() check for .. sequences in the filename parameter, except for get_media_content(). This allows an authenticated user with normal (non-admin) privileges to read arbitrary files from the filesystem as the motionEye process user, such as: /etc/passwd, /etc/shadow, motionEye config files containing password hashes and plaintext passwords, SSH keys, and other cameras' surveillance footage. This issue has been fixed in version 0.44.0.
A path traversal vulnerability has been identified in motionEye versions prior to 0.44.0. This issue affects the picture and movie API endpoints, such as '/picture/{id}/preview/{filename}'. The vulnerability arises because the API handlers and certain functions in 'mediafiles.py', including 'get_media_preview()', do not properly validate the filename parameter for traversal sequences, except for 'get_media_content()'. As a result, an authenticated user with normal privileges can read arbitrary files from the filesystem, including sensitive information like password hashes, plaintext passwords, SSH keys, and surveillance footage from other cameras. The vulnerability has been patched in motionEye version 0.44.0.
Users are advised to update to motionEye version 0.44.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 24, 2026CISA-ADP
Assessed Jun 25, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g9fx-5r4h-pcw3 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/motioneye-project/motioneye/releases/tag/0.44.0 | [email protected] | Release NotesVendor |
| https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g9fx-5r4h-pcw3 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-284 | Improper Access Control | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| motionEye | < 0.44.0 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jun 25, 2026 | CVE Modified | CISA-ADP |
| Jun 24, 2026 | New CVE Received | [email protected] |
Volerion