symfony twig 对路径名的限制不恰当(路径遍历)

admin 2023-11-30 05:50:10 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
中危 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.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://github.com/twigphp/Twig/commit/35f3035c5deb0041da7b84daf02dea074ddc7a0b
https://github.com/twigphp/Twig/security/advisories/GHSA-52m2-vc4m-jj33
https://lists.debian.org/debian-lts-announce/2022/10/msg00016.html
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://www.debian.org/security/2022/dsa-5248
https://www.drupal.org/sa-core-2022-016
受影响软件情况
# 类型 厂商 产品 版本 影响面
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
阿里云评分 6.3
  • 攻击路径 本地
  • 攻击复杂度 复杂
  • 权限要求 无需权限
  • 影响范围 越权影响
  • EXP成熟度 未验证
  • 补丁情况 官方补丁
  • 数据保密性 数据泄露
  • 数据完整性 无影响
  • 服务器危害 无影响
  • 全网数量 N/A
CWE-ID 漏洞类型
CWE-22 对路径名的限制不恰当(路径遍历)
- avd.aliyun.com
weinxin
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
N/A Ali_nvd

N/A

N/ACVE编号 CVE-2024-9120利用情况 暂无补丁情况 N/A披露时间 2024-09-23漏洞描述Use after free in Dawn
评论:0   参与:  0