Stack-based Buffer Overflow Affecting editorconfig-core package, versions <0.12.1-1.1ubuntu0.18.04.1~esm2


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.07% (23rd 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-UBUNTU1804-EDITORCONFIGCORE-10597870
  • published4 Jul 2025
  • disclosed27 Nov 2024

Introduced: 27 Nov 2024

CVE-2024-53849  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade Ubuntu:18.04 editorconfig-core to version 0.12.1-1.1ubuntu0.18.04.1~esm2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream editorconfig-core package and not the editorconfig-core package as distributed by Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

editorconfig-core-c is theEditorConfig core library written in C (for use by plugins supporting EditorConfig parsing). In affected versions several overflows may occur in switch case '[' when the input pattern contains many escaped characters. The added backslashes leave too little space in the output pattern when processing nested brackets such that the remaining input length exceeds the output capacity. This issue has been addressed in release version 0.12.7. Users are advised to upgrade. There are no known workarounds for this vulnerability.

CVSS Base Scores

version 3.1