CVE-2026-31978
motionEye: Arbitrary File Read via Path Traversal in Picture/Movie Preview Endpoint
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.
INFO
Published Date :
June 24, 2026, 9:16 p.m.
Last Modified :
Oct. 25, 2026, 10:10 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update motionEye to version 0.44.0.
- Apply security patches promptly.
Public PoC/Exploit Available at Github
CVE-2026-31978 has a 1 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-31978.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-31978 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-31978
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Python Go
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-31978 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-31978 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 25, 2026
Action Type Old Value New Value Added Translation Title: motioneye de motioneye-project, Description: motionEye (mEye) es una interfaz en línea para el software motion, que es un programa de videovigilancia con detección de movimiento. Las versiones anteriores a la 0.44.0 son vulnerables a salto de ruta en los endpoints de la API de imágenes y videos, como /picture/{id}/preview/{filename}. Ni los manejadores de la API, ni las funciones de mediafiles.py como get_media_preview() verifican secuencias .. en el parámetro filename, excepto get_media_content(). Esto permite a un usuario autenticado con privilegios normales (no de administrador) leer archivos arbitrarios del sistema de archivos como el usuario del proceso motionEye, tales como: /etc/p4ssd, /etc/sha4dow, archivos de configuración de motionEye que contienen hashes de contraseñas y contraseñas en texto plano, claves SSH y grabaciones de vigilancia de otras cámaras. Este problema ha sido solucionado en la versión 0.44.0. -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 25, 2026
Action Type Old Value New Value Added Reference https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g9fx-5r4h-pcw3 Added SSVC {'id': 'CVE-2026-31978', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-06-25T23:01:33.345249Z'} -
New CVE Received by [email protected]
Jun. 24, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'motioneye-project', 'product': 'motioneye', 'versions': [{'status': 'affected', 'version': '< 0.44.0'}]}] Added 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. Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N Added CWE CWE-22 Added CWE CWE-284 Added Reference https://github.com/motioneye-project/motioneye/releases/tag/0.44.0 Added Reference https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g9fx-5r4h-pcw3