CVE-2022-39261: debian debian_linux Path Traversal
Vulnerability summary
CVE-2022-39261 is a high (CVSS 7.5) Path Traversal vulnerability in debian debian_linux. EPSS estimates a 3.17% chance of exploitation in the next 30 days, higher than 87.8% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 28-09-2022PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
3.17%
Chance of exploitation in the next 30 days
Percentile
88%
Versus all other CVEs
30-day change
+0.61 pp
From 2.56% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Debian3 products
- php-twig< 2.14.3-1+deb11u2 | < 3.4.3-1
- twig< 2.6.2-2+deb10u1
- debian_linuxEOL10.0 | 11.0
Ubuntu2 products
- php-twig< 2.12.5-1ubuntu0.1~esm1 | < 3.3.8-2ubuntu4+esm1
- twig< 1.23.1-1ubuntu4+esm1 | < 2.4.6-1ubuntu0.1~esm1
Drupal1 product
- drupal≥ 8.0.0, < 9.3.22 | ≥ 9.4.0, < 9.4.7
Fedoraproject1 product
- fedoraEOL35 | 36 | 37
Symfony1 product
- twig≥ 1.0.0, < 1.44.7 | ≥ 2.0.0, < 2.15.3 | ≥ 3.0.0, < 3.4.3
Twigphp1 product
- twig=> 1.0.0, < 1.44.7 | ≥ 2.0.0, < 2.15.3 | ≥ 3.0.0, < 3.4.3
6 vendors · 9 products
References
15 links- github.com/twigphp/Twig/commit/35f3035c5deb0041da7b84daf02dea074ddc7a0bREPORTPatchThird Party Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
Show all 15 references
- lists.fedoraproject.org/archives/…Vendor Advisory