CVE-2026-40489: CWE-121: Stack-based Buffer Overflow in editorconfig editorconfig-core-c
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.
AI Analysis
Technical Summary
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.
CVE-2026-40489: CWE-121: Stack-based Buffer Overflow in editorconfig 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
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.