CVE-2025-58180 OctoPrint is Vulnerable to RCE Attacks via Unsanitized Filename in File Upload
OctoPrint는 파일 업로드에서 안전하지 않은 파일 이름을 통해 RCE 공격에 취약합니다.
설명
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.
OctoPrint는 소비자 3D 프린터를 제어하기위한 웹 인터페이스를 제공합니다. 1.11.2까지 OctoPrint 버전은 인증 된 공격자가 특별히 만들어진 파일 이름으로 파일을 업로드 할 수있는 취약점을 포함하고 있으며, 파일 이름이 시스템 이벤트 핸들러에 정의 된 명령에 포함되어 이벤트가 트리거되는 경우 임의의 명령 실행을 허용합니다. 업로드된 파일 이름을 가진 시스템 명령을 매개 변수로 실행하는 이벤트 처리기가 구성되지 않은 경우 이 취약점은 영향을 미치지 않습니다. 이 취약점은 버전 1.11.3에서 패치되었습니다. 해결 방법으로, 파일 이름 기반 자리 표시자를 포함하는 이벤트 핸들러를 구성한 OctoPrint 관리자는 `enabled` 속성을 `False`로 설정하거나 GUI 기반 이벤트 관리자에서 "Enabled" 체크상자를 선택 해제하여 해당 항목을 비활성화해야 합니다. 또는, OctoPrint 관리자는 `config.yaml`에서 `feature.enforceReallyUniversalFilenames`를 `true`로 설정하고 OctoPrint를 재시작한 다음, 기존 업로드를 검사하고 의심스러운 파일을 삭제해야 합니다. 언제나처럼, OctoPrint 관리자는 공용 인터넷과 같은 적대적인 네트워크에 OctoPrint를 노출하지 않는 것이 좋습니다, 그리고 자신의 인스턴스에 액세스 할 수있는 수의사.
영향 받는 제품 제품 1개
-
해결 버전 있음
OctoPrint
OctoPrint
영향 받는 버전
- 1.11.3 미만
해결 버전
- 1.11.3 이상
참고 자료 4건
- github.com https://github.com/OctoPrint/OctoPrint/commit/be4201ef58d9a7c03593252398c16eada90a258b (새 창)
- github.com https://github.com/OctoPrint/OctoPrint/commit/c3a940962f4658a8e035a00388781b1cbd768841 (새 창)
- github.com https://github.com/OctoPrint/OctoPrint/releases/tag/1.11.3 (새 창)
- github.com https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-49mj-x8jp-qvfc (새 창)