CVE-2025-27520: BentoML - Insecure Deserialization
- Cve: CVE-2025-27520
- Name: BentoML - Insecure Deserialization
- Description: 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.
- Impact: Attackers can execute arbitrary code remotely, potentially leading to full server compromise.
- Remediation: Update to version 1.4.3 or later.
- Vulnerability type: insecure_deserialization
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.4062
- Epss percentile: 0.98684
- Assignee: [email protected]
- Published at: 2025-04-04T15:15:47Z
- Age in days: 599
- Modified at: 2026-06-17T09:03:44Z
- Patch available: yes
- Public exploits total: 5
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-27520
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-502 | Deserialization of Untrusted Data |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/bentoml/BentoML/security/advisories/GHSA-33xw-247w-6hmc | nvd | 2025-04-04 |
| https://github.com/electricsheep08/CVE-2025-27520 | poc-in-github | 2026-07-24 |
| https://github.com/Evillm/CVE-2025-27520-PoC | poc-in-github | 2026-02-04 |
| https://github.com/amalpvatayam67/day09-bentoml-deser-lab | poc-in-github | 2025-09-22 |
| https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/bentoml_rce_cve_2025_27520.rb | metasploit | 2025-04-04 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/bentoml/BentoML/commit/b35f4f4fcc53a8c3fe8ed9c18a013fe0a728e194 | nvd | Patch |
| https://github.com/bentoml/BentoML/security/advisories/GHSA-33xw-247w-6hmc | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| bentoml:bentoml | >= 1.3.4, <= 1.4.2 | no | nvd | /v1/products/bentoml/bentoml |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| bentoml/BentoML | commit, fix, package, security_advisory | yes | /v1/repositories/bentoml/BentoML |
Index
- Repositories: 1
- Checked, none or zero: repositories high signal, packages
Exploitation
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 5
- Public exploit first date: 2025-04-04
- Remote: yes
- Exposed hosts: 66
- Checked, none or zero: known exploited, known exploited by, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports