1. Archivio CVE
  2. 2026
  3. CVE-2026-35044

CVE-2026-35044

9.6 Gravità critica CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H 9.6 – Critica

Descrizione

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Prior to 1.4.38, the Dockerfile generation function generate_containerfile() in src/bentoml/_internal/container/generate.py uses an unsandboxed jinja2.Environment with the jinja2.ext.do extension to render user-provided dockerfile_template files. When a victim imports a malicious bento archive and runs bentoml containerize, attacker-controlled Jinja2 template code executes arbitrary Python directly on the host machine, bypassing all container isolation. This vulnerability is fixed in 1.4.38.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
bentoml bentoml < 1.4.38 –
Tutte le 13 vulnerabilità di Bentoml

Tipo di vulnerabilità

CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine

The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.

Impatto sui sistemi

AmbitoImpatto
Integrità Eseguire codice o comandi non autorizzati

Come si previene

Architettura e progettazione Choose a template engine that offers a sandbox or restricted mode, or at least limits the power of any available expressions, function calls, or commands.
Sviluppo Use the template engine's sandbox or restricted mode, if available.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 195 CVE di tipo CWE-1336, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org