BentoML
BentoML Allows Remote Code Execution (RCE) via Insecure Deserialization
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.3.4, < 1.4.3
Fixed in 1.4.3
Mitigation
Upgrade BentoML to 1.4.3 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 11 days after publication; not in CISA KEV. First PoC: Metasploit exploit: BentoML RCE (exploit/linux/http/bentoml_rce_cve_2025_27520) (Metasploit, 15 Apr 2025).
PoC repositories
Found on GitHub.2 PoCs · 1 pending
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Evillm/CVE-2025-27520-PoC | 4 Feb 2026 +306 d | 0 | PoC |
| electricsheep08/CVE-2025-27520 | 24 Jul 2026 +1.3 y | 0 | PoC |
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| amalpvatayam67/day09-bentoml-deser-lab | 22 Sep 2025 +171 d | 0 | Pending |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit exploit: BentoML RCE (exploit/linux/http/bentoml_rce_cve_2025_27520) | 15 Apr 2025 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 2 PoC reposPOST /simulate_deserialize
- Body markers
"payload":"Hello EVIDENCE_TRIGGER"inapplication/json- Ports
- 5000
- Seen in
- 1 repo: Evillm/CVE-2025-27520-PoC
- Evidence
- Evillm/CVE-2025-27520-PoC/README.md:158
POST /summarize
- Content-Type
application/vnd.bentoml+pickle- Seen in
- 1 repo: electricsheep08/CVE-2025-27520
- Evidence
- electricsheep08/CVE-2025-27520/CVE-2025-27520.py:50
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/simulate_deserialize(?:[?#].*)?$
(?i)^/summarize(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [5000] (msg:"GG PoC-Monitor CVE-2025-27520 bentoml BentoML exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/simulate_deserialize"; http.request_body; content:"|22|payload|22|:|22|Hello EVIDENCE_TRIGGER|22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-27520; classtype:web-application-attack; sid:9825477; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-27520 bentoml BentoML exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/summarize"; reference:url,poc.griffinguard.io/cve/CVE-2025-27520; classtype:web-application-attack; sid:9077564; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: bentoml BentoML exploit attempt (CVE-2025-27520)
id: gg-pocmon-cve-2025-27520-9825477
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-27520. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-27520
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/simulate_deserialize'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.27520
title: bentoml BentoML exploit attempt (CVE-2025-27520)
id: gg-pocmon-cve-2025-27520-9077564
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-27520. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-27520
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/summarize'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.27520