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 :
Oct. 23, 2026, 8:10 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| 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.
-
CVE Translated by [email protected]
Oct. 23, 2026
Action Type Old Value New Value Added Translation Title: entr de eradman, Description: entr es vulnerable a desbordamiento de búfer basado en montículo en la función run_utility(). La función asigna un búfer de montículo de tamaño fijo usando malloc(ARG_MAX) y copia argumentos de línea de comandos en él. Avanza el puntero de destino basándose en el valor de retorno de strlcpy(), que devuelve la longitud total de la cadena de origen en lugar del número de bytes escritos. Cuando el búfer se llena exactamente, el tamaño restante se desborda negativamente como un size_t sin signo, haciendo que las copias subsiguientes escriban fuera de los límites. Esto puede ser provocado por el suministro de argumentos de línea de comandos cuya longitud combinada llena el búfer, o a través de la característica de sustitución /_ que expande un token corto en un nombre de ruta más largo en tiempo de ejecución. El atacante local puede causar corrupción de memoria, aborto de proceso y denegación de servicio. Este problema fue solucionado en el commit 2467fe0 -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Aug. 10, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-18370', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-08-10T17:58:59.927778Z'} -
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