llamaCVEVulnerability Intelligence
/
BentoML

CVE-2026-35044

BentoML has a Server-Side Template Injection via unsandboxed Jinja2 Environment in Dockerfile generation

Solo en configuraciones específicasParche disponible
Descargar PNG JSON
CVSS 3.1
8.8
Alta
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Fuente: CNA
9.6NVD · CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
ExplotaciónPoC públicaSSVC: PoC · no figura en CISA KEV
Exploits públicos0CISA-ADP reporta PoC; aún sin enlace público
Parche1 versiónPrimer parche a -4 d de la divulgación
Exposición228 dDesde la divulgación, 6 abr 2026, 12:13 p. m.
Detección210 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Existe PoC pública, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +2
Explotación
Remediación
Parche 1.4.38
Monitoreo
Detectada
Verificada
2 abr 26
6 abr 26
3 nov 26
18 nov 26
21 nov 26
2 abr 26
30 may 26
28 jul 26
24 sept 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 1.4.38 bentoml · -4 d desde divulgación
Divulgación Publicada CVE-2026-35044 divulgada · CVSS 8.8 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación PoC pública
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen

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.

Affects BentoML 1.4.37 and earlier when a bento with dockerfile_template set in its bentofile.yaml is imported and containerized. Fixed in 1.4.38.

¿Qué significa?BentoML renders a bento's dockerfile_template with an unsandboxed Jinja2 environment when generating a Dockerfile. A malicious bento archive can therefore run arbitrary code on the host machine of a user who imports it and runs bentoml containerize, with access to the host filesystem, credentials and environment variables.
¿Quién está afectado?BentoML versions 1.4.37 and earlier are affected. The setup involves a bento whose bentofile.yaml sets dockerfile_template and which is imported and then run through bentoml containerize. Check your version with bentoml --version and look for dockerfile_template in the bentofile.yaml of any bento you import.
¿Qué hacer?Upgrade BentoML to 1.4.38 or later. Avoid importing and containerizing bento archives from sources you do not trust until you have upgraded.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Victim imports a malicious bento archive and runs bentoml containerize on it.“When a victim imports a malicious bento archive and runs bentoml containerize”
02
The bento was built with dockerfile_template set in its bentofile.yaml.“Attacker builds a bento with dockerfile_template set in bentofile.yaml”
03
BentoML version 1.4.37 or earlier.“Affected versions <= 1.4.37”
¿Quién debe revisar?Anyone running BentoML 1.4.37 or earlier who imports bento archives from others and runs bentoml containerize on them.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:R
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 8.3 (muy fácil) · +1.7 por PoC pública.
Versiones

Rangos afectados

Afectada Corregida Última
BentoML · bentoml< 1.4.38
1.4.38
1.4.40
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypibentoml
Corregida 1.4.38 -4 d 1.4.40 no afectada
Versiones corregidas1.4.38
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/bentoml/BentoML/security/advisories/GHSA-v959-cwq9-7hr6

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.