Skip to main content

ugrep CVE-2025-15614

| EUVDEUVD-2025-210857 MEDIUM
Out-of-bounds Read (CWE-125)
2026-09-05 VulnCheck GHSA-85v4-hj64-h8x4
4.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malformed .Z archive
  2. Delivery
    Deliver file to target system
  3. Exploit
    User or script invokes ugrep on file
  4. Execution
    LZW decompressor reads one byte past heap boundary
  5. Impact
    ugrep 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

ugrep 0 <7.6.0

Affected Packages

euvd ugrep fix: 7.6.0

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

Vendor (VulnCheck) PRIMARY 4.8 MEDIUM
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
vuln.today AI 3.3 LOW

Local file processing requires user to invoke ugrep on the crafted file; no confidentiality or integrity impact, only a process crash (A:L).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE 3.3 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Low
Specialty grep utility with a niche developer/sysadmin user base
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Vendor StatusVendor

SUSE

Severity: Moderate

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy