Path Traversal in Drupal
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS: 0.032 (87.5th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 87th percentile — 87.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.025 · newest: 0.032 · change: +0.007
Affected products
- Drupal
- Symfony Twig
- Twigphp Twig — versions => 1.0.0, < 1.44.7, >= 2.0.0, < 2.15.3, >= 3.0.0, < 3.4.3
- Debian Linux — versions 10.0, 11.0
- Fedoraproject Fedora — versions 35, 36, 37
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/twigphp/Twig/security/advisories/GHSA-52m2-vc4m-jj33 (Third Party Advisory)
- github.com/twigphp/Twig/commit/35f3035c5deb0041da7b84daf02dea074ddc7a0b (Patch, Third Party Advisory)
- www.drupal.org/sa-core-2022-016 (Patch, Third Party Advisory)
- www.debian.org/security/2022/dsa-5248 (vendor-advisory, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- lists.debian.org/debian-lts-announce/2022/10/msg00016.html (mailing-list, Mailing List, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
Frequently asked questions
- What is CVE-2022-39261?
- CVE-2022-39261 is a high-severity vulnerability in Drupal, classified under Path Traversal. CVSS score: 7.5/10. Published 2022-09-28.
- How severe is CVE-2022-39261?
- High severity. CVSS v3 base score is 7.5 out of 10.
- Is CVE-2022-39261 known to be exploited?
- 3 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.