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 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.
Path Traversal
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub_MCNA
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVEADP
---
---
CISA-ADPADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 78%
VendorProductVersion
symfonytwig
1.0.0 ≤
𝑥
< 1.44.7
symfonytwig
2.0.0 ≤
𝑥
< 2.15.3
symfonytwig
3.0.0 ≤
𝑥
< 3.4.3
drupaldrupal
8.0.0 ≤
𝑥
< 9.3.22
drupaldrupal
9.4.0 ≤
𝑥
< 9.4.7
debiandebian_linux
10.0
debiandebian_linux
11.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
php-twig
bullseye
2.14.3-1+deb11u2
fixed
bullseye (security)
2.14.3-1+deb11u3
fixed
bookworm
3.5.1-1
fixed
bookworm (security)
3.5.1-1+deb12u1
fixed
sid
3.14.0-4
fixed
trixie
3.14.0-4
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
php-twig
noble
not-affected
mantic
not-affected
lunar
not-affected
kinetic
ignored
jammy
Fixed 3.3.8-2ubuntu4+esm1
released
focal
Fixed 2.12.5-1ubuntu0.1~esm1
released
bionic
dne
xenial
ignored
trusty
ignored
twig
noble
dne
mantic
dne
lunar
dne
kinetic
dne
jammy
dne
focal
dne
bionic
Fixed 2.4.6-1ubuntu0.1~esm1
released
xenial
Fixed 1.23.1-1ubuntu4+esm1
released
trusty
dne
References