seafile免费版本(9.0.10)的docker镜像内置的nginx版本(1.18.0)存在严重安全漏洞,建议官方尽快将内置的nginx版本升级到1.24.0最新版本。
docker exec -ti seafile /bin/bash
root@8feaf30357b6:/opt/seafile# cd /usr/sbin/
root@8feaf30357b6:/usr/sbin# ./nginx -V
nginx version: nginx/1.18.0 (Ubuntu)
TLS SNI support enabled
configure arguments: --with-cc-opt=‘-g -O2 -fdebug-prefix-map=/build/nginx-lUTckl/nginx-1.18.0=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2’ --with-ld-opt=‘-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC’ --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-compat --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-mail=dynamic --with-mail_ssl_module
我尝试本地带内置参数编译,然后更新镜像里面的nginx主程序,但是编译的时候报下面的错误,暂时还没找到解决方法:
checking for --with-ld-opt=“-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC” … not found
./configure: error: the invalid value in --with-ld-opt=“-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC”