GHSA-52m2-vc4m-jj33 · Severity: high · Ecosystem: composer — Twig may load a template outside a configured directory when using the filesystem loader
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.
Conclusion & alert: CVE-2022-39261 is rated Moderate Risk (62.9/100): CVSS High severity, with high exploitation likelihood (EPSS 9.50%, 93th percentile). Core evidence: EPSS ranks this CVE among the most likely to be exploited in the near term. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-03-24 | 9.07% | 9.50% | +0.43% |
| 2 | 2026-03-15 | 2.20% | 9.07% | +6.87% |
| 3 | 2026-03-14 | — | 2.20% | — |
Full EPSS history (28 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
GHSA-52m2-vc4m-jj33 · Severity: high · Ecosystem: composer — Twig may load a template outside a configured directory when using the filesystem loader
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2022-39261 not yet assigned priority: Debian including 1 source packages (php-twig), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2022-39261 |
ubuntu
|
medium | CVE-2022-39261 medium priority: Ubuntu including 2 source packages (php-twig, twig), 26 status rows across 13 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 11, not-affected 6, released 6, ignored 3. | https://ubuntu.com/security/CVE-2022-39261 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| symfony | twig | >= 1.0.0, < 1.44.7 | cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* |
| symfony | twig | >= 2.0.0, < 2.15.3 | cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* |
| symfony | twig | >= 3.0.0, < 3.4.3 | cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:* |
| drupal | drupal | >= 8.0.0, < 9.3.22 | cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:* |
| drupal | drupal | >= 9.4.0, < 9.4.7 | cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:* |
| fedoraproject | fedora | 35 | cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* |
| fedoraproject | fedora | 36 | cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* |
| fedoraproject | fedora | 37 | cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* |
| debian | debian_linux | 10.0 | cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
| debian | debian_linux | 11.0 | cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |