Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 80%

CVE-2026-31978: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in motioneye-project motioneye

0
Medium
VulnerabilityCVE-2026-31978cvecve-2026-31978cwe-22cwe-284
Published: 06/24/2026 (06/24/2026, 20:28:24 UTC)
Source: CVE Database V5
Vendor/Project: motioneye-project
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected software

GitHub Actionsmore threats →ai
motioneye-project/motioneye
pkg:github/motioneye-project/motioneye
Affected versions
<0.44.0

Run 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

AILast updated: 07/01/2026, 22:36:44 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses