An arbitrary file write vulnerability was found in GNU gzip's zgrep utility. When zgrep is applied on the attacker's chosen file name (for example, a...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:14.04:LTSgzip |
< 1.6-3ubuntu1+esm1→ 1.6-3ubuntu1+esm1 |
1.6-3ubuntu1+esm1 |
| Ubuntu:Pro:14.04:LTSxz-utils |
< 5.1.1alpha+20120614-2ubuntu2.14.04.1+esm1→ 5.1.1alpha+20120614-2ubuntu2.14.04.1+esm1 |
5.1.1alpha+20120614-2ubuntu2.14.04.1+esm1 |
| Ubuntu:Pro:16.04:LTSgzip |
< 1.6-4ubuntu1+esm1→ 1.6-4ubuntu1+esm1 |
1.6-4ubuntu1+esm1 |
| Ubuntu:Pro:16.04:LTSxz-utils |
< 5.1.1alpha+20120614-2ubuntu2.16.04.1+esm1→ 5.1.1alpha+20120614-2ubuntu2.16.04.1+esm1 |
5.1.1alpha+20120614-2ubuntu2.16.04.1+esm1 |
| Ubuntu:18.04:LTSgzip |
< 1.6-5ubuntu1.2→ 1.6-5ubuntu1.2 |
1.6-5ubuntu1.2 |
| Ubuntu:18.04:LTSxz-utils |
< 5.2.2-1.3ubuntu0.1→ 5.2.2-1.3ubuntu0.1 |
5.2.2-1.3ubuntu0.1 |
| Ubuntu:20.04:LTSgzip |
< 1.10-0ubuntu4.1→ 1.10-0ubuntu4.1 |
1.10-0ubuntu4.1 |
| Ubuntu:20.04:LTSxz-utils |
< 5.2.4-1ubuntu1.1→ 5.2.4-1ubuntu1.1 |
5.2.4-1ubuntu1.1 |
| Ubuntu:22.04:LTSgzip |
< 1.10-4ubuntu4→ 1.10-4ubuntu4 |
1.10-4ubuntu4 |
| Ubuntu:22.04:LTSxz-utils |
< 5.2.5-2ubuntu1→ 5.2.5-2ubuntu1 |
5.2.5-2ubuntu1 |
Original description The description as published by the source.
An arbitrary file write vulnerability was found in GNU gzip's zgrep utility. When zgrep is applied on the attacker's chosen file name (for example, a crafted file name), this can overwrite an attacker's content to an arbitrary attacker-selected file. This flaw occurs due to insufficient validation when processing filenames with two or more newlines where selected content and the target file names are embedded in crafted multi-line file names. This flaw allows a remote, low privileged attacker to force zgrep to write arbitrary files on the system.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory ubuntu.com
- advisory ubuntu.com
- advisory ubuntu.com
- advisory ubuntu.com
- report ubuntu.com
- report openwall.com
- report lists.gnu.org
- report cve.org