# CVE-2026-31978: motionEye: Arbitrary File Read via Path Traversal in Picture/Movie Preview Endpoint

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-22T17:10:38.000Z
- Modified: 2026-10-25T22:10:00.150Z
- Also known as: GHSA-g9fx-5r4h-pcw3, PYSEC-2026-2664
- Weaknesses: CWE-22, CWE-284
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- motioneye-project motioneye: < 0.44.0
- motioneye (PyPI): before 0.44.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g9fx-5r4h-pcw3> (exploit, web)
- <https://github.com/motioneye-project/motioneye/releases/tag/0.44.0>
- <https://github.com/motioneye-project/motioneye> (package)
- <https://pypi.org/project/motioneye> (package)
- <https://github.com/advisories/GHSA-g9fx-5r4h-pcw3> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31978> (advisory)

## Sources

- CVE List: [CVE-2026-31978](https://www.cve.org/CVERecord?id=CVE-2026-31978), CVE Terms of Use, modified 2026-06-25
- GitHub Advisory Database: [GHSA-g9fx-5r4h-pcw3](https://github.com/advisories/GHSA-g9fx-5r4h-pcw3), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-31978](https://nvd.nist.gov/vuln/detail/CVE-2026-31978), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-2664](https://osv.dev/vulnerability/PYSEC-2026-2664), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-31978 · Whole record: https://cve.day/CVE-2026-31978.json · Rebuilt by cve.day 2026-11-25T22:59:25.734Z
