Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. motioneye
  4. ›
  5. CVE-2026-31978

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

June 22, 2026

motionEye v0.43.1 (latest stable) is vulnerable to path traversal in the picture and movie API endpoints, like /picture/{id}/preview/{filename}. Neither the API handlers, nor the mediafiles.py functions like get_media_preview() check for .. sequences in the filename parameter, except get_media_content() which does. This allows an authenticated user with normal (non-admin) privileges to read arbitrary files from the filesystem as the motionEye process user.

References

  • github.com/advisories/GHSA-g9fx-5r4h-pcw3
  • github.com/motioneye-project/motioneye/security/advisories/GHSA-g9fx-5r4h-pcw3
  • nvd.nist.gov/vuln/detail/CVE-2026-31978

Code Behaviors & Features

Detect and mitigate CVE-2026-31978 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.44.0

Fixed versions

  • 0.44.0

Solution

Upgrade to version 0.44.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-284: Improper Access Control

Source file

pypi/motioneye/CVE-2026-31978.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:16 +0000.