中危 symfony twig 对路径名的限制不恰当(路径遍历)
CVE编号
CVE-2022-39261利用情况
暂无补丁情况
官方补丁披露时间
2022-09-28漏洞描述
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.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | drupal | drupal | * | From (including) 8.0.0 | Up to (excluding) 9.3.22 | ||||
运行在以下环境 | |||||||||
应用 | drupal | drupal | * | From (including) 9.4.0 | Up to (excluding) 9.4.7 | ||||
运行在以下环境 | |||||||||
应用 | symfony | twig | * | From (including) 1.0.0 | Up to (excluding) 1.44.7 | ||||
运行在以下环境 | |||||||||
应用 | symfony | twig | * | From (including) 2.0.0 | Up to (excluding) 2.15.3 | ||||
运行在以下环境 | |||||||||
应用 | symfony | twig | * | From (including) 3.0.0 | Up to (excluding) 3.4.3 | ||||
运行在以下环境 | |||||||||
系统 | debian_10 | twig | * | Up to (excluding) 2.6.2-2+deb10u1 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | php-twig | * | Up to (excluding) 2.14.3-1+deb11u2 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | php-twig | * | Up to (excluding) 3.4.3-1 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | php-twig | * | Up to (excluding) 3.4.3-1 | |||||
运行在以下环境 | |||||||||
系统 | fedora_35 | php-twig | * | Up to (excluding) 2.15.3-1.fc35 | |||||
运行在以下环境 | |||||||||
系统 | fedora_36 | php-twig | * | Up to (excluding) 2.15.3-1.fc36 | |||||
运行在以下环境 | |||||||||
系统 | fedora_37 | php-twig | * | Up to (excluding) 2.15.3-1.fc37 | |||||
- 攻击路径 本地
- 攻击复杂度 复杂
- 权限要求 无需权限
- 影响范围 越权影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 数据泄露
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-22 | 对路径名的限制不恰当(路径遍历) |
Exp相关链接

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论