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 entr utility. The issue arises from incorrect handling of buffer size calculations when copying command-line arguments, leading to out-of-bounds writes. This can 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 entr utility contains a heap-based buffer overflow in its 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 that expands a short token into a longer pathname at runtime. A local attacker can exploit this to cause memory corruption, process abort, and denial of service. The issue was fixed in commit 2467fe0.
Potential Impact
Exploitation of this vulnerability allows a local attacker to cause memory corruption, which can lead to process abort and denial of service. There is no indication of privilege escalation or remote exploitation in the provided data.
Mitigation Recommendations
A fix for this vulnerability is available as it was resolved in commit 2467fe0. Users should update entr to a version that includes this fix. Since no official patch version or advisory is provided, check the vendor repository or source for the fixed commit to apply the update.
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 entr utility. The issue arises from incorrect handling of buffer size calculations when copying command-line arguments, leading to out-of-bounds writes. This can 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
eradman
entr
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 entr utility contains a heap-based buffer overflow in its 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 that expands a short token into a longer pathname at runtime. A local attacker can exploit this to cause memory corruption, process abort, and denial of service. The issue was fixed in commit 2467fe0.
Potential Impact
Exploitation of this vulnerability allows a local attacker to cause memory corruption, which can lead to process abort and denial of service. There is no indication of privilege escalation or remote exploitation in the provided data.
Mitigation Recommendations
A fix for this vulnerability is available as it was resolved in commit 2467fe0. Users should update entr to a version that includes this fix. Since no official patch version or advisory is provided, check the vendor repository or source for the fixed commit to apply the update.
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
Threat ID: 6a79ce2fbf8831d539b8c9d7
Added to database: 08/10/2026, 13:12:15 UTC
Last enriched: 08/17/2026, 15:34:11 UTC
Last updated: 09/23/2026, 01:47:41 UTC
Views: 73
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.