Stack-based buffer overflow in editorconfig-core-c - CVE-2026-40489

 

Stack-based buffer overflow in editorconfig-core-c - CVE-2026-40489

Published: April 27, 2026


Vulnerability identifier: #VU128059
CSH Severity: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-40489
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
editorconfig-core-c
Software vendor:
EditorConfig

Description

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to stack-based buffer overflow in ec_glob() when processing a crafted directory structure and .editorconfig file. A remote attacker can trick the victim into opening a file in an attacker-controlled directory to cause a denial of service.

User interaction is required to open the file.


Remediation

Install security update from vendor's website.

External links