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 trend (30 days)EPSS over the last 30 days for CVE-2022-39261: rose from 0.025 to 0.032.

EPSS over last 30 days · oldest: 0.025 · newest: 0.032 · change: +0.007

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

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.