SecurityContext

CVE-2025-27520: BentoML - Insecure Deserialization

  • Cve: CVE-2025-27520
  • Name: BentoML - Insecure Deserialization
  • 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.
  • Impact: Attackers can execute arbitrary code remotely, potentially leading to full server compromise.
  • Remediation: Update to version 1.4.3 or later.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.4062
  • Epss percentile: 0.98684
  • Assignee: [email protected]
  • Published at: 2025-04-04T15:15:47Z
  • Age in days: 599
  • Modified at: 2026-06-17T09:03:44Z
  • Patch available: yes
  • Public exploits total: 5
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-27520
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-502Deserialization of Untrusted Data

Public exploits

UrlSourceAdded date
https://github.com/bentoml/BentoML/security/advisories/GHSA-33xw-247w-6hmcnvd2025-04-04
https://github.com/electricsheep08/CVE-2025-27520poc-in-github2026-07-24
https://github.com/Evillm/CVE-2025-27520-PoCpoc-in-github2026-02-04
https://github.com/amalpvatayam67/day09-bentoml-deser-labpoc-in-github2025-09-22
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/bentoml_rce_cve_2025_27520.rbmetasploit2025-04-04

References

UrlSourceTags
https://github.com/bentoml/BentoML/commit/b35f4f4fcc53a8c3fe8ed9c18a013fe0a728e194nvdPatch
https://github.com/bentoml/BentoML/security/advisories/GHSA-33xw-247w-6hmcnvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
bentoml:bentoml>= 1.3.4, <= 1.4.2nonvd/v1/products/bentoml/bentoml

Projects

RepositoryLink kindsIndexedUrl
bentoml/BentoMLcommit, fix, package, security_advisoryyes/v1/repositories/bentoml/BentoML

Index

  • Repositories: 1
  • Checked, none or zero: repositories high signal, packages

Exploitation

  • Exploitation seen: yes
  • Public exploit: yes
  • Public exploit count: 5
  • Public exploit first date: 2025-04-04
  • Remote: yes
  • Exposed hosts: 66
  • Checked, none or zero: known exploited, known exploited by, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports