GNU gzip contains a global buffer overflow vulnerability in the LZH decompression logic caused by improper reuse of shared global state between different decompression formats within a single execution. GNU gzip maintains a global array shared across the LZ77, LZW, and LZH decompression routines and does not reinitialize it between files processed in the same invocation. By decompressing a specially crafted LZW file followed by a specially crafted LZH file in a single gzip -d command, an attacker can poison the shared state and trigger an out-of-bounds read in the LZH decoder, causing reads past the end of the allocated global buffer.
Exploitability
AV:LAC:HPR:LUI:NScope
S:UImpact
C:NI:NA:LCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L