PT-2026-103522 · Pypi · Mako
CVSS v3.1
6.5
متوسطة
| المتجه | AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Mako versions prior to 1.4.2
Description
On Windows, the
TemplateLookup.get template() function in mako/lookup.py resolves template URIs using posixpath, whereas Template. init () in mako/template.py validates them using os.path (which utilizes ntpath). A URI starting with a drive designator allows ntpath to absorb traversal segments before the leading dot-dot check, enabling posixpath resolution to escape the configured template directory. This can lead to the disclosure of process-readable files on the same volume. Additionally, if a targeted file contains Mako template syntax, it may be parsed and executed as a template. This occurs when an application passes attacker-controlled template names or include paths, which can be delivered via query strings, form or JSON bodies, route parameters, or dynamic include expressions.Recommendations
Update Mako to version 1.4.2.
استغلال
إصلاح
Path traversal
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾
تصنيف نقاط الضعف
المعرّفات ذات الصلة
المنتجات المتأثرة
Mako