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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | editorconfig-core-c | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.6 | editorconfig-core-c | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
Advisories 3
- USN-7168-1 editorconfig-core vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- DLA-3978-1 editorconfig-core - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2024:4152-1 Security update for editorconfig-core-c SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://github.com/editorconfig/editorconfig-core-c/security/advisories/GHSA-475j-wc37-6274
- https://github.com/editorconfig/editorconfig-core-c/pull/103
- https://github.com/editorconfig/editorconfig-core-c/commit/4d5518a0a4e4910c37281ab13a048d0d86999782
- https://github.com/editorconfig/editorconfig-core-c/commit/a8dd5312e08abeab95ff5656d32ed3cb85fba70b
- http://editorconfig.org