PoC Monitor
← All CVEs
CVE-2025-27520published 4 Apr 2025 14:28 UTCData: JSON · API

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.

First public PoC 11 daysafter publication · 15 Apr 2025 · Metasploit
Public PoCs32 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CNA · CWE-502
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

bentoml BentoML
  • >= 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 publication
-2t=0+2+4+6+8+10+12CVE published4 Apr 2025 · t = 0First public PoC15 Apr 2025 · t+11d

First 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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
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.
SourceTitlePublishedFound by us
MetasploitMetasploit exploit: BentoML RCE (exploit/linux/http/bentoml_rce_cve_2025_27520)15 Apr 202514 Nov 2026

PoC characteristics

What to hunt for in your logs · from 2 PoC repos

POST /simulate_deserialize

Body markers
"payload":"Hello EVIDENCE_TRIGGER" in application/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.

POST /simulate_deserialize
(?i)^/simulate_deserialize(?:[?#].*)?$
POST /summarize
(?i)^/summarize(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /simulate_deserialize
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;)
POST /summarize
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.

POST /simulate_deserialize
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
POST /summarize
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