CVE-2026-31978CWE-22CWE-284

motionEye: Arbitrary File Read via Path Traversal in Picture/Movie Preview Endpoint

Medium · published June 24, 2026

CVSS v3.1
6.5
EPSS
0%
Percentile
35.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00418 · 35.0th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-284 · Improper Access Control
Published
2026-06-24T20:28Z
EPSS history
Timeline
  • 24 JUN 20:28Z
    motionEye: Arbitrary File Read via Path Traversal in Picture/Movie Preview Endpoint
    cvelistv5