Skip to content
OpenAdvisories
Medium · 4.8 CVE-2024-53849 EUVD-2024-52173

Several stack buffer overflows and pointer overflows in editorconfig-core-c

Published Nov 26, 2024 · Updated Nov 3, 2025 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
editorconfig editorconfig-core-c < 0.12.7 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 editorconfig-core 0.12.7-0.1 —
Debian 13 editorconfig-core 0.12.7-0.1 —
Debian 12 editorconfig-core No fix yet —
Debian 11 editorconfig-core 0.12.1-1.1+deb11u1 DLA-3978-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS editorconfig-core 0.12.1-1.1+deb11u1build0.20.04.1 USN-7168-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS editorconfig-core 0.12.5-2ubuntu0.1~esm2 USN-7168-1
Ubuntu Pro 18.04 LTS editorconfig-core 0.12.1-1.1ubuntu0.18.04.1~esm2 USN-7168-1
Ubuntu Pro 16.04 LTS editorconfig-core 0.12.0-2ubuntu0.1~esm2 USN-7168-1
ReleasePackageFixed inAdvisory
SLES 15 SP6 editorconfig-core-c 0.12.6-150600.3.3.1 SUSE-SU-2024:4152-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.6 editorconfig-core-c 0.12.6-150600.3.3.1 SUSE-SU-2024:4152-1

Advisories 3

References