{"id":"CVE-2025-58180","aliases":["CVE-2025-58180","GHSA-49mj-x8jp-qvfc","PYSEC-2026-1712"],"related":[],"kind":"vulnerability","state":"published","title":"OctoPrint is Vulnerable to RCE Attacks via Unsanitized Filename in File Upload","summary":"OctoPrint provides a web interface for controlling consumer 3D printers. OctoPrint versions up until and including 1.11.2 contain a vulnerability that allows an authenticated attacker to upload a file under a specially crafted filename that will allow arbitrary command execution if said filename becomes included in a command defined in a system event handler and said event gets triggered. If no event handlers executing system commands with uploaded filenames as parameters have been configured, this vulnerability does not have an impact. The vulnerability is patched in version 1.11.3. As a workaround, OctoPrint administrators who have event handlers configured that include any kind of filename based placeholders should disable those by setting their `enabled` property to `False` or unchecking the \"Enabled\" checkbox in the GUI based Event Manager. Alternatively, OctoPrint administrators should set `feature.enforceReallyUniversalFilenames` to `true` in `config.yaml` and restart OctoPrint, then vet the existing uploads and make sure to delete any suspicious looking files. As always, OctoPrint administrators are advised to not expose OctoPrint on hostile networks like the public internet, and to vet who has access to their instance.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OctoPrint provides a web interface for controlling consumer 3D printers. OctoPrint versions up until and including 1.11.2 contain a vulnerability that allows an authenticated attacker to upload a file under a specially crafted filename that will allow arbitrary command execution if said filename becomes included in a command defined in a system event handler and said event gets triggered. If no event handlers executing system commands with uploaded filenames as parameters have been configured, this vulnerability does not have an impact. The vulnerability is patched in version 1.11.3. As a workaround, OctoPrint administrators who have event handlers configured that include any kind of filename based placeholders should disable those by setting their `enabled` property to `False` or unchecking the \"Enabled\" checkbox in the GUI based Event Manager. Alternatively, OctoPrint administrators should set `feature.enforceReallyUniversalFilenames` to `true` in `config.yaml` and restart OctoPrint, then vet the existing uploads and make sure to delete any suspicious looking files. As always, OctoPrint administrators are advised to not expose OctoPrint on hostile networks like the public internet, and to vet who has access to their instance.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nOctoPrint versions up until and including 1.11.2 contain a vulnerability that allows an **authenticated** attacker to upload a file under a specially crafted filename that will allow arbitrary command execution if said filename becomes included in a command defined in a system event handler and said event gets triggered.\n\nIf no event handlers executing system commands with uploaded filenames as parameters have been configured, this vulnerability does not have an impact.\n\n### Patches\n\nThe vulnerability will be patched in version 1.11.3.\n\n### Workaround\n\nUntil the patch has been applied, OctoPrint administrators who have event handlers configured that include any kind of filename based placeholders (i.e. `{__filename}`, `{__filepath}`, `{filename}`, `{path}`, etc -- refer to [the events documentation](https://docs.octoprint.org/en/master/events/index.html#placeholders) for a full list) should disable those by setting their `enabled` property to `False` or unchecking the \"Enabled\" checkbox in the GUI based Event Manager.\n\nAlternatively, OctoPrint administrators should set `feature.enforceReallyUniversalFilenames` to `true` in `config.yaml` and restart OctoPrint, then vet the existing uploads and make sure to delete any suspicious looking files (e.g. those that contain a `;` in their name followed by a command).\n\nAs always, OctoPrint administrators are advised to not expose OctoPrint on hostile networks like the public internet, and to vet who has access to their instance.\n\n### Credits\n\nThis vulnerability was discovered and responsibly disclosed to OctoPrint by @prabhatverma47.","format":"markdown","source":"ghsa"},{"lang":"es","text":"OctoPrint proporciona una interfaz web para controlar impresoras 3D de consumo. Las versiones de OctoPrint hasta la 1.11.2 inclusive contienen una vulnerabilidad que permite a un atacante autenticado subir un archivo con un nombre de archivo especialmente diseñado que permitirá la ejecución arbitraria de comandos si dicho nombre de archivo se incluye en un comando definido en un gestor de eventos del sistema y dicho evento se activa. Si no se han configurado gestores de eventos que ejecuten comandos del sistema con nombres de archivo subidos como parámetros, esta vulnerabilidad no tiene un impacto. La vulnerabilidad está parcheada en la versión 1.11.3. Como solución alternativa, los administradores de OctoPrint que tienen gestores de eventos configurados que incluyen cualquier tipo de marcadores de posición basados en nombres de archivo deberían deshabilitarlos configurando su propiedad 'enabled' a 'False' o desmarcando la casilla de verificación 'Enabled' en el Gestor de Eventos basado en GUI. Alternativamente, los administradores de OctoPrint deberían establecer 'feature.enforceReallyUniversalFilenames' a 'true' en 'config.yaml' y reiniciar OctoPrint, luego examinar las cargas existentes y asegurarse de eliminar cualquier archivo de aspecto sospechoso. Como siempre, se aconseja a los administradores de OctoPrint que no expongan OctoPrint en redes hostiles como la internet pública, y que examinen quién tiene acceso a su instancia.","source":"nvd"}],"published":"2025-09-09T19:22:22.000Z","modified":"2026-10-19T17:10:00.173Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:A/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:A/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:A/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:A/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"< 1.11.3","status":"affected"}],"vendor":"OctoPrint","product":"OctoPrint","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.11.3"}],"ecosystem":"PyPI","package":"octoprint","purl":"pkg:pypi/octoprint","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.11.3"}],"vendor":"octoprint","product":"octoprint","cpe":"cpe:2.3:a:octoprint:octoprint:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.11.3"}],"ecosystem":"PyPI","package":"octoprint","purl":"pkg:pypi/octoprint","source":"pysec"}],"references":[{"url":"https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-49mj-x8jp-qvfc","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/OctoPrint/OctoPrint/commit/be4201ef58d9a7c03593252398c16eada90a258b","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/OctoPrint/OctoPrint/commit/c3a940962f4658a8e035a00388781b1cbd768841","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/OctoPrint/OctoPrint/releases/tag/1.11.3","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58180","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/OctoPrint/OctoPrint","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/octoprint","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-49mj-x8jp-qvfc","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-09-10T13:59:03.369Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-58180","url":"https://www.cve.org/CVERecord?id=CVE-2025-58180","licence":"CVE Terms of Use","modified":"2025-09-10T13:59:11.561Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-49mj-x8jp-qvfc","url":"https://github.com/advisories/GHSA-49mj-x8jp-qvfc","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:00.775Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-58180","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58180","licence":"Public domain","modified":"2026-10-19T17:10:00.173Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1712","url":"https://osv.dev/vulnerability/PYSEC-2026-1712","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:29.843Z"}],"updatedAt":"2026-11-25T22:59:04.457Z","epss":{"score":0.27967,"percentile":0.98135,"date":"2026-12-01T12:00:22.000Z"}}