CVE-2026-31978: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in motioneye-project motioneye
motionEye versions prior to 0.44.0 contain a path traversal vulnerability in certain API endpoints that handle picture and movie files. This flaw allows authenticated users with normal privileges to read arbitrary files on the filesystem accessible to the motionEye process user. The vulnerability arises because the filename parameter is not properly sanitized to prevent directory traversal sequences such as '..'. 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 API endpoints like /picture/{id}/preview/{filename}, allowing authenticated non-admin users to read arbitrary files on the server. The vulnerability exists because functions such as get_media_preview() fail to check for directory traversal sequences, enabling access to sensitive files including system files and other users' surveillance footage. The issue was resolved in version 0.44.0.
Potential Impact
An authenticated user with normal privileges can exploit this vulnerability to read arbitrary files on the server filesystem as the motionEye process user. This can lead to disclosure of sensitive information such as system password files (/etc/passwd, /etc/shadow), motionEye configuration files containing password hashes and plaintext passwords, SSH keys, and surveillance footage from other cameras. There is no impact on integrity or availability reported.
Mitigation Recommendations
Upgrade motionEye to version 0.44.0 or later, where this path traversal vulnerability has been fixed. Until the upgrade is applied, restrict access to the affected API endpoints to trusted users only. Patch status is confirmed fixed in 0.44.0.
CVE-2026-31978: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in motioneye-project motioneye
Description
motionEye versions prior to 0.44.0 contain a path traversal vulnerability in certain API endpoints that handle picture and movie files. This flaw allows authenticated users with normal privileges to read arbitrary files on the filesystem accessible to the motionEye process user. The vulnerability arises because the filename parameter is not properly sanitized to prevent directory traversal sequences such as '..'. 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 API endpoints like /picture/{id}/preview/{filename}, allowing authenticated non-admin users to read arbitrary files on the server. The vulnerability exists because functions such as get_media_preview() fail to check for directory traversal sequences, enabling access to sensitive files including system files and other users' surveillance footage. The issue was resolved in version 0.44.0.
Potential Impact
An authenticated user with normal privileges can exploit this vulnerability to read arbitrary files on the server filesystem as the motionEye process user. This can lead to disclosure of sensitive information such as system password files (/etc/passwd, /etc/shadow), motionEye configuration files containing password hashes and plaintext passwords, SSH keys, and surveillance footage from other cameras. There is no impact on integrity or availability reported.
Mitigation Recommendations
Upgrade motionEye to version 0.44.0 or later, where this path traversal vulnerability has been fixed. Until the upgrade is applied, restrict access to the affected API endpoints to trusted users only. Patch status is confirmed fixed in 0.44.0.
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: 06/24/2026, 21:47:15 UTC
Last updated: 06/24/2026, 22:47:08 UTC
Views: 7
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.