Skip to content
OpenAdvisories
High · 7.8 CVE-2023-0341 EUVD-2023-12402GHSA-f352-cwm8-5w9w

Stack Buffer Overflow in editorconfig-core-c

Published Jan 31, 2023 · Updated Nov 3, 2025 · Assigned by canonical

Description

A stack buffer overflow exists in the ec_glob function of editorconfig-core-c before v0.12.6 which allowed an attacker to arbitrarily write to the stack and possibly allows remote code execution. editorconfig-core-c v0.12.6 resolved this vulnerability by bound checking all write operations over the p_pcre buffer.

Affected products

VendorProductAffectedFixed
EditorConfig EditorConfig C Core < v0.12.6 v0.12.6

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.6-0.1 —
Debian 13 editorconfig-core 0.12.6-0.1 —
Debian 12 editorconfig-core 0.12.6-0.1 —
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 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS editorconfig-core 0.12.5-2ubuntu0.1~esm1 USN-7168-1, USN-5842-1
Ubuntu Pro 20.04 LTS editorconfig-core 0.12.1-1.1ubuntu0.20.04.1~esm1 USN-5842-1
Ubuntu Pro 18.04 LTS editorconfig-core 0.12.1-1.1ubuntu0.18.04.1~esm1 USN-7168-1, USN-5842-1
Ubuntu Pro 16.04 LTS editorconfig-core 0.12.0-2ubuntu0.1~esm1 USN-7168-1, USN-5842-1
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP4 editorconfig-core-c 0.12.6-bp154.2.3.1 openSUSE-SU-2023:0102-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.4 editorconfig-core-c 0.12.6-bp154.2.3.1 openSUSE-SU-2023:0102-1

Advisories 4

References