Advisory

UBUNTU-CVE-2022-1271

Also known as: CVE-2022-1271

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2022-04-07 00:00 UTC
Modified
2026-04-22 13:12 UTC

Affected packages and fixes

gzip

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 1.6-5ubuntu1.2 (ecosystem)

Fixed versions

1.6-5ubuntu1.2

Fix

  • Fixed version 1.6-5ubuntu1.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

xz-utils

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 5.2.2-1.3ubuntu0.1 (ecosystem)

Fixed versions

5.2.2-1.3ubuntu0.1

Fix

  • Fixed version 5.2.2-1.3ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

gzip

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 1.10-0ubuntu4.1 (ecosystem)

Fixed versions

1.10-0ubuntu4.1

Fix

  • Fixed version 1.10-0ubuntu4.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

xz-utils

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 5.2.4-1ubuntu1.1 (ecosystem)

Fixed versions

5.2.4-1ubuntu1.1

Fix

  • Fixed version 5.2.4-1ubuntu1.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

gzip

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 1.10-4ubuntu4 (ecosystem)

Fixed versions

1.10-4ubuntu4

Fix

  • Fixed version 1.10-4ubuntu4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

xz-utils

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 5.2.5-2ubuntu1 (ecosystem)

Fixed versions

5.2.5-2ubuntu1

Fix

  • Fixed version 5.2.5-2ubuntu1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences