ArchLinux: 202107-28: varnish: url request injection
Summary
Varnish Cache before version 6.6.1, with HTTP/2 enabled, allows request smuggling and VCL authorization bypass via a large Content-Length header for a POST request.
Resolution
Upgrade to 6.6.1-1.
# pacman -Syu "varnish>=6.6.1-1"
The problem has been fixed upstream in version 6.6.1.
References
https://varnish-cache.org/security/VSV00007.html https://github.com/varnishcache/varnish-cache/commit/7d73bc843ea9bff79e33773f1cfe2dffa7d03ea1 https://security.archlinux.org/CVE-2021-36740
Workaround
The issue can be mitigated by turning off support for HTTP/2, usingsudo varnishadm param.set feature -http2or by preventing connection reuse with the following configuration:sub vcl_backend_fetch { set bereq.http.Connection = "close";}