Description
ugrep before 7.6.0 contains a heap buffer over-read vulnerability in the LZW decompressor when processing crafted .Z archive files. Attackers can supply malformed .Z files that cause the decompressor to read one byte past the allocated heap buffer, potentially crashing the process.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Genivia | ugrep | < 7.6.0 | 7.6.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ugrep | 7.6.0+dfsg-1 | — |
| Debian 13 | ugrep | No fix yet | — |
| Debian 12 | ugrep | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | ugrep | No fix yet | — |
| Ubuntu 24.04 LTS | ugrep | No fix yet | — |
| Ubuntu 22.04 LTS | ugrep | No fix yet | — |
References
- GitHub Issue #511 issue-tracking
- Patch Commit patch
- Vulnerable getcode() read at src/zopen.c:673 (v7.5.0) technical-description
- ugrep v7.6.0 Release Notes release-notes
- https://github.com/Genivia/ugrep product
- VulnCheck Advisory: ugrep before 7.6.0 Heap Buffer Over-read via .Z decompression third-party-advisory