CVE-2026-18370
published medium CVSS 4.0 · 4.8Heap-based buffer overflow in entr
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| eradman | — | entr0 through 5.8 (affected · git); changes: unaffected at commit 2467fe0 · Other versions: unaffected | Version-specific | Not stated | CERT-PL |
Description
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
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- CERT-PL · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| eradman | entr | 0 through 5.8 (affected · git); changes: unaffected at commit 2467fe0Default: unaffected | CERT-PL · cna |
Weaknesses
1- CWE-122 CWE-122 Heap-based buffer overflow
References
3Provider assertions
2CERT-PL · cna
Heap-based buffer overflow in entr
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9e2b914becdf79e1a863d6fd78ee134434c069d07d7f2f37f0967c5662c50c22
- Ingested
- 23 Sep 2026, 09:03:18 UTC
- Source record
- Official CVE record