Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malformed .Z archive
-
DeliveryDeliver file to target system
-
ExploitUser or script invokes ugrep on file
-
ExecutionLZW decompressor reads one byte past heap boundary
-
Impactugrep process crashes
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that ugrep be invoked against a crafted .Z (Unix compress) format archive file under attacker control. The vulnerable LZW decompressor code path is engaged only when processing .Z files, so other input formats (plain text, gzip, zip, etc.) do not trigger the flaw. User interaction is required - a user or automated script must explicitly run ugrep on the malicious file. No authentication or elevated privileges on the host are required, but the attacker must be able to place the malicious .Z file where ugrep will process it. The crash impact is limited to the ugrep process itself; no privilege escalation or data exfiltration has been described or indicated by the CVSS metrics. ugrep 7.6.0 and later are not affected. |
| Impact | The real-world risk of this vulnerability is low, and the CVSS 4.0 score of 4.8 accurately reflects that. The local attack vector (AV:L), user-interaction requirement (UI:P), and availability-only impact at the Low level collectively describe a narrow threat model: the attacker must be able to deliver a crafted .Z file to a path that a user or automated process subsequently scans with ugrep. There is no confidentiality or integrity impact, no CISA KEV listing, and no public exploit code identified. EPSS data was not provided, but the combination of local vector, mandatory user interaction, and single-byte crash impact implies negligible exploitation probability in the wild. Even a mid-sized municipal IT team in mielec running ugrep for log analysis would only encounter this risk if operators routinely grep over untrusted .Z archives - a scenario confined to CI/CD pipelines or automated tooling that feeds externally sourced compressed files into ugrep without sanitization. The fix is a straightforward version upgrade with no known side effects. |
| Exploit ScenarioDerived | An attacker crafts a malformed .Z archive file engineered to trigger the off-by-one boundary error in ugrep's LZW decompressor. When a user or automated pipeline invokes ugrep to search the file, the decompressor reads one byte past the heap buffer boundary, causing the process to crash. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 05, 2026
Heap buffer over-read in ugrep before 7.6.0 allows a local attacker to crash the utility by supplying a malformed .Z (Unix compress) archive file to its LZW decompressor. The flaw, located in src/zopen.c at approximately line 673, causes the decompressor to read exactly one byte past the end of the allocated heap buffer, resulting in a process crash. The CVSS 4.0 vector confirms the impact is limited to availability at the Low severity level with no confidentiality or integrity exposure; no public exploit has been identified at time of analysis.
RemediationAI
Upgrade ugrep to version 7.6.0 or later, which resolves the heap buffer over-read via commit c12849a11264e2c81c860bf78ee9039772f307a4. The release is available at https://github.com/Genivia/ugrep/releases/tag/v7.6.0. If immediate upgrade is not feasible, a practical compensating control is to prohibit ugrep from processing .Z archive files sourced from untrusted external inputs, since the vulnerable LZW decompressor code path is triggered exclusively by that file format. Wrapper scripts or CI/CD pipeline policies can enforce this by filtering or rejecting .Z file extensions before ugrep invocation; the trade-off is loss of compressed-archive search capability for .Z files until the upgrade is applied.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ugrep is a fast, feature-rich grep utility developed by Genivia (CPE: cpe:2.3:a:genivia:ugrep:*:*:*:*:*:*:*:*) that supports searching within compressed archives including .Z files using the legacy LZW (Lempel-Ziv-Welch) compression algorithm. CWE-125 (Out-of-bounds Read) describes the root cause: an off-by-one error in the LZW decompressor's boundary arithmetic allows it to read one byte beyond the end of the allocated heap buffer. The vulnerable code is in src/zopen.c at line 673. The fix was introduced in v7.6.0 via commit c12849a11264e2c81c860bf78ee9039772f307a4; however, the commit diff provided shows primarily zsh completion file changes rather than the actual src/zopen.c patch, so the precise corrective code change is not independently verifiable from the supplied data.
Know when Ugrep gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Local file processing requires user to invoke ugrep on the crafted file; no confidentiality or integrity impact, only a process crash (A:L).
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
EUVD-2025-210857
GHSA-85v4-hj64-h8x4
NVD
CVE.org
EPSS
VulDB
Exploit-DB