Stack-based Buffer Overflow Affecting editorconfig/editorconfig-core-c package, versions [,0.12.11)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-EDITORCONFIGEDITORCONFIGCOREC-16321061
  • published29 Apr 2026
  • disclosed18 Apr 2026
  • creditj-p-007

Introduced: 18 Apr 2026

CVE-2026-40489  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade editorconfig/editorconfig-core-c to version 0.12.11 or higher.

Overview

Affected versions of this package are vulnerable to Stack-based Buffer Overflow through the ec_glob function. An attacker can cause an application crash by supplying a specially crafted directory structure and configuration file, leading to a stack-based buffer overflow.

CVSS Base Scores

version 4.0
version 3.1