{"cve":"CVE-2026-31978","nvd":{"published":"2026-06-24T21:16:53.043","modified":"2026-10-25T22:10:00.150","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-22","CWE-284"],"references":["https://github.com/motioneye-project/motioneye/releases/tag/0.44.0","https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g9fx-5r4h-pcw3","https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g9fx-5r4h-pcw3"],"products":[],"source":"nvd","synced_at":"2026-10-25T23:44:33.281319194+00:00"},"epss":{"cve":"CVE-2026-31978","score":0.00418,"percentile":0.35811,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-g9fx-5r4h-pcw3","url":"https://osv.dev/vulnerability/GHSA-g9fx-5r4h-pcw3","summary":"motionEye has an Arbitrary File Read via Path Traversal in Picture/Movie Preview Endpoint","modified":"2026-07-13T16:43:27.298681649Z","packages":[{"ecosystem":"PyPI","name":"motioneye","purl":"pkg:pypi/motioneye","ranges":["<0.44.0"],"fixed":["0.44.0"]}]},{"id":"PYSEC-2026-2664","url":"https://osv.dev/vulnerability/PYSEC-2026-2664","summary":"motionEye has an Arbitrary File Read via Path Traversal in Picture/Movie Preview Endpoint","modified":"2026-07-13T16:32:39.652815105Z","packages":[{"ecosystem":"PyPI","name":"motioneye","purl":"pkg:pypi/motioneye","ranges":["<0.44.0"],"fixed":["0.44.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}