CVE-2025-27520
Bentoml vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Bentoml. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Bentoml runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/bentoml/BentoML/commit/b35f4f4fcc53a8c3fe8ed9c18a013fe0a728e194 · Patch
- github.com/bentoml/BentoML/security/advisories/GHSA-33xw-247w-6hmc · Exploit
- nvd.nist.gov/vuln/detail/CVE-2025-27520
- github.com/advisories/GHSA-33xw-247w-6hmc
- github.com/pypa/advisory-database/tree/main/vulns/bentoml/PYSEC-2026-294.yaml
- pypi.org/project/bentoml
- nvd.nist.gov/vuln/detail/CVE-2025-27520
- cve.org/CVERecord?id=CVE-2025-27520
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.