CVE-2026-31978
MEDIUM 6.5CVSS 3.1motionEye has an Arbitrary File Read via Path Traversal in Picture/Movie Preview Endpoint
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
- 24 Jun 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-22CWE-284
- Also known as
- GHSA-g9fx-5r4h-pcw3PYSEC-2026-2664
- Sources
- NVDJSONOSV GHSA-g9fx-5r4h-pcw3JSONOSV PYSEC-2026-2664JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | motioneye | < 0.44.0 | 0.44.0 |
References
- https://github.com/motioneye-project/motioneye/releases/tag/0.44.0
- https://github.com/motioneye-project/motioneye/security/advisories/GHSA-g9fx-5r4h-pcw3 · WEB
- 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
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 24 Jun 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Jun 2026)