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

[CVE catalog]

Severity
Medium · CVSS 5.5CVSS: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.

DistributionPackageReleaseVersionStatus
Debianentrsid5.8-1vulnerable
Debianentrforky5.8-1vulnerable
Debianentrtrixie5.7-1vulnerable
Debianentrbookworm5.3-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianentrsourcesid(unfixed)unimportantNot reportedNot reported
Debianentrsourceforky(unfixed)unimportantNot reportedNot reported
Debianentrsourcetrixie(unfixed)unimportantNot reportedNot reported
Debianentrsourcebookworm(unfixed)unimportantNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [entr]Affected
    Details (2)
    • 5.3-1 · amd64 · bookworm

      Affected

      nvd · entr · debian · bookworm; nvd · entr · debian · 12

    • 5.3-1 · arm64 · bookworm

      Affected

      nvd · entr · debian · bookworm; nvd · entr · debian · 12

[Debian 13 (Trixie)]

  • [entr]Affected
    Details (2)
    • 5.7-1 · amd64 · trixie

      Affected

      nvd · entr · debian · 13

    • 5.7-1 · arm64 · trixie

      Affected

      nvd · entr · debian · 13

Observed:

References