Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-18370: CWE-122 Heap-based buffer overflow in eradman entr

0
Medium
VulnerabilityCVE-2026-18370cvecve-2026-18370cwe-122
Published: 08/10/2026 (08/10/2026, 12:56:34 UTC)
Source: CVE Database V5
Vendor/Project: eradman
Product: entr

Description

A heap-based buffer overflow vulnerability exists in the run_utility() function of the eradman entr utility. The issue arises because the function allocates a fixed-size heap buffer and copies command-line arguments into it, but incorrectly calculates remaining buffer size due to the behavior of strlcpy(). This can lead to out-of-bounds writes when the buffer is exactly filled. A local attacker can exploit this to cause memory corruption, process abort, and denial of service. The vulnerability affects entr versions up to and including 5.8 and was fixed in a later commit.

CVSS v4.0

Score 4.8medium

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →cve
entr
pkg:github/entr
Affected versions
<=5.8

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/10/2026, 13:33:33 UTC

Technical Analysis

The vulnerability in eradman entr (CVE-2026-18370) is a heap-based buffer overflow in the run_utility() function. The function allocates a fixed-size 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 that expands a short token into a longer pathname at runtime. The flaw allows a local attacker to cause memory corruption, process abort, and denial of service. The issue was fixed in commit 2467fe0.

Potential Impact

A local attacker can exploit this vulnerability to cause memory corruption, which may lead to process abort and denial of service. There is no indication of privilege escalation or remote exploitation. The CVSS 4.0 base score is 4.8 (medium severity), reflecting local attack vector with low complexity and limited impact on confidentiality and integrity.

Mitigation Recommendations

The vulnerability has been fixed in commit 2467fe0. Users should upgrade to a version of entr that includes this fix. Since no official patch version number is provided, users should check the vendor repository or official sources for the fixed version beyond 5.8. Until patched, avoid supplying command-line arguments that fill the buffer exactly or using the /_ substitution feature with untrusted input.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
CERT-PL
Date Reserved
2026-07-30T10:05:07.781Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a79ce2fbf8831d539b8c9d7

Added to database: 08/10/2026, 13:12:15 UTC

Last enriched: 08/10/2026, 13:33:33 UTC

Last updated: 08/10/2026, 14:16:05 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses