1. Accueil
  2. Vulnérabilités
  3. CVE-2026-133767

CVE-2026-133767

Sandbox allow-list and `__toString()` bypass via a dynamic `embed` parent expression

Publiée le 24 nov. 2026 · modifiée le 1 déc. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Faible 33/100

Résumé

When the parent of an embed tag was an expression other than a string or a variable, the sandbox didn't see that expression. The functions, filters and tests of the expression weren't checked against the policy, and neither were its conversions to strings. A sandboxed template allowed to use embed could therefore call any function, filter or test, and any __toString() method: {% embed 'leak_' ~ app_secret() %}{% endembed %} Method calls and property reads were not affected, since they're checked at runtime. The sandbox now checks the parent expression of embed like any other expression of the template.

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

Produits et versions affectés

Twig (1 ligne(s))
Twig
ProduitVersionsCorrigé dansSource
twig/twig avant 3.31.1 (exclu) — CNA (éditeur ou attributeur)

Correctif

Non renseigné par l’éditeur.

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

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

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N (CVSS 4.0, CNA:Symfony)
Faiblesse
CWE-693 · Autre (CWE-693)

Comment sont obtenues et calculées ces données