CVE-2025-54381
Python vulnerability analysis and mitigation

Overview

BentoML, a Python library for building online serving systems optimized for AI apps and model inference, disclosed a critical vulnerability (CVE-2025-54381) affecting versions 1.4.0 through 1.4.19. The vulnerability was discovered on July 29, 2025, and involves a Server-Side Request Forgery (SSRF) in the file upload processing system that allows unauthenticated remote attackers to force the server to make arbitrary HTTP requests (GitHub Advisory).

Technical details

The vulnerability stems from the multipart form data and JSON request handlers, which automatically download files from user-provided URLs without properly validating whether those URLs point to internal network addresses, cloud metadata endpoints, or other restricted resources. The framework automatically registers any service endpoint with file-type parameters as vulnerable to this attack. The CVSS v3.1 base score is 9.9 (Critical) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L, indicating high severity with network attack vector, low complexity, and no required privileges or user interaction (GitHub Advisory).

Impact

The vulnerability can be exploited to access AWS/GCP/Azure cloud metadata services for credential theft, enumerate and interact with internal HTTP services and APIs, bypass firewall restrictions to reach internal network resources, perform network reconnaissance, and potentially retrieve sensitive information disclosed in HTTP response data. The documentation explicitly promotes the URL-based file upload feature, making it an intended design that exposes all deployed services to SSRF attacks by default (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 1.4.19. The fix implements comprehensive URL validation in both serialization paths by adding network restriction checks to prevent access to internal/private network ranges, localhost, and cloud metadata endpoints. Users are strongly advised to upgrade to version 1.4.19 or later (GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67511CRITICAL9.6
  • PythonPython
  • cai-framework
NoNoDec 11, 2025
CVE-2025-13780CRITICAL9.1
  • PythonPython
  • cpe:2.3:a:pgadmin:pgadmin
NoYesDec 11, 2025
CVE-2025-67644HIGH7.3
  • PythonPython
  • langgraph-checkpoint-sqlite
NoYesDec 11, 2025
CVE-2025-67720MEDIUM6.5
  • PythonPython
  • pyrofork
NoYesDec 11, 2025
CVE-2025-67485MEDIUM5.3
  • PythonPython
  • mad-proxy
NoNoDec 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management