All vulnerabilities

Servers and applications

CVE-2022-39261

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…

Severity
High 7.5
Published
28 Sept 2022
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
9.3.22, 9.4.7
Sources
NVD

Affected software

SoftwareAffected versions
DrupalServers and applications · cpe:a:drupal:drupal
  • From 8.0.0 before 9.3.22
  • From 9.4.0 before 9.4.7

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2022-39261
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2022-39261