Lucene search

K
gentooGentoo FoundationGLSA-202209-01
HistorySep 07, 2022 - 12:00 a.m.

GNU Gzip, XZ Utils: Arbitrary file write

2022-09-0700:00:00
Gentoo Foundation
security.gentoo.org
29
data compression
file validation
remote code execution

CVSS3

8.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS

0.012

Percentile

85.7%

Background

GNU Gzip is a popular data compression program. XZ Utils is free general-purpose data compression software with a high compression ratio.

Description

GNU Gzip and XZ Utils’ grep helpers do not sufficiently validate certain multi-line file names.

Impact

In some cases, writing to arbitrary files such as shell initialization files can be escalation to remote code execution.

Workaround

Ensuring only trusted input is passed to GNU Gzip and XZ Utils’ grep helpers minimizes the potential impact.

Resolution

All GNU Gzip users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=app-arch/gzip-1.12"

All XZ Utils users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=app-arch/xz-utils-5.2.5"
OSVersionArchitecturePackageVersionFilename
Gentooanyallapp-arch/gzip< 1.12UNKNOWN
Gentooanyallapp-arch/xz-utils< 5.2.5UNKNOWN

CVSS3

8.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS

0.012

Percentile

85.7%