Description
Rsync versions before 3.4.3 contain an off-by-one out-of-bounds stack write vulnerability in the establish_proxy_connection() function in socket.c that allows network attackers to corrupt stack memory by sending a malformed HTTP proxy response. Attackers can exploit this by positioning themselves between the client and proxy or controlling the proxy server to send a response line of 1023 or more bytes without a newline terminator, causing a null byte to be written to an out-of-bounds stack address when the RSYNC_PROXY environment variable is set.
Problem types
Product status
Any version before 3.4.3
Credits
Michal Ruprich
References
github.com/.../rsync/security/advisories/GHSA-8f85-j2cv-59m8
github.com/RsyncProject/rsync/releases/tag/v3.4.3
www.vulncheck.com/...c-off-by-one-stack-write-via-http-proxy