Deserialization in Bentoml
CVE-2025-27520
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.
Vulnerability class: Insecure Deserialization
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.406, 98.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Bentoml — versions >= 1.3.4, < 1.4.3
Weakness classification (CWE)
Public exploits and proof-of-concept code
Metasploit modules
3 public repositories with exploit or proof-of-concept code for this CVE:
- electricsheep08/CVE-2025-27520 (last pushed 2026-07-24): exploit for CVE-2025-27520 A Remote Code Execution (RCE) vulnerability caused by insecure deserialization in the latest version (v1.4.2) of BentoML. It allows any unauthenticated user to execute arb…
- Evillm/CVE-2025-27520-PoC (last pushed 2026-02-04)
- amalpvatayam67/day09-bentoml-deser-lab (last pushed 2025-09-22): ay 09 — CVE-2025-27520 (BentoML-style insecure deserialization) — Local Docker lab
Also mentioned in 3 other repositories (ARPSyndicate/cve-scores, nomi-sec/PoC-in-GitHub, PuddinCat/GithubRepoSpider). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/bentoml/BentoML/security/advisories/GHSA-33xw-247w-6hmc (Exploit, Third Party Advisory)
- https://github.com/bentoml/BentoML/commit/b35f4f4fcc53a8c3fe8ed9c18a013fe0a728e194 (Patch)
This CVE has public exploit evidence. See the latest CVEs with public exploits.