{"id":"CVE-2026-31978","summary":"motionEye: Arbitrary File Read via Path Traversal in Picture/Movie Preview Endpoint","details":"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.","aliases":["GHSA-g9fx-5r4h-pcw3","PYSEC-2026-2664"],"modified":"2026-07-15T01:49:01.002568919Z","published":"2026-06-24T20:28:24.286Z","database_specific":{"cwe_ids":["CWE-22","CWE-284"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31978.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/motioneye-project/motioneye/releases/tag/0.44.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31978.json"},{"type":"ADVISORY","url":"https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g9fx-5r4h-pcw3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31978"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/motioneye-project/motioneye","events":[{"introduced":"0"},{"fixed":"505e250f09921056d2f355e33cbabb9bc2d2117f"}],"database_specific":{"source":["AFFECTED_FIELD","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"0.44.0"}]}}],"versions":["0.43.1","0.43.1b2","0.43.1b1","0.42.1","0.42","0.41","0.41rc1","0.40","0.40rc5","0.40rc4","0.40rc3","0.40rc2","0.40rc1","0.39.3","0.39.1","0.39","0.38","0.37","0.37rc1","0.36.1","0.36","0.35.2","0.35.1","0.35","0.35rc1","0.34.1","0.34","0.34rc1","0.31.4","0.31.3","0.31.2","0.31.1","0.31","0.30","0.30rc2","0.30rc1","0.29rc2","0.29rc1","0.28.3","0.28.2","0.28.1","0.28","0.27.2","0.27.1","0.27","0.26","0.25.2","0.25.1","0.25","0.24","0.23","0.22","0.21","0.20","0.19","0.18","0.17","0.16","0.15","0.14","0.13","0.12","0.11","0.10","0.9","0.8","0.7","0.6","0.5","0.4","0.3","0.2","0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31978.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"}]}