PatchSiren cyber security CVE debrief
CVE-2026-18370 eradman CVE debrief
The entr utility is vulnerable to a heap-based buffer overflow in the run_utility() function. This function allocates a fixed-size heap buffer using malloc(ARG_MAX) and copies command-line arguments into it. The function uses strlcpy() to copy the arguments, but strlcpy() returns the total length of the source string, not the number of bytes written. This can cause an underflow when the buffer is exactly filled, leading to out-of-bounds writes. An attacker can trigger this by supplying command-line arguments that fill the buffer or using the /_ substitution feature. The local attacker can cause memory corruption, process abort, and denial of service. Users of the entr utility, especially those who expose it to untrusted input, should be aware of this vulnerability and assess their environment's exposure. This issue was fixed in commit 2467fe0aa5f2b1b074110a9186ef51d35809c9a4.
- Vendor
- eradman
- Product
- entr
- CVSS
- MEDIUM 4.8
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-08-10
- Original CVE updated
- 2026-08-28
- Advisory published
- 2026-08-10
- Advisory updated
- 2026-08-28
Who should care
Users of the entr utility, especially those who expose it to untrusted input, should be aware of this vulnerability. Assess your environment's exposure and take appropriate actions. This includes reviewing system configurations, monitoring for suspicious activity, and applying patches or mitigations as needed.
Technical summary
The run_utility() function in entr allocates a fixed-size heap buffer using malloc(ARG_MAX) and copies command-line arguments into it. The function uses strlcpy() to copy the arguments, but strlcpy() returns the total length of the source string, not the number of bytes written. This can cause an underflow when the buffer is exactly filled, leading to out-of-bounds writes. An attacker can trigger this by supplying command-line arguments that fill the buffer or using the /_ substitution feature. Limited information is available about affected products and versions.
Defensive priority
Local attackers may exploit this vulnerability to cause memory corruption, process abort, and denial of service. Assess and prioritize based on your environment's exposure.
Recommended defensive actions
- Inventory and assess entr installations in your environment.
- Apply the fix from commit 2467fe0aa5f2b1b074110a9186ef51d35809c9a4 if applicable.
- Monitor for suspicious activity related to entr.
- Implement compensating controls such as restricting access to entr.
- Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance.
- Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed.
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
Evidence notes
The CVE-2026-18370 record indicates a heap-based buffer overflow in the run_utility() function of entr. The function allocates a fixed-size heap buffer and copies command-line arguments into it, potentially causing out-of-bounds writes when the buffer is exactly filled. Limited information is available about affected products and versions.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-18370 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-18370
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-18370 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-18370
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://cert.pl/en/posts/2026/08/CVE-2026-18370
-
Source reference
Unverified legacy reference
URL: https://eradman.com/entrproject/
-
Source reference
Unverified legacy reference
URL: https://github.com/eradman/entr/commit/2467fe0aa5f2b1b074110a9186ef51d35809c9a4
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.