Quick answers
- Is CVE-2026-31978 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-31978 being exploited in the wild.
- How severe is CVE-2026-31978?
- Medium severity, with a CVSS score of 6.5, published 24 June 2026.
- Which products and versions are affected?
- motioneye (PyPI) < 0.44.0, ECOSYSTEM:introduced=0,fixed=0.44.0.
- Is there a fix for CVE-2026-31978?
- Yes. motioneye (PyPI): upgrade to 0.44.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-31978 attacked?
- It is attacked over the network, in a network appliance.
- Am I affected by CVE-2026-31978?
- Check whether you run motioneye (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- motioneye (PyPI): upgrade to 0.44.0 or later
pip install "motioneye>=0.44.0"
Technical details
A path traversal vulnerability exists in the picture and movie API endpoints (e.g., /picture/{id}/preview/{filename}) of motionEye. The root cause is a failure to sanitize the 'filename' parameter for '..' sequences within the mediafiles.py functions, specifically get_media_preview() and del_media_content(). While other functions like get_media_content() implemented checks, these specific handlers remained vulnerable. An authenticated attacker with normal (non-admin) privileges can provide URL-encoded traversal sequences (%2F) to escape the intended media directory. This allows for the retrieval of sensitive system files such as /etc/passwd, /etc/shadow, and motionEye configuration files containing credentials. The issue is resolved in version 0.44.0.
Affected products
- motioneye-project motionEye < 0.44.0
Identifiers
- CVE-2026-31978
- GHSA-g9fx-5r4h-pcw3
- PYSEC-2026-2664
Timeline
- 2026-06-20: patched: Version 0.44.0 released
- 2026-06-20: advisory: GitHub Security Advisory GHSA-g9fx-5r4h-pcw3 published
- 2026-06-24: disclosed: CVE-2026-31978 published to NVD