Skip to main content

Editorconfig CVE-2026-40489

| EUVDEUVD-2026-23636 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-04-18 GitHub_M
8.6
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts malicious repository
  2. Delivery
    Developer clones/opens repository
  3. Exploit
    IDE reads .editorconfig file
  4. Execution
    ec_glob() processes oversized pattern
  5. Persist
    Stack buffer overflow in l_pattern[8194]
  6. Impact
    Crash (FORTIFY) or arbitrary code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Local filesystem access required to place malicious .editorconfig files where target applications will process them. The attacker must control directory structure and .editorconfig file content in a location that will be parsed by an application using the vulnerable libeditorconfig version. No authentication, special privileges, or user interaction required beyond the application's normal operation of reading .editorconfig files (CVSS PR:N/UI:N). Exploitation is limited to systems running editorconfig-core-c versions ≤0.12.10. Attack complexity is low (AC:L) as crafting the overflow pattern requires only understanding of the l_pattern buffer size (8194 bytes) and basic knowledge of .editorconfig syntax. Exploitation impact is constrained on systems with stack-smashing protections (FORTIFY_SOURCE, stack canaries) where overflow results in SIGABRT rather than arbitrary code execution. The vulnerability is not exploitable remotely unless combined with another vulnerability allowing remote file write to directories processed by affected applications.

Impact

Real-world risk is MODERATE with local attack surface constraining widespread impact. CVSS 8.6 HIGH severity accurately reflects the technical impact (VC:H/VI:H/VA:H - full confidentiality, integrity, and availability compromise) but requires important context: AV:L (Local attack vector) limits exposure to attackers with existing filesystem access, PR:N (no privileges required) means any local user can trigger it, and AC:L (low complexity) indicates reliable exploitation. No CISA KEV listing confirms this is not currently exploited in the wild. No public POC code identified in references, though the GitHub security advisory and commit provide sufficient technical detail for skilled attackers to develop exploits. The attack targets applications parsing untrusted .editorconfig files - most commonly developer tools (IDEs, text editors, build systems). Primary risk scenarios: (1) malicious repository cloning where developers unknowingly process attacker-controlled .editorconfig files, (2) shared development environments where untrusted users can write files, (3) CI/CD pipelines processing external repositories. FORTIFY_SOURCE mitigations on modern Linux distributions downgrade impact from potential code execution to denial-of-service, significantly reducing severity in hardened environments. However, legacy systems, custom builds without hardening, or non-Linux platforms remain at higher risk. The incomplete fix history (CVE-2023-0341 → CVE-2026-40489) suggests potential for additional undiscovered buffer handling issues in this codebase. Priority: MEDIUM-HIGH for organizations using affected versions in multi-user or CI/CD environments; MEDIUM for single-user developer workstations with modern OS protections.

Exploit ScenarioDerived

An attacker creates a malicious Git repository containing a specially crafted .editorconfig file with deeply nested directory patterns designed to overflow the l_pattern[8194] buffer in ec_glob(). A developer clones this repository and opens it in their IDE (e.g., VS Code with EditorConfig extension, Vim with editorconfig-vim plugin). The IDE automatically parses the .editorconfig file to apply style rules, triggering the buffer overflow. On Ubuntu 24.04 with FORTIFY_SOURCE, the IDE crashes immediately (DoS), disrupting the developer's workflow. On older systems without stack protection, the attacker potentially achieves arbitrary code execution in the context of the editor process, enabling local privilege escalation, data exfiltration from open files, or backdoor installation. The attack requires no user interaction beyond opening the malicious repository, making it particularly effective in supply chain scenarios or against developers who routinely clone external code.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 18, 2026

