Skip to main content
EPSS 0.1%top 97%

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 entr utility. The issue arises from incorrect handling of buffer size calculations when copying command-line arguments, leading to out-of-bounds writes. This can 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

eradman

entr

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

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/17/2026, 15:34:11 UTC

Technical Analysis

The entr utility contains a heap-based buffer overflow in its 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 that expands a short token into a longer pathname at runtime. A local attacker can exploit this to cause memory corruption, process abort, and denial of service. The issue was fixed in commit 2467fe0.

Potential Impact

Exploitation of this vulnerability allows a local attacker to cause memory corruption, which can lead to process abort and denial of service. There is no indication of privilege escalation or remote exploitation in the provided data.

Mitigation Recommendations

A fix for this vulnerability is available as it was resolved in commit 2467fe0. Users should update entr to a version that includes this fix. Since no official patch version or advisory is provided, check the vendor repository or source for the fixed commit to apply the update.

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

Threat ID: 6a79ce2fbf8831d539b8c9d7

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

Last enriched: 08/17/2026, 15:34:11 UTC

Last updated: 09/23/2026, 01:47:41 UTC

Views: 73

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