{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-31978","id":"CVE-2026-31978","title":"motionEye: Arbitrary File Read via Path Traversal in Picture/Movie Preview Endpoint","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, ex","descriptionLong":"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.","published":"2026-06-24T20:28:24.286Z","updated":"2026-10-28T02:30:42.809420595Z","reserved":"2026-03-10T15:40:10.487Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["motioneye-project motioneye"],"affectedProducts":[{"vendor":"motioneye-project","product":"motioneye","defaultStatus":null,"versions":[{"version":"< 0.44.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"motioneye","purl":"pkg:pypi/motioneye","ranges":["<0.44.0"],"fixed":["0.44.0"],"advisory":"GHSA-g9fx-5r4h-pcw3"}],"cwes":["CWE-22","CWE-284"],"aliases":["GHSA-g9fx-5r4h-pcw3","PYSEC-2026-2664"],"references":[{"url":"https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g9fx-5r4h-pcw3","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/motioneye-project/motioneye/releases/tag/0.44.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31978.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31978","tags":["advisory"]},{"url":"https://github.com/motioneye-project/motioneye","tags":["package"]},{"url":"https://pypi.org/project/motioneye","tags":["package"]},{"url":"https://github.com/advisories/GHSA-g9fx-5r4h-pcw3","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00336,"epssPercentile":0.27509,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-31978","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31978","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-31978","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-g9fx-5r4h-pcw3","ok":true,"note":"GHSA-g9fx-5r4h-pcw3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-31978","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}