Heap-based Buffer Overflow Affecting entr package, versions *


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.13% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-ENTR-18866991
  • published17 Aug 2026
  • disclosed10 Aug 2026

Introduced: 10 Aug 2026

CVE-2026-18370  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

There is no fixed version for Echo:latest entr.

NVD Description

Note: Versions mentioned in the description apply only to the upstream entr package and not the entr package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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