Stack-based Buffer Overflow Affecting editorconfig-core package, versions <0.12.1-1.1+deb11u1build0.20.04.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.05% (18th 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-UBUNTU2004-EDITORCONFIGCORE-8441968
  • published11 Dec 2024
  • disclosed27 Nov 2024

Introduced: 27 Nov 2024

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

How to fix?

Upgrade Ubuntu:20.04 editorconfig-core to version 0.12.1-1.1+deb11u1build0.20.04.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 Ubuntu. See How to fix? for Ubuntu:20.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 Scores

version 3.1