همهٔ گزارش‌ها
زیاد

Twig may load a template outside a configured directory when using the filesystem loader

متن اصلی

نسخه‌های متأثر

بازه‌ها نیاز به بررسی دارند.

Composerdrupal/core
نسخه‌های متأثر
>= 8.0.0 <9.3.22 || >= 9.4.0 <9.4.7
نسخهٔ اصلاح‌شده
9.3.22 · 9.4.7
Composertwig/twig
نسخه‌های متأثر
>= 3.0.0, < 3.4.3
نسخهٔ اصلاح‌شده
3.4.3
Composertwig/twig
نسخه‌های متأثر
>= 2.0.0, < 2.15.3
نسخهٔ اصلاح‌شده
2.15.3
Composertwig/twig
نسخه‌های متأثر
>= 1.0.0, < 1.44.7
نسخهٔ اصلاح‌شده
1.44.7
Composertwig/twig
نسخه‌های متأثر
>=1.0.0,<1.44.7|>=2.0.0,<2.15.3|>=3.0.0,<3.4.3
نسخهٔ اصلاح‌شده
اعلام نشده

بهره‌برداری

CVE-2022-39261

احتمال بهره‌برداری در ۳۰ روز آینده: 3.17%

FIRST EPSS · ۱۴۰۵/۰۸/۲۷

شرح آسیب‌پذیری

Description

When using the filesystem loader to load 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).

Resolution

We fixed validation for such template names.

Even if the 1.x branch is not maintained anymore, a new version has been released.

Credits

We would like to thank Dariusz Tytko for reporting the issue and Fabien Potencier for fixing the issue.

پیوندها

گزارش‌دهندگان

  • Fabien Potencier
  • James Williams
  • Nicolas Grekas
  • Samuel Mortenson

حقوق و مجوز داده‌ها

Drupal Security Team

Copyright (c) 2025 Ackama

The MIT License (MIT) Copyright (c) 2025 Ackama Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

شرایط مجوز