CVE-2023-43654 TorchServe Server-Side Request Forgery
TorchServe 서버측 요청 위조
설명
TorchServe is a tool for serving and scaling PyTorch models in production. TorchServe default configuration lacks proper input validation, enabling third parties to invoke remote HTTP download requests and write files to the disk. This issue could be taken advantage of to compromise the integrity of the system and sensitive data. This issue is present in versions 0.1.0 to 0.8.1. A user is able to load the model of their choice from any URL that they would like to use. The user of TorchServe is responsible for configuring both the allowed_urls and specifying the model URL to be used. A pull request to warn the user when the default value for allowed_urls is used has been merged in PR #2534. TorchServe release 0.8.2 includes this change. Users are advised to upgrade. There are no known workarounds for this issue.
TorchServe는 생산에서 PyTorch 모델을 제공하고 확장하는 도구입니다. TorchServe 기본 구성에는 적절한 입력 유효성 검사가 없으므로 타사에서 원격 HTTP 다운로드 요청을 호출하고 디스크에 파일을 쓸 수 있습니다. 이 문제는 시스템 및 민감한 데이터의 무결성을 손상시키는 데 활용 될 수 있습니다. 이 문제는 버전 0.1.0에서 0.8.1에 있습니다. 사용자는 자신이 사용하고 싶은 URL에서 원하는 모델을로드 할 수 있습니다. TorchServe의 사용자는 allowed_urls를 모두 구성하고 사용할 모델 URL을 지정할 책임이 있습니다. allowed_urls의 기본값이 사용될 때 사용자에게 경고하는 풀 요청이 PR #2534에 병합되었습니다. TorchServe 0.8.2 릴리스에는 이 변경 사항이 포함되어 있습니다. 사용자는 업그레이드하는 것이 좋습니다. 이 문제에 대한 알려진 해결 방법이 없습니다.
영향 받는 제품 제품 1개
-
해결 버전 있음
pytorch
serve
영향 받는 버전
- 0.1.0 이상 0.8.2 미만
해결 버전
- 0.8.2 이상
참고 자료 4건
- packetstormsecurity.com http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html (새 창)
- github.com https://github.com/pytorch/serve/pull/2534 (새 창)
- github.com https://github.com/pytorch/serve/releases/tag/v0.8.2 (새 창)
- github.com https://github.com/pytorch/serve/security/advisories/GHSA-8fxr-qfr9-p34w (새 창)