{"id":"CVE-2026-55488","aliases":["CVE-2026-55488","GHSA-rw9q-97r9-8gvh","PYSEC-2026-2667"],"related":[],"kind":"vulnerability","state":"published","title":"motionEye's Absolute Path Traversal in Media File Handlers Allows Arbitrary File Read","summary":"motionEye (mEye) is an online interface for a piece of software called \"motion,\" which is a video surveillance program with motion detection. Versions prior to 0.44.0 contain an absolute path traversal vulnerability in multiple media file handlers that allows an attacker to read arbitrary files from the filesystem. The affected handlers accept a user-controlled filename parameter and construct filesystem paths using `os.path.join()`. When an absolute path is supplied, Python discards the configured media directory and returns the attacker-supplied path directly. The application then bypasses Tornado's built-in path validation by overriding the relevant safety checks. As a result, an attacker can access files outside of the configured camera media directory, subject to the permissions of the motionEye process. Version 0.44.0 fixes the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"motionEye (mEye) is an online interface for a piece of software called \"motion,\" which is a video surveillance program with motion detection. Versions prior to 0.44.0 contain an absolute path traversal vulnerability in multiple media file handlers that allows an attacker to read arbitrary files from the filesystem. The affected handlers accept a user-controlled filename parameter and construct filesystem paths using `os.path.join()`. When an absolute path is supplied, Python discards the configured media directory and returns the attacker-supplied path directly. The application then bypasses Tornado's built-in path validation by overriding the relevant safety checks. As a result, an attacker can access files outside of the configured camera media directory, subject to the permissions of the motionEye process. Version 0.44.0 fixes the issue.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nmEye contains an absolute path traversal vulnerability in multiple media file handlers that allows an attacker to read arbitrary files from the filesystem.\n\nThe affected handlers accept a user-controlled filename parameter and construct filesystem paths using `os.path.join()`. When an absolute path is supplied, Python discards the configured media directory and returns the attacker-supplied path directly. The application then bypasses Tornado's built-in path validation by overriding the relevant safety checks.\n\nAs a result, an attacker can access files outside of the configured camera media directory, subject to the permissions of the motionEye process.\n\n### Details\n\nThe issue exists in the media playback and download functionality.\n\nThe filename parameter is passed to `mediafiles.get_media_path()`:\n\n```python\ndef get_media_path(camera_config, path, media_type):\n    target_dir = camera_config.get('target_dir')\n    full_path = os.path.join(target_dir, path)\n    return full_path\n```\n\nWhen path is an absolute path (e.g. `/etc/motioneye/motion.conf`), Python's `os.path.join()` discards `target_dir` entirely and returns the absolute path as-is. This would normally be caught by Tornado's StaticFileHandler path validation, but MoviePlaybackHandler explicitly overrides both safety checks (`movie_playback.py` lines 111-115):\n\n```\ndef get_absolute_path(self, root, path):\n    return path\n\ndef validate_absolute_path(self, root, absolute_path):\n    return absolute_path\n```\nThis allows reading any file on the filesystem that the motionEye process can access.\n\nThe same path traversal exists in the movie download, picture download, and picture preview handlers:\n\n- GET /movie/<camera_id>/download/<filename>\n- GET /picture/<camera_id>/download/<filename>\n- GET /picture/<camera_id>/preview/<filename>\n\n# PoC\n\n```\nGET /movie/1/playback//etc/motioneye/motion.conf HTTP/1.1\nHost: target:8765\n```\n\n# Fix\n\nDo not allow absolute paths supplied by user input.\n\nValidate that the fully resolved canonical path remains within the configured camera media directory before serving a file.\n\nAdditionally, Tornado’s built-in path validation should not be bypassed unless equivalent validation is performed by motionEye.","format":"markdown","source":"ghsa"},{"lang":"es","text":"motionEye (mEye) es una interfaz en línea para un software llamado ’motion’, que es un programa de videovigilancia con detección de movimiento. Las versiones anteriores a la 0.44.0 contienen una vulnerabilidad de salto de ruta absoluto en múltiples manejadores de archivos multimedia que permite a un atacante leer archivos arbitrarios del sistema de archivos. Los manejadores afectados aceptan un parámetro de nombre de archivo controlado por el usuario y construyen rutas del sistema de archivos usando “os.path.join()”. Cuando se proporciona una ruta absoluta, Python descarta el directorio de medios configurado y devuelve directamente la ruta proporcionada por el atacante. La aplicación luego omite la validación de ruta incorporada de Tornado al anular las comprobaciones de seguridad relevantes. Como resultado, un atacante puede acceder a archivos fuera del directorio de medios de la cámara configurado, sujeto a los permisos del proceso motionEye. La versión 0.44.0 corrige el problema.","source":"nvd"}],"published":"2026-06-23T18:32:46.000Z","modified":"2026-10-25T22:10:00.150Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 0.44.0","status":"affected"}],"vendor":"motioneye-project","product":"motioneye","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.44.0"}],"ecosystem":"PyPI","package":"motioneye","purl":"pkg:pypi/motioneye","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.44.0"}],"ecosystem":"PyPI","package":"motioneye","purl":"pkg:pypi/motioneye","source":"pysec"}],"references":[{"url":"https://github.com/motioneye-project/motioneye/security/advisories/GHSA-rw9q-97r9-8gvh","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/motioneye-project/motioneye","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/motioneye","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-rw9q-97r9-8gvh","tags":["advisory"],"sources":["pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55488","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-06-24T16:03:33.437Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-55488","url":"https://www.cve.org/CVERecord?id=CVE-2026-55488","licence":"CVE Terms of Use","modified":"2026-06-24T17:29:03.016Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rw9q-97r9-8gvh","url":"https://github.com/advisories/GHSA-rw9q-97r9-8gvh","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:00.858Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-55488","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55488","licence":"Public domain","modified":"2026-10-25T22:10:00.150Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2667","url":"https://osv.dev/vulnerability/PYSEC-2026-2667","licence":"CC-BY-4.0","modified":"2026-07-13T16:32:39.624Z"}],"updatedAt":"2026-11-25T22:59:25.621Z","epss":{"score":0.00605,"percentile":0.50361,"date":"2026-12-02T12:00:21.000Z"}}