1. Accueil
  2. Vulnérabilités
  3. CVE-2025-27516

CVE-2025-27516

Jinja is an extensible templating engine. Prior to 3.1.6, an oversight in how the Jinja sandboxed environment…

Publiée le 5 mars 2025 · modifiée le 17 juin 2026 · Sources : NVD, CNA (éditeur ou attributeur), CERT-FR, EPSS (FIRST)

Moyen 46/100

Résumé

Jinja is an extensible templating engine. Prior to 3.1.6, an oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code. To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates. Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup. This vulnerability is fixed in 3.1.6.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Debian (1 ligne(s))
Debian
ProduitVersionsCorrigé dansSource
Debian linux 11.0 — NVD
Palletsprojects (1 ligne(s))
Palletsprojects
ProduitVersionsCorrigé dansSource
Jinja avant 3.1.6 (exclu) — NVD
Pypi (1 ligne(s))
Pypi
ProduitVersionsCorrigé dansSource
jinja2 avant 3.1.6 (exclu) 3.1.6 GitHub Advisory

Correctif

Mise à jour — PyPI/jinja2 3.1.6source officielle

Source : GitHub Advisory

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Avis CERT-FR

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
NVD
Score CVSS
NVD
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H (CVSS 3.1, NVD)
Faiblesse
CWE-1336 · Autre (CWE-1336)

Comment sont obtenues et calculées ces données