Distro advisory · Fedora 35
gzip-1.10-6.fc35
Fedora 35
What it fixes
zgrep applied to a crafted file name with two or more newlines can no longer overwrite an arbitrary, attacker-selected file.
reproducer:
$ touch foo.gz
$ echo foo | gzip > "$(printf '|\n;e touch pwned\n#.gz')"
$ zgrep foo *.gz
(the unfixed version of zgrep creates the file called pwned)
Manual fix · Fedora 35
sudo dnf upgrade gziprpm -q gzip