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"