> CVE-2026-46636 [HIGH]

« BACK_TO_HOME
PUBLISHED
2026-09-04 22:17
MODIFIED
2026-09-04 22:17
CVSS_SCORE V3
8.7
EPSS (Prob. Exploit)
0.57%
Top 54.0%
DATA SOURCES:
NVD đź”— 2026-09-04 CWE MITRE đź”— 2026-10-01 FIRST EPSS đź”— 2026-10-18 OSV đź”— 2026-10-26

> DESCRIPTION

Twig is a template language for PHP. From version 1.0.0 to before version 3.27.0, SecurityPolicy::checkMethodAllowed() unconditionally whitelists all method calls on instances of Twig\Markup. Twig\Markup is not final, so subclasses inherit the bypass. An application that passes an object of a Markup-derived class into a sandboxed template (typically to mark a chunk of HTML as safe) inadvertently exposes every public method of that subclass to template authors, regardless of the configured allowedMethods list. This issue has been patched in version 3.27.0.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
None (N)
Aucune modification de données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
None
Aucune interruption de service

> WEAKNESSES

CWE-1336

> CWE DETAILED DESCRIPTIONS

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.

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Twig: Sandbox method allowlist bypass via `Markup` subclass

AFFECTED PACKAGES:
Unknown / Unknown
142 versions affected
ALIASES:
GHSA-64jr-qjx4-w2fh

> HISTORIQUE DES MODIFICATIONS

Première apparition
04/09/2026 22:17
Source: NVD
📊 ENRICHISSEMENT 01/10/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
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 inc...
Total des modifications: 1 Dernière mise à jour: 3 weeks ago

> REFERENCES

http://github.com/twigphp/Twig/releases/tag/v3.27.0
https://github.com/twigphp/Twig/security/advisories/GHSA-64jr-qjx4-w2fh
https://security-tracker.debian.org/tracker/CVE-2026-46636
https://security-tracker.debian.org/tracker/DSA-6311-1
https://symfony.com/blog/cve-2026-46636-sandbox-filter-tag-and-function-allow-li...
« BACK_TO_HOME