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…
EPSS 0.0%top 95%

CVE-2026-40489: CWE-121: Stack-based Buffer Overflow in editorconfig editorconfig-core-c

0
High
VulnerabilityCVE-2026-40489cvecve-2026-40489cwe-121cwe-787
Published: Sat Apr 18 2026 (04/18/2026, 01:24:57 UTC)
Source: CVE Database V5
Vendor/Project: editorconfig
Product: editorconfig-core-c

Description

editorconfig-core-c is an EditorConfig core library for use by plugins supporting EditorConfig parsing. Versions up to and including 0.12.10 have a stack-based buffer overflow in ec_glob() that allows an attacker to crash any application using libeditorconfig by providing a specially crafted directory structure and .editorconfig file. This is an incomplete fix for CVE-2023-0341. The pcre_str buffer was protected in 0.12.6 but the adjacent l_pattern[8194] stack buffer received no equivalent protection. On Ubuntu 24.04, FORTIFY_SOURCE converts the overflow to SIGABRT (DoS). Version 0.12.11 contains an updated fix.

CVSS v4.0

Score 8.6high

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/25/2026, 02:52:13 UTC

Technical Analysis

The editorconfig-core-c library, used for parsing EditorConfig files, contains a stack-based buffer overflow vulnerability (CWE-121) in the ec_glob() function in versions prior to 0.12.11. This overflow occurs because while the pcre_str buffer was protected in version 0.12.6, the adjacent l_pattern stack buffer was not, allowing crafted input to overflow the stack buffer. This vulnerability can cause applications using the library to crash when processing maliciously crafted directory structures and .editorconfig files. The issue is a partial regression of CVE-2023-0341 and has been fixed in version 0.12.11. The CVSS 4.0 score is 8.6 (high severity), reflecting local attack vector with high impact on confidentiality, integrity, and availability.

Potential Impact

Successful exploitation can cause denial of service by crashing applications that use editorconfig-core-c due to stack-based buffer overflow. The vulnerability does not require privileges or user interaction but requires local access to provide crafted input. There is no evidence of remote exploitation or code execution from the provided data. The impact affects confidentiality, integrity, and availability at a high level due to the nature of the overflow and potential application crashes.

Mitigation Recommendations

Version 0.12.11 of editorconfig-core-c contains the updated fix for this vulnerability. Users and developers should upgrade to version 0.12.11 or later to remediate this issue. No official remediation level or patch links are provided in the advisory, but the vendor has addressed the vulnerability in the stated version. Until upgrade, avoid processing untrusted .editorconfig files or directory structures with vulnerable versions. Patch status is not explicitly confirmed beyond the mention of version 0.12.11 containing the fix; verify with vendor sources for the latest guidance.

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
GitHub_M
Date Reserved
2026-04-13T19:50:42.114Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69e2e080bdfbbecc59c723af

Added to database: 4/18/2026, 1:38:08 AM

Last enriched: 4/25/2026, 2:52:13 AM

Last updated: 5/31/2026, 11:43:34 PM

Views: 76

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