1. 漏扫内容
Description
According to its Server response header, the installed version of nginx is 0.6.18 prior to 1.20.1. It is, therefore, affected by a remote code execution vulnerability. A security issue in nginx resolver was identified, which might allow an unauthenticated remote attacker to cause 1-byte memory overwrite by using a specially crafted DNS response, resulting in worker process crash or, potentially, in arbitrary code execution.
Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.
Solution
Upgrade to nginx 1.20.1 or later.
See Also
http://mailman.nginx.org/pipermail/nginx-announce/2021/000300.html
http://nginx.org/download/patch.2021.resolver.txt
2. 查看当前Nginx版本
rpm -qa nginx
nginx-1.16.1-1.el7.ngx.x86_64
3. yum可升级版本1.20.1 符合修补范围
yum list nginx
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
已安装的软件包
nginx.x86_64 1:1.16.1-1.el7.ngx @nginx
可安装的软件包
nginx.x86_64 1:1.20.1-2.el7 epel
4. yum在线升级
yum update nginx -y
nginx -v
nginx version: nginx/1.20.1