{"id":"CVE-2025-27520","published":"2025-04-04T14:28:51Z","modified":"2025-04-04T14:51:45Z","title":"BentoML Allows Remote Code Execution (RCE) via Insecure Deserialization","vendor":"bentoml","product":"BentoML","tier":"tail","description":{"text":"BentoML is a Python library for building online serving systems optimized for AI apps and model inference. A Remote Code Execution (RCE) vulnerability caused by insecure deserialization has been identified in the latest version (v1.4.2) of BentoML. It allows any unauthenticated user to execute arbitrary code on the server. It exists an unsafe code segment in serde.py. This vulnerability is fixed in 1.4.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.4062,"percentile":0.98683,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/bentoml/BentoML/security/advisories/GHSA-33xw-247w-6hmc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/bentoml/BentoML/commit/b35f4f4fcc53a8c3fe8ed9c18a013fe0a728e194","tags":["x_refsource_MISC"]}],"priority":{"score":31.6,"factors":[{"name":"EPSS percentile","points":19.74},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":2,"skipped":1,"earliest":"2025-09-22","earliestUrl":"https://github.com/amalpvatayam67/day09-bentoml-deser-lab","repos":[{"name":"amalpvatayam67/day09-bentoml-deser-lab","url":"https://github.com/amalpvatayam67/day09-bentoml-deser-lab","stars":0,"created":"2025-09-22"},{"name":"electricsheep08/CVE-2025-27520","url":"https://github.com/electricsheep08/CVE-2025-27520","stars":0,"created":"2026-07-24"}]},"metasploit":[{"name":"BentoML RCE","module":"exploit/linux/http/bentoml_rce_cve_2025_27520","type":"exploit","disclosureDate":"2025-04-04","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/bentoml_rce_cve_2025_27520.rb"}],"first":{"date":"2025-04-04","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/bentoml_rce_cve_2025_27520.rb"},"provenance":"source"},"vendorSlug":"bentoml","affectedVersions":[{"vendor":"bentoml","product":"BentoML","versions":[">= 1.3.4, < 1.4.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-04-04T14:51:28.686009Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"bentoml","vulnerableRanges":[">=1.3.4, <1.4.3"],"patched":["1.4.3"],"from":["GHSA-33xw-247w-6hmc","PYSEC-2026-294"],"provenance":"source"}],"summary":{"text":"BentoML, a Python library for building online serving systems for AI and model inference, contains an insecure deserialization flaw in the serde.py component. An unauthenticated remote attacker with network access can exploit it, without user interaction or specific configuration, to execute arbitrary code on the server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:30:20Z"},"euvd":{"id":"EUVD-2025-9752","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-bentoml-bentoml-cve-2024-2912","parents":[{"from":"CVE-2024-2912","to":"CVE-2025-27520","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/_bentoml_impl/server/app.py"],"commits":["https://github.com/bentoml/bentoml/commit/fd70379733c57c6368cc022ac1f841b7b426db7b","https://github.com/bentoml/BentoML/commit/b35f4f4fcc53a8c3fe8ed9c18a013fe0a728e194"],"basis":"shared function","functions":["api_endpoint"]}]}],"packageHistory":[{"cve":"CVE-2024-2912","published":"2024-04-16","fixed":"1.2.5","kev":false},{"cve":"CVE-2025-27520","published":"2025-04-04","fixed":"1.4.3","kev":false},{"cve":"CVE-2025-32375","published":"2025-04-09","fixed":"1.4.8","kev":false,"link":{"from":"CVE-2025-27520","to":"CVE-2025-32375","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:bentoml","fromFixed":"1.4.3","toFixed":"1.4.8","daysApart":5}]}},{"cve":"CVE-2025-54381","published":"2025-07-29","fixed":"1.4.19","kev":false},{"cve":"CVE-2026-24123","published":"2026-01-26","fixed":"1.4.34","kev":false}],"package":"PyPI:bentoml"}}