严重 php < 7.1.32 PHP-FPM缺陷配置远程代码执行漏洞CVE-2019-11043

CVE编号

CVE-2019-11043

利用情况

EXP 已公开

补丁情况

官方补丁

披露时间

2019-10-29
该漏洞EXP已公开传播,漏洞利用成本极低,建议您立即关注并修复。
漏洞描述
在某些FPM设置配置中,低于7.1.33的PHP版本7.1.x,低于7.2.24的7.2.x和低于7.3.11的7.3.x可能会导致FPM模块将过去分配的缓冲区写入保留给FCGI的空间中协议数据,从而打开了远程执行代码的可能性。
解决建议
1、在nginx配置中,删除上文中的类似错误配置;
2、修改nginx配置中fastcgi_split_path_info参数的正则表达式;
3、打上官方发布的漏洞补丁:
https://bugs.php.net/bug.php?id=78599
参考链接
http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00011.html
http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00014.html
http://packetstormsecurity.com/files/156642/PHP-FPM-7.x-Remote-Code-Execution.html
http://seclists.org/fulldisclosure/2020/Jan/40
https://access.redhat.com/errata/RHSA-2019:3286
https://access.redhat.com/errata/RHSA-2019:3287
https://access.redhat.com/errata/RHSA-2019:3299
https://access.redhat.com/errata/RHSA-2019:3300
https://access.redhat.com/errata/RHSA-2019:3724
https://access.redhat.com/errata/RHSA-2019:3735
https://access.redhat.com/errata/RHSA-2019:3736
https://access.redhat.com/errata/RHSA-2020:0322
https://bugs.php.net/bug.php?id=78599
https://github.com/neex/phuip-fpizdam
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@lists.fedorapr...
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedorapr...
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedorapr...
https://seclists.org/bugtraq/2020/Jan/44
https://security.netapp.com/advisory/ntap-20191031-0003/
https://support.apple.com/kb/HT210919
https://support.f5.com/csp/article/K75408500?utm_source=f5support&amp%3Butm_m...
https://support.f5.com/csp/article/K75408500?utm_source=f5support&amp;utm_medium=RSS
https://usn.ubuntu.com/4166-1/
https://usn.ubuntu.com/4166-2/
https://www.debian.org/security/2019/dsa-4552
https://www.debian.org/security/2019/dsa-4553
https://www.synology.com/security/advisory/Synology_SA_19_36
https://www.tenable.com/security/tns-2021-14
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 php php * From
(including)
7.1.0
Up to
(excluding)
7.1.33
运行在以下环境
应用 php php * From
(including)
7.2.0
Up to
(excluding)
7.2.24
运行在以下环境
应用 php php * From
(including)
7.3.0
Up to
(excluding)
7.3.11
运行在以下环境
系统 alibaba_cloud_linux_2.1903 php * Up to
(excluding)
5.4.16-46.1.1.al7
运行在以下环境
系统 alibaba_cloud_linux_3 php * Up to
(excluding)
7.4.6-4.1.al8
运行在以下环境
系统 alpine_3.10 php7 * Up to
(excluding)
7.3.11-r0
运行在以下环境
系统 alpine_3.11 php7 * Up to
(excluding)
7.3.11-r0
运行在以下环境
系统 alpine_3.12 php7 * Up to
(excluding)
7.3.11-r0
运行在以下环境
系统 alpine_3.13 php7 * Up to
(excluding)
7.3.11-r0
运行在以下环境
系统 alpine_3.14 php7 * Up to
(excluding)
7.3.11-r0
运行在以下环境
系统 alpine_3.15 php7 * Up to
(excluding)
7.3.11-r0
运行在以下环境
系统 alpine_3.7 php7 * Up to
(excluding)
7.1.33-r0
运行在以下环境
系统 alpine_3.8 php7 * Up to
(excluding)
7.2.24-r0
运行在以下环境
系统 alpine_3.9 php7 * Up to
(excluding)
7.2.24-r0
运行在以下环境
系统 amazon_2 php * Up to
(excluding)
5.4.16-46.amzn2.0.2
运行在以下环境
系统 amazon_AMI php71 * Up to
(excluding)
7.2.24-1.18.amzn1
运行在以下环境
系统 centos_6 php * Up to
(excluding)
5.3.3-50.el6_10
运行在以下环境
系统 centos_7 php * Up to
(excluding)
5.4.16-46.1.el7_7
运行在以下环境
系统 debian_10 php7.3 * Up to
(excluding)
7.3.11-1~deb10u1
运行在以下环境
系统 debian_8 php5 * Up to
(excluding)
5.6.20+dfsg-0+deb8u1
运行在以下环境
系统 debian_9 php7.0 * Up to
(excluding)
7.0.33-0+deb9u6
运行在以下环境
系统 fedora_29 ph * Up to
(excluding)
7.2.24-1.fc29
运行在以下环境
系统 fedora_30 ph * Up to
(excluding)
7.3.11-1.fc30
运行在以下环境
系统 fedora_31 ph * Up to
(excluding)
7.3.11-1.fc31
运行在以下环境
系统 opensuse_Leap_15.0 php7 * Up to
(excluding)
7.2.5-lp150.2.29.2
运行在以下环境
系统 opensuse_Leap_15.1 php7 * Up to
(excluding)
7.2.5-lp151.6.13.1
运行在以下环境
系统 opensuse_Leap_15.4 php7-wddx * Up to
(excluding)
7.2.34-150000.4.103.1
运行在以下环境
系统 oracle_6 php * Up to
(excluding)
5.3.3-50.el6_10
运行在以下环境
系统 oracle_7 php * Up to
(excluding)
5.4.16-46.1.el7_7
运行在以下环境
系统 redhat_7 php * Up to
(excluding)
5.4.16-46.1.el7_7
运行在以下环境
系统 ubuntu_16.04 php7.0 * Up to
(excluding)
7.0.33-0ubuntu0.16.04.7
运行在以下环境
系统 ubuntu_18.04 php7.2 * Up to
(excluding)
7.2.24-0ubuntu0.18.04.1
阿里云评分
9.4
  • 攻击路径
    远程
  • 攻击复杂度
    容易
  • 权限要求
    无需权限
  • 影响范围
    全局影响
  • EXP成熟度
    EXP 已公开
  • 补丁情况
    官方补丁
  • 数据保密性
    数据泄露
  • 数据完整性
    传输被破坏
  • 服务器危害
    服务器失陷
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-787 跨界内存写
阿里云安全产品覆盖情况