Stack-based Buffer Overflow Affecting editorconfig-core package, versions <0.12.7-0.1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

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-DEBIAN13-EDITORCONFIGCORE-8422794
  • published27 Nov 2024
  • disclosed27 Nov 2024

Introduced: 27 Nov 2024

NewCVE-2024-53849  (opens in a new tab)
CWE-121  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade Debian:13 editorconfig-core to version 0.12.7-0.1 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 Debian. See How to fix? for Debian:13 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.