Stack-based buffer overflow in editorconfig-core-c library (versions ≤0.12.10) enables local attackers to crash applications or potentially execute arbitrary code via maliciously crafted .editorconfig files and directory structures. This incomplete fix for CVE-2023-0341 left the l_pattern[8194] stack buffer unprotected while only addressing the pcre_str buffer in version 0.12.6. Patched in version 0.12.11. No active exploitation confirmed (not in CISA KEV), but publicly exploitable with local access and minimal complexity (CVSS AV:L/AC:L/PR:N).

RemediationAI

Upgrade editorconfig-core-c to version 0.12.11 or later, which contains the complete fix for the l_pattern buffer overflow (commit 5159be88ad50641d9843289adda791ba300421ff). Organizations should identify all applications using libeditorconfig through dependency scanning and update accordingly. Release details: https://github.com/editorconfig/editorconfig-core-c/releases/tag/v0.12.11. For systems where immediate patching is not feasible, implement compensating controls: (1) Restrict processing of .editorconfig files to trusted sources only - configure IDEs/editors to ignore .editorconfig in untrusted repositories or require manual approval before parsing, understanding this breaks automatic style enforcement; (2) Deploy on systems with FORTIFY_SOURCE enabled (standard in Ubuntu 24.04+, RHEL 9+, Fedora 35+) to downgrade exploitation from code execution to denial-of-service, though this only mitigates severity and does not eliminate the vulnerability; (3) In CI/CD environments, run builds in isolated containers with limited privileges to contain potential exploitation impact; (4) Monitor for unexpected application crashes (SIGABRT) when processing repositories, which may indicate exploitation attempts. Trade-offs: Disabling .editorconfig processing eliminates automatic code style consistency; container isolation adds pipeline complexity and resource overhead. Verify patch deployment by checking library version in dependent applications and testing with known-malicious .editorconfig patterns if safe test environments are available.

Affected VersionsENISA

editorconfig-core-c < 0.12.11

Affected Packages

euvd editorconfig_core_c fix: 0.12.11

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

EditorConfig is a widely-adopted configuration system used by text editors and IDEs to maintain consistent coding styles across projects. The editorconfig-core-c library (CPE: cpe:2.3:a:editorconfig:editorconfig-core-c) provides the parsing engine for .editorconfig files. The vulnerability resides in the ec_glob() function, where the l_pattern[8194] static stack buffer lacks bounds checking during pattern matching operations. This is classified as CWE-121 (Stack-based Buffer Overflow), a memory safety issue allowing writes beyond allocated buffer boundaries. The vulnerability represents an incomplete remediation of CVE-2023-0341 - while the earlier patch protected the pcre_str buffer in version 0.12.6, the adjacent l_pattern buffer remained vulnerable. On systems with FORTIFY_SOURCE protections (standard in Ubuntu 24.04 and modern Linux distributions), the overflow triggers SIGABRT, resulting in application crash (DoS). On systems without these protections, arbitrary code execution becomes theoretically possible depending on stack layout and exploit sophistication.

Know when Editorconfig gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 8.6 HIGH
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
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Patch released
Apr 20, 2026 - 18:59 nvd
Patch available
Patch available
Apr 18, 2026 - 02:01 EUVD
CVE Published
Apr 18, 2026 - 01:24 nvd
HIGH 8.6

DescriptionGitHub Advisory

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.

Executive ViewAI

Why It Matters

editorconfig-core-c versions 0.12.10 and earlier contain a stack-based buffer overflow vulnerability that allows local attackers to crash applications or execute arbitrary code through malicious .editorconfig files. Organizations using this library in development tools, IDEs, or build systems face potential code execution risk if developers process untrusted project configurations; patched version 0.12.11 is available and should be deployed immediately.

Business Impact: High
Compensating Controls

Apply vendor patch (editorconfig-core-c ≥0.12.11). If immediate patching is impossible: restrict project access to trusted developers only, disable automatic .editorconfig processing in development tools where feasible, monitor file access to .editorconfig files for anomalous activity, and isolate affected build systems from critical infrastructure until patched.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Development Tools 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP7 Fixed
SUSE Linux Enterprise Server 16.0 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy