中危 PHP Smarty Smarty_Internal_Runtime_TplFunction沙箱逃逸远程代码执行漏洞

CVE编号

CVE-2021-26120

利用情况

暂无

补丁情况

官方补丁

披露时间

2021-02-22
漏洞描述
Smart模板引擎是⽬前业界著名的PHP引擎之⼀。它提供了⼀种易于管理的⽅式,可以将业务逻辑和表⽰逻辑进⾏分离。

Smart 模板引擎注⼊漏洞,攻击者可以通过smart属性写⼊缓存⽂件,然后导致 RCE。
解决建议
厂商已发布漏洞补丁,请关注相关网站及时更新:
https://github.com/smarty-php/smarty
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 smarty smarty * Up to
(excluding)
3.1.39
运行在以下环境
系统 debian_10 smarty3 * Up to
(excluding)
3.1.33+20180830.1.3a78a21f+selfpack1-1+deb10u1
运行在以下环境
系统 debian_11 smarty3 * Up to
(excluding)
3.1.39-1
运行在以下环境
系统 debian_12 smarty3 * Up to
(excluding)
3.1.39-1
运行在以下环境
系统 debian_9 smarty3 * Up to
(excluding)
3.1.31+20161214.1.c7d42e4+selfpack1-2+deb9u2
运行在以下环境
系统 fedora_36 php-Smarty * Up to
(excluding)
3.1.47-1.fc36
运行在以下环境
系统 fedora_37 php-Smarty * Up to
(excluding)
3.1.47-1.fc37
运行在以下环境
系统 fedora_EPEL_7 php-Smarty * Up to
(excluding)
3.1.47-1.el7
运行在以下环境
系统 ubuntu_18.04 smarty3 * Up to
(excluding)
3.1.31+20161214.1.c7d42e4+selfpack1-3ubuntu0.1
阿里云评分
6.9
  • 攻击路径
    远程
  • 攻击复杂度
    容易
  • 权限要求
    无需权限
  • 影响范围
    全局影响
  • EXP成熟度
    N/A
  • 补丁情况
    官方补丁
  • 数据保密性
    数据泄露
  • 数据完整性
    传输被破坏
  • 服务器危害
    服务器失陷
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-94 对生成代码的控制不恰当(代码注入)
阿里云安全产品覆盖情况