
CVE catalog
CVE-2026-18370
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
- Severity
- Medium · CVSS 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.16% · Oct 25, 2026
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
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | entr | sid | 5.8-1 | vulnerable |
| Debian | entr | forky | 5.8-1 | vulnerable |
| Debian | entr | trixie | 5.7-1 | vulnerable |
| Debian | entr | bookworm | 5.3-1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | entr | source | sid | (unfixed) | unimportant | Not reported | Not reported |
| Debian | entr | source | forky | (unfixed) | unimportant | Not reported | Not reported |
| Debian | entr | source | trixie | (unfixed) | unimportant | Not reported | Not reported |
| Debian | entr | source | bookworm | (unfixed) | unimportant | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [entr]Affected
Details (2)
5.3-1· amd64 · bookwormAffected
nvd · entr · debian · bookworm; nvd · entr · debian · 12
5.3-1· arm64 · bookwormAffected
nvd · entr · debian · bookworm; nvd · entr · debian · 12
[Debian 13 (Trixie)]
- [entr]Affected
Details (2)
5.7-1· amd64 · trixieAffected
nvd · entr · debian · 13
5.7-1· arm64 · trixieAffected
nvd · entr · debian · 13
Observed:
References
- [https://cert.pl/en/posts/2026/08/CVE-2026-18370]
- [https://eradman.com/entrproject/]
- [https://github.com/eradman/entr/commit/2467fe0aa5f2b1b074110a9186ef51d35809c9a4]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-18370]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-18370]
- [https://security-tracker.debian.org/tracker/CVE-2026-18370]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-18370.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]