{"id":"CVE-2026-31978","published":"2026-06-24T20:28:24Z","modified":"2026-06-25T23:02:04Z","title":"motionEye: Arbitrary File Read via Path Traversal in Picture/Movie Preview Endpoint","vendor":"motioneye-project","product":"motioneye","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00336,"percentile":0.27645,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g9fx-5r4h-pcw3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/motioneye-project/motioneye/releases/tag/0.44.0","tags":["x_refsource_MISC"]}],"priority":{"score":10.1,"factors":[{"name":"EPSS percentile","points":5.53},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"motioneye-project","affectedVersions":[{"vendor":"motioneye-project","product":"motioneye","versions":["< 0.44.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-25T23:01:33.345249Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"motioneye","vulnerableRanges":["<0.44.0"],"patched":["0.44.0"],"from":["GHSA-g9fx-5r4h-pcw3","PYSEC-2026-2664"],"provenance":"source"}],"summary":{"text":"Path traversal in motionEye, an online web interface for the motion video surveillance program, affects the picture and movie API endpoints (such as /picture/{id}/preview/{filename}), where the filename parameter is not checked for \"..\" sequences in the preview handlers. An attacker with a normal, non-admin authenticated account can reach these endpoints over the network without user interaction and read arbitrary files as the motionEye process user, including system files, configuration files holding password hashes and plaintext passwords, SSH keys, and other cameras' footage.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:59Z"},"euvd":{"id":"EUVD-2026-39078","exploited":false,"provenance":"source"}}