> CVE-2022-39261 [HIGH]

« BACK_TO_HOME
PUBLISHED
2022-09-28 14:15
MODIFIED
2024-11-21 07:17
CVSS_SCORE V3
7.5
EPSS (Prob. Exploit)
3.17%
Top 11.8%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-15 OSV 🔗 2026-03-01

> DESCRIPTION

Twig is a template language for PHP. Versions 1.x prior to 1.44.7, 2.x prior to 2.15.3, and 3.x prior to 3.4.3 encounter an issue when the filesystem loader loads templates for which the name is a user input. It is possible to use the `source` or `include` statement to read arbitrary files from outside the templates' directory when using a namespace like `@somewhere/../some.file`. In such a case, validation is bypassed. Versions 1.44.7, 2.15.3, and 3.4.3 contain a fix for validation of such template names. There are no known workarounds aside from upgrading.

> AFFECTED_PRODUCTS

Debian - Debian Linux
Version: 10.0
Debian - Debian Linux
Version: 11.0
Symfony - Twig
>= 1.0.0 < 1.44.7
Symfony - Twig
>= 2.0.0 < 2.15.3
Symfony - Twig
>= 3.0.0 < 3.4.3
Drupal - Drupal
>= 8.0.0 < 9.3.22
Drupal - Drupal
>= 9.4.0 < 9.4.7
Fedoraproject - Fedora
Version: 35
Fedoraproject - Fedora
Version: 36
Fedoraproject - Fedora
Version: 37

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
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

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Twig may load a template outside a configured directory when using the filesystem loader

AFFECTED PACKAGES:
Unknown / Unknown
41 versions affected
Unknown / Unknown
183 versions affected
ALIASES:
BIT-drupal-2022-39261, DRUPAL-CORE-2022-016, GHSA-52m2-vc4m-jj33

> HISTORIQUE DES MODIFICATIONS

Première apparition
28/09/2022 14:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:35
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME