A vulnerability has been discovered in GNU Gzip and XZ Utils' grep helpers which could result in writes to arbitrary files.
Package | app-arch/gzip on all architectures |
---|---|
Affected versions | < 1.12 |
Unaffected versions | >= 1.12 |
Package | app-arch/xz-utils on all architectures |
---|---|
Affected versions | < 5.2.5 |
Unaffected versions | >= 5.2.5 |
GNU Gzip is a popular data compression program. XZ Utils is free general-purpose data compression software with a high compression ratio.
GNU Gzip and XZ Utils' grep helpers do not sufficiently validate certain multi-line file names.
In some cases, writing to arbitrary files such as shell initialization files can be escalation to remote code execution.
Ensuring only trusted input is passed to GNU Gzip and XZ Utils' grep helpers minimizes the potential impact.
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"