Vulnerability · Published Jun 24, 2026 · Assigned by GitHub_M

CVE-2026-31978motionEye: Arbitrary File Read via Path Traversal in Picture/Movie Preview Endpoint

Medium 6.5

In plain English

A medium-severity path traversal in motioneye from motioneye-project. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 27% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.3%top 72.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPImotioneye0.44.0GHSA-g9fx-5r4h-pcw3
PyPImotioneye0.44.0PYSEC-2026-2664

Affected products (as reported)

VendorProductVersions
motioneye-project motioneye < 0.44.0

Weakness: CWE-22, CWE-284 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

References