cbcvebase.
CVE-2022-39261
published 2022-09-28

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…

PriorityP346high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
EPSS
1.49%
70.8th percentile
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

22 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debiandebian_linux
debianphp-twig< php-twig 3.4.3-1 (bookworm)php-twig 3.4.3-1 (bookworm)
drupalcore>= 8.0.0 < 9.3.229.3.22
drupalcore>= 9.4.0 < 9.4.79.4.7
drupaldrupal>= 8.0.0 < 9.3.229.3.22
drupaldrupal>= 9.4.0 < 9.4.79.4.7
drupaldrupal_core
fedoraprojectfedora
fedoraprojectfedora
fedoraprojectfedora
symfonytwig>= 1.0.0 < 1.44.71.44.7
symfonytwig>= 2.0.0 < 2.15.32.15.3
symfonytwig>= 3.0.0 < 3.4.33.4.3
twigtwig>= 0 < 1.23.1-1ubuntu4+esm11.23.1-1ubuntu4+esm1
twigtwig>= 0 < 2.4.6-1ubuntu0.1~esm12.4.6-1ubuntu0.1~esm1
twigtwig>= 1.0.0 < 1.44.71.44.7
twigtwig>= 2.0.0 < 2.15.32.15.3
twigtwig>= 3.0.0 < 3.4.33.4.3
twigphptwig
twigphptwig
twigphptwig

CVSS provenance

nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
osv7.5HIGH
vendor_debian7.5HIGH
vendor_ubuntu3.7LOW
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.