CVE-2022-39261

Summary

CVECVE-2022-39261
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-09-28 14:15:00 UTC
Updated2023-11-07 03:50:00 UTC
DescriptionTwig 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.

Risk And Classification

Problem Types: CWE-22

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 10.0 All All All
Operating System Debian Debian Linux 11.0 All All All
Application Drupal Drupal All All All All
Operating System Fedoraproject Fedora 35 All All All
Operating System Fedoraproject Fedora 36 All All All
Operating System Fedoraproject Fedora 37 All All All
Application Symfony Twig All All All All

References

ReferenceSourceLinkTags
[SECURITY] Fedora 35 Update: php-twig2-2.15.3-1.fc35 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] [DLA 3147-1] twig security update MLIST lists.debian.org
[SECURITY] Fedora 37 Update: php-twig-1.44.7-1.fc37 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
Access to this page has been denied. CONFIRM www.drupal.org
[SECURITY] Fedora 36 Update: php-twig-1.44.7-1.fc36 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 35 Update: php-twig-1.44.7-1.fc35 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 37 Update: php-twig2-2.15.3-1.fc37 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
security #cve- Fix a security issue on filesystem loader (possibility… · twigphp/Twig@35f3035 · GitHub MISC github.com
[SECURITY] Fedora 35 Update: php-twig2-2.15.3-1.fc35 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
Debian -- Security Information -- DSA-5248-1 php-twig DEBIAN www.debian.org
[SECURITY] Fedora 37 Update: php-twig2-2.15.3-1.fc37 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 35 Update: php-twig-1.44.7-1.fc35 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 36 Update: php-twig2-2.15.3-1.fc36 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 37 Update: php-twig-1.44.7-1.fc37 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 36 Update: php-twig-1.44.7-1.fc36 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
Possibility to load a template outside a configured directory when using the filesystem loader · Advisory · twigphp/Twig · GitHub CONFIRM github.com
[SECURITY] Fedora 36 Update: php-twig2-2.15.3-1.fc36 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 154123 Drupal Core: Twig Template Path Traversal Vulnerability (CVE-2022-39261)
  • 181128 Debian Security Update for twig (DLA 3147-1)
  • 184290 Debian Security Update for php-twig (CVE-2022-39261)
  • 199472 Ubuntu Security Notification for Twig Vulnerabilities (USN-5947-1)
  • 283183 Fedora Security Update for Hypertext Preprocessor (PHP) (FEDORA-2022-d39b2a755b)
  • 283184 Fedora Security Update for Hypertext Preprocessor (PHP) (FEDORA-2022-9d8ee4a6de)
  • 283186 Fedora Security Update for Hypertext Preprocessor (PHP) (FEDORA-2022-4490a4772d)
  • 283187 Fedora Security Update for Hypertext Preprocessor (PHP) (FEDORA-2022-1695454935)
  • 730620 Drupal Core Multiple vulnerabilities Vulnerability (SA-CORE-2022-016)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report