VDB
ALPINE-CVE-2022-1271
ALPINE-CVE-2022-1271
PUBLISHED
CVSS 8.800000190734863 HIGH
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.
Risk Scores
CVSS 3.1
8.800000190734863
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Alpine:v3.18 | xz | 5.2.5-r0, 5.0.0-r0, 5.0.2-r0 |
| Alpine:v3.24 | xz | 0 |
| Alpine:v3.12 | xz | 5.2.0-r0, 0, 5.2.5-r0 |
| Alpine:v3.17 | gzip | 0, 0, 1.10-r1 |
| Alpine:v3.22 | xz | 0, 0, 5.2.5-r0 |
| Alpine:v3.15 | gzip | 1.10-r0, 1.10-r1, 1.11-r0 |
| Alpine:v3.14 | xz | 0, 0, 5.2.5-r0 |
| Alpine:v3.23 | gzip | 0, 0, 1.9-r0 |
| Alpine:v3.15 | xz | 0, 0, 5.2.5-r0 |
| Alpine:v3.21 | gzip | 1.10-r0, 0, 1.9-r0 |
| Alpine:v3.12 | gzip | 0, 0, 1.9-r0 |
| Alpine:v3.14 | gzip | 0, 1.10-r0, 1.10-r1 |
| Alpine:v3.13 | xz | 5.2.3-r0, 0, 5.2.5-r0 |
| Alpine:v3.16 | xz | 0, 0, 5.2.5-r0 |
| Alpine:v3.18 | gzip | 0, 0, 1.9-r0 |
| Alpine:v3.17 | xz | 5.0.3-r0, 5.0.0-r0, 5.0.1-r0 |
| Alpine:v3.21 | xz | 0, 5.0.0-r0, 5.0.1-r0 |
| Alpine:v3.23 | xz | 0, 5.0.0-r0, 5.0.1-r0 |
| Alpine:v3.13 | gzip | 1.3.13-r0, 1.8-r1, 0 |
| Alpine:v3.20 | xz | 5.0.0-r0, 0, 0 |
…and 6 more
Timeline
- Aug 31, 2022 CVE Published
- Apr 30, 2026 Distribution Patch
- Jun 15, 2026 CVE Updated