CVE-2025-27520
BentoML Allows Remote Code Execution (RCE) via Insecure Deserialization
Reported by github_m · Published April 4, 2025
bentoml is fixed in 1.4.3 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| bentoml | PyPI | 1.4.3 |
| bentoml | bentoml | 1.4.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| bentoml | BentoML | >= 1.3.4, < 1.4.3 |
| bentoml | BentoML | 1.3.4 |
| PyPI | bentoml | 1.3.4 |
Timeline
- Apr 4, 2025 CVE Published
- Apr 4, 2025 CVE Updated
- Apr 4, 2025 PoC Published (21 in total, the first dated here)
- Apr 5, 2025 EPSS Score (30 in total, the first dated here)
- May 31, 2025 Coalition ESS Score (13 in total, the first dated here)
- Dec 18, 2025 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-27520
vulnetix vdb fixes CVE-2025-27520
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-27520/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/bentoml/BentoML/security/advisories/GHSA-33xw-247w-6hmc x_refsource_CONFIRM
- https://github.com/bentoml/BentoML/commit/b35f4f4fcc53a8c3fe8ed9c18a013fe0a728e194 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-27520 advisory
- https://github.com/advisories/GHSA-33xw-247w-6hmc advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/bentoml/PYSEC-2026-294.yaml advisory
- https://pypi.org/project/bentoml url