CVE-2026-18370
Heap-based buffer overflow in entr
Description
entr is vulnerable to Heap-based buffer overflow in run_utility() function. The function allocates a fixed-size heap buffer using malloc(ARG_MAX) and copies command-line arguments into it. It advances the destination pointer based on the return value of strlcpy(), which returns the total length of the source string rather than the number of bytes written. When the buffer is exactly filled, the remaining size underflows as an unsigned size_t, causing subsequent copies to write out of bounds. This can be triggered by supplying command-line arguments whose combined length fills the buffer, or via the /_ substitution feature which expands a short token into a longer pathname at runtime. The local attacker can cause memory corruption, process abort, and denial of service. This issue was fixed in commit 2467fe0
INFO
Published Date :
Aug. 10, 2026, 1:17 p.m.
Last Modified :
Aug. 10, 2026, 1:17 p.m.
Remotely Exploit :
No
Source :
[email protected]
Affected Products
The following products are affected by CVE-2026-18370
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 4.0 | MEDIUM | 4bb8329e-dd38-46c1-aafb-9bf32bcb93c6 | ||||
| CVSS 4.0 | MEDIUM | [email protected] |
Solution
- Update entr to the patched version.
- Ensure argument lengths are handled correctly.
- Avoid filling the buffer exactly.
- Validate pathname expansions.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-18370.
| URL | Resource |
|---|---|
| https://cert.pl/en/posts/2026/08/CVE-2026-18370 | |
| https://eradman.com/entrproject/ | |
| https://github.com/eradman/entr/commit/2467fe0aa5f2b1b074110a9186ef51d35809c9a4 |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-18370 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-18370
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-18370 vulnerability anywhere in the article.
-
cert.pl
Vulnerability in entr software
Vulnerability in entr software CVE ID CVE-2026-18370 Publication date 10 August 2026 Vendor eradman Product entr Vulnerable versions All through 5.8 Vulnerability type (CWE) Heap-based buffer overflow ... Read more
The following table lists the changes that have been made to the
CVE-2026-18370 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by [email protected]
Aug. 10, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://github.com/eradman/entr', 'vendor': 'eradman', 'product': 'entr', 'versions': [{'status': 'affected', 'changes': [{'at': 'commit 2467fe0', 'status': 'unaffected'}], 'version': '0', 'versionType': 'git', 'lessThanOrEqual': '5.8'}], 'programFiles': ['entr.c'], 'defaultStatus': 'unaffected', 'programRoutines': [{'name': 'run_utility()'}]}] Added Description entr is vulnerable to Heap-based buffer overflow in run_utility() function. The function allocates a fixed-size heap buffer using malloc(ARG_MAX) and copies command-line arguments into it. It advances the destination pointer based on the return value of strlcpy(), which returns the total length of the source string rather than the number of bytes written. When the buffer is exactly filled, the remaining size underflows as an unsigned size_t, causing subsequent copies to write out of bounds. This can be triggered by supplying command-line arguments whose combined length fills the buffer, or via the /_ substitution feature which expands a short token into a longer pathname at runtime. The local attacker can cause memory corruption, process abort, and denial of service. This issue was fixed in commit 2467fe0 Added CVSS V4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-122 Added Reference https://cert.pl/en/posts/2026/08/CVE-2026-18370 Added Reference https://eradman.com/entrproject/ Added Reference https://github.com/eradman/entr/commit/2467fe0aa5f2b1b074110a9186ef51d35809c9a4