CVE-2025-27520

CRITICAL LAB

BentoML >=1.3.4 <1.4.3 - Unauthenticated Remote Code Execution via Insecure Deserialization

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 4 public exploits for CVE-2025-27520. PoCs published by electricsheep08, Evillm, amalpvatayam67, including Metasploit module exploits/linux/http/bentoml_rce_cve_2025_27520.

AI-analyzed exploit summary This exploit leverages an insecure deserialization vulnerability in BentoML's `serde.py` to achieve unauthenticated remote code execution (RCE) via a malicious pickle payload. The PoC crafts a reverse shell using `os.system` and sends it to the target's `/summarize` endpoint with a custom content-type header.

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.

Exploits (4)

github WORKING POC
by electricsheep08 · pythonpoc
https://github.com/electricsheep08/CVE-2025-27520

This exploit leverages an insecure deserialization vulnerability in BentoML's `serde.py` to achieve unauthenticated remote code execution (RCE) via a malicious pickle payload. The PoC crafts a reverse shell using `os.system` and sends it to the target's `/summarize` endpoint with a custom content-type header.

Classification
Working Poc 98%
Attack Type
Deserialization
Complexity
Trivial
Reliability
Reliable
Target: BentoML version 1.4.2
No auth needed
Prerequisites: Network access to the target's BentoML service endpoint (`/summarize`) · Target must be running BentoML version 1.4.2 or earlier with pickle deserialization enabled
mistral-large-3 · analyzed Jul 24, 2026 Full analysis →
nomisec WORKING POC
by Evillm · poc
https://github.com/Evillm/CVE-2025-27520-PoC

This repository contains a safe educational simulation of CVE-2025-27520, demonstrating a deserialization vulnerability via a Flask-based service and a Python scanner. The PoC creates a file-based evidence instead of executing arbitrary commands, ensuring safety.

Classification
Working Poc 95%
Attack Type
Deserialization
Complexity
Trivial
Reliability
Reliable
Target: Custom Flask application (simulated)
No auth needed
Prerequisites: Docker · Python 3.11+ · Network access to the target service
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by amalpvatayam67 · poc
https://github.com/amalpvatayam67/day09-bentoml-deser-lab

This repository contains a working proof-of-concept for CVE-2025-27520, demonstrating an insecure deserialization vulnerability in a BentoML-style application. The exploit leverages Python's pickle module to achieve remote code execution (RCE) via a crafted base64-encoded payload.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: BentoML (version not specified)
No auth needed
Prerequisites: Docker environment · Network access to the vulnerable application
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →
metasploit WORKING POC EXCELLENT
by c2an1, Takahiro Yokoyama · rubypocpython
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/bentoml_rce_cve_2025_27520.rb

This Metasploit module exploits an insecure deserialization vulnerability in BentoML v1.4.2, allowing unauthenticated RCE via a crafted pickle payload sent to a vulnerable API endpoint.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: BentoML v1.3.4 to v1.4.2
No auth needed
Prerequisites: Network access to the target server · Vulnerable BentoML version running
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →

Scores

CVSS v3 9.8
EPSS 0.3567
EPSS Percentile 98.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Details

CWE
CWE-502
Status published
Products (2)
bentoml/bentoml 1.3.4 - 1.4.2
pypi/bentoml 1.3.4 - 1.4.3PyPI
Published Apr 04, 2025
Tracked Since Feb 18, 2026