CVE-2026-31978: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in motioneye-project motioneye
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.
AI Analysis
Technical Summary
CVE-2026-31978 is a path traversal vulnerability (CWE-22) in motionEye, an online interface for motion detection software. Versions before 0.44.0 do not properly validate the filename parameter in picture and movie API endpoints, allowing authenticated non-admin users to read arbitrary files on the server filesystem as the motionEye process user. The vulnerability exists because functions such as get_media_preview() do not check for '..' sequences in filenames, enabling directory traversal attacks. This can expose sensitive system files, configuration data, and other users' surveillance footage. The vulnerability was fixed in motionEye version 0.44.0.
Potential Impact
An authenticated user with normal privileges can read arbitrary files on the server running motionEye, potentially exposing sensitive system files (e.g., /etc/passwd, /etc/shadow), configuration files containing password hashes and plaintext passwords, SSH keys, and other users' surveillance footage. This compromises confidentiality but does not affect integrity or availability. The CVSS 3.1 base score is 6.5 (medium severity), reflecting network attack vector, low attack complexity, required privileges, no user interaction, and high confidentiality impact.
Mitigation Recommendations
Upgrade motionEye to version 0.44.0 or later, where this path traversal vulnerability has been fixed. No other mitigation is required as the fix addresses the root cause by properly validating filename parameters to prevent directory traversal.
CVE-2026-31978: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in motioneye-project motioneye
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.
CVSS v3.1
Score 6.5medium
Affected software
pkg:github/motioneye-project/motioneyeRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-31978 is a path traversal vulnerability (CWE-22) in motionEye, an online interface for motion detection software. Versions before 0.44.0 do not properly validate the filename parameter in picture and movie API endpoints, allowing authenticated non-admin users to read arbitrary files on the server filesystem as the motionEye process user. The vulnerability exists because functions such as get_media_preview() do not check for '..' sequences in filenames, enabling directory traversal attacks. This can expose sensitive system files, configuration data, and other users' surveillance footage. The vulnerability was fixed in motionEye version 0.44.0.
Potential Impact
An authenticated user with normal privileges can read arbitrary files on the server running motionEye, potentially exposing sensitive system files (e.g., /etc/passwd, /etc/shadow), configuration files containing password hashes and plaintext passwords, SSH keys, and other users' surveillance footage. This compromises confidentiality but does not affect integrity or availability. The CVSS 3.1 base score is 6.5 (medium severity), reflecting network attack vector, low attack complexity, required privileges, no user interaction, and high confidentiality impact.
Mitigation Recommendations
Upgrade motionEye to version 0.44.0 or later, where this path traversal vulnerability has been fixed. No other mitigation is required as the fix addresses the root cause by properly validating filename parameters to prevent directory traversal.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-10T15:40:10.487Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3c4ce14853345fc1df8cdd
Added to database: 06/24/2026, 21:32:17 UTC
Last enriched: 07/01/2026, 22:36:44 UTC
Last updated: 08/09/2026, 00:41:13 UTC
Views: 94
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.