Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
A single unauthenticated HTTP request reads arbitrary files (AV:N/AC:L/PR:N/UI:N) for high confidentiality loss with no integrity or availability impact; PR:N follows the credential-less PoC though auth-enabled deployments would be PR:L.
Primary rating from Vendor (https://github.com/motioneye-project/motioneye).
CVSS VectorVendor: https://github.com/motioneye-project/motioneye
Lifecycle Timeline
6DescriptionCVE.org
Summary
mEye contains an absolute path traversal vulnerability in multiple media file handlers that allows an attacker to read arbitrary files from the filesystem.
The affected handlers accept a user-controlled filename parameter and construct filesystem paths using os.path.join(). When an absolute path is supplied, Python discards the configured media directory and returns the attacker-supplied path directly. The application then bypasses Tornado's built-in path validation by overriding the relevant safety checks.
As a result, an attacker can access files outside of the configured camera media directory, subject to the permissions of the motionEye process.
Details
The issue exists in the media playback and download functionality.
The filename parameter is passed to mediafiles.get_media_path():
def get_media_path(camera_config, path, media_type):
target_dir = camera_config.get('target_dir')
full_path = os.path.join(target_dir, path)
return full_pathWhen path is an absolute path (e.g. /etc/motioneye/motion.conf), Python's os.path.join() discards target_dir entirely and returns the absolute path as-is. This would normally be caught by Tornado's StaticFileHandler path validation, but MoviePlaybackHandler explicitly overrides both safety checks (movie_playback.py lines 111-115):
def get_absolute_path(self, root, path):
return path
def validate_absolute_path(self, root, absolute_path):
return absolute_pathThis allows reading any file on the filesystem that the motionEye process can access.
The same path traversal exists in the movie download, picture download, and picture preview handlers:
- GET /movie/<camera_id>/download/<filename>
- GET /picture/<camera_id>/download/<filename>
- GET /picture/<camera_id>/preview/<filename>
PoC
GET /movie/1/playback//etc/motioneye/motion.conf HTTP/1.1
Host: target:8765Fix
Do not allow absolute paths supplied by user input.
Validate that the fully resolved canonical path remains within the configured camera media directory before serving a file.
Additionally, Tornado’s built-in path validation should not be bypassed unless equivalent validation is performed by motionEye.
AnalysisAI
Arbitrary file read in motionEye versions before 0.44.0 lets remote attackers retrieve any file readable by the motionEye process by supplying an absolute path to the media playback, download, and preview handlers. The flaw stems from os.path.join() discarding the configured media directory when given an absolute path, compounded by MoviePlaybackHandler deliberately overriding Tornado's StaticFileHandler path-safety checks. A proof-of-concept exists and the CVSS 4.0 exploit-maturity is rated Proof-of-Concept, but there is no public evidence of active exploitation.
Technical ContextAI
motionEye is a Python web frontend (built on the Tornado web framework) for the 'motion' surveillance daemon, distributed via PyPI as the 'motioneye' package (pkg:pip/motioneye). The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory / path traversal), specifically the absolute-path-traversal variant: mediafiles.get_media_path() builds a path with os.path.join(target_dir, path), and Python's os.path.join() semantics cause an absolute 'path' argument to override and discard 'target_dir' entirely. Tornado's StaticFileHandler normally rejects such paths in validate_absolute_path()/get_absolute_path(), but motionEye's MoviePlaybackHandler overrides both methods to return the user-supplied path unchecked (movie_playback.py lines 111-115), defeating the framework's built-in containment.
RemediationAI
Vendor-released patch: upgrade motionEye to 0.44.0 or later (pip install --upgrade motioneye), which is the fixed release per the GHSA advisory at https://github.com/motioneye-project/motioneye/security/advisories/GHSA-rw9q-97r9-8gvh. If you cannot upgrade immediately, place the motionEye web interface (default TCP 8765) behind a reverse proxy or firewall so only trusted, authenticated clients can reach the /movie/ and /picture/ endpoints, and ensure motionEye's admin and normal-user passwords are set so the handlers are not anonymously reachable - note this does not remove the traversal for authenticated users. As stronger containment, run the motionEye process under a dedicated low-privilege account whose filesystem access is confined to its media/target directories so a successful traversal cannot read sensitive files such as /etc/motioneye/motion.conf, accepting that overly tight permissions may break legitimate media playback.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-38804
GHSA-rw9q-97r9-8gvh