CVE-2026-31978

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

No configuration.

History

25 Jun 2026, 23:17

Type Values Removed Values Added
References () https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g9fx-5r4h-pcw3 - () https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g9fx-5r4h-pcw3 -

24 Jun 2026, 21:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-06-24 21:16

Updated : 2026-06-25 23:17


NVD link : CVE-2026-31978

Mitre link : CVE-2026-31978

CVE.ORG link : CVE-2026-31978


JSON object : View

Products Affected

No product.

CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CWE-284

Improper Access Control