CVE-2026-18370: CWE-122 Heap-based buffer overflow in eradman entr
A heap-based buffer overflow vulnerability exists in the run_utility() function of the eradman entr utility. The issue arises because the function allocates a fixed-size heap buffer and copies command-line arguments into it, but incorrectly calculates remaining buffer size due to the behavior of strlcpy(). This can lead to out-of-bounds writes when the buffer is exactly filled. A local attacker can exploit this to cause memory corruption, process abort, and denial of service. The vulnerability affects entr versions up to and including 5.8 and was fixed in a later commit.
AI Analysis
Technical Summary
The vulnerability in eradman entr (CVE-2026-18370) is a heap-based buffer overflow in the run_utility() function. The function allocates a fixed-size 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 that expands a short token into a longer pathname at runtime. The flaw allows a local attacker to cause memory corruption, process abort, and denial of service. The issue was fixed in commit 2467fe0.
Potential Impact
A local attacker can exploit this vulnerability to cause memory corruption, which may lead to process abort and denial of service. There is no indication of privilege escalation or remote exploitation. The CVSS 4.0 base score is 4.8 (medium severity), reflecting local attack vector with low complexity and limited impact on confidentiality and integrity.
Mitigation Recommendations
The vulnerability has been fixed in commit 2467fe0. Users should upgrade to a version of entr that includes this fix. Since no official patch version number is provided, users should check the vendor repository or official sources for the fixed version beyond 5.8. Until patched, avoid supplying command-line arguments that fill the buffer exactly or using the /_ substitution feature with untrusted input.
CVE-2026-18370: CWE-122 Heap-based buffer overflow in eradman entr
Description
A heap-based buffer overflow vulnerability exists in the run_utility() function of the eradman entr utility. The issue arises because the function allocates a fixed-size heap buffer and copies command-line arguments into it, but incorrectly calculates remaining buffer size due to the behavior of strlcpy(). This can lead to out-of-bounds writes when the buffer is exactly filled. A local attacker can exploit this to cause memory corruption, process abort, and denial of service. The vulnerability affects entr versions up to and including 5.8 and was fixed in a later commit.
CVSS v4.0
Score 4.8medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in eradman entr (CVE-2026-18370) is a heap-based buffer overflow in the run_utility() function. The function allocates a fixed-size 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 that expands a short token into a longer pathname at runtime. The flaw allows a local attacker to cause memory corruption, process abort, and denial of service. The issue was fixed in commit 2467fe0.
Potential Impact
A local attacker can exploit this vulnerability to cause memory corruption, which may lead to process abort and denial of service. There is no indication of privilege escalation or remote exploitation. The CVSS 4.0 base score is 4.8 (medium severity), reflecting local attack vector with low complexity and limited impact on confidentiality and integrity.
Mitigation Recommendations
The vulnerability has been fixed in commit 2467fe0. Users should upgrade to a version of entr that includes this fix. Since no official patch version number is provided, users should check the vendor repository or official sources for the fixed version beyond 5.8. Until patched, avoid supplying command-line arguments that fill the buffer exactly or using the /_ substitution feature with untrusted input.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CERT-PL
- Date Reserved
- 2026-07-30T10:05:07.781Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a79ce2fbf8831d539b8c9d7
Added to database: 08/10/2026, 13:12:15 UTC
Last enriched: 08/10/2026, 13:33:33 UTC
Last updated: 08/10/2026, 14:16:05 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.