CVE-2024-53849
published medium CVSS 4.0 · 4.8Several stack buffer overflows and pointer overflows in editorconfig-core-c
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| editorconfig | — | editorconfig-core-c< 0.12.7 | Affected | Not stated | GitHub_M |
| editorconfig | — | editorconfig0 to < 0.12.7 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| SUSE / openSUSE | openSUSE-Leap-15.6 | editorconfigaarch64 | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| Ubuntu | bionic | editorconfig | Advisory build | 0.12.1-1.1ubuntu0.18.04.1~esm2 | USN-7168-1 |
| Debian | bullseye | editorconfig-core | Advisory build | 0.12.1-1.1+deb11u1 | DLA-3978-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | editorconfigppc64le | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | editorconfigs390x | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | editorconfigx86_64 | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
Show 25 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | focal | editorconfig | Advisory build | 0.12.1-1.1+deb11u1build0.20.04.1 | USN-7168-1 |
| Ubuntu | jammy | editorconfig | Advisory build | 0.12.5-2ubuntu0.1~esm2 | USN-7168-1 |
| Ubuntu | xenial | editorconfig | Advisory build | 0.12.0-2ubuntu0.1~esm2 | USN-7168-1 |
| SUSE / openSUSE | SLE-15-SP6 | libeditorconfig0aarch64 | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| SUSE / openSUSE | SLE-15-SP6 | libeditorconfig0ppc64le | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| SUSE / openSUSE | SLE-15-SP6 | libeditorconfig0s390x | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| SUSE / openSUSE | SLE-15-SP6 | libeditorconfig0x86_64 | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libeditorconfig-develaarch64 | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libeditorconfig-develppc64le | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libeditorconfig-devels390x | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libeditorconfig-develx86_64 | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libeditorconfig-devel-32bitx86_64 | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libeditorconfig0aarch64 | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libeditorconfig0ppc64le | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libeditorconfig0s390x | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libeditorconfig0x86_64 | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libeditorconfig0-32bitx86_64 | Advisory build | 0.12.6-150600.3.3.1 | SUSE-SU-2024:4152-1 |
| Ubuntu | bionic | editorconfig-core | Advisory build | 0.12.1-1.1ubuntu0.18.04.1~esm2 | USN-7168-1 |
| Ubuntu | bionic | libeditorconfig0 | Advisory build | 0.12.1-1.1ubuntu0.18.04.1~esm2 | USN-7168-1 |
| Ubuntu | focal | editorconfig-core | Advisory build | 0.12.1-1.1+deb11u1build0.20.04.1 | USN-7168-1 |
| Ubuntu | focal | libeditorconfig0 | Advisory build | 0.12.1-1.1+deb11u1build0.20.04.1 | USN-7168-1 |
| Ubuntu | jammy | editorconfig-core | Advisory build | 0.12.5-2ubuntu0.1~esm2 | USN-7168-1 |
| Ubuntu | jammy | libeditorconfig0 | Advisory build | 0.12.5-2ubuntu0.1~esm2 | USN-7168-1 |
| Ubuntu | xenial | editorconfig-core | Advisory build | 0.12.0-2ubuntu0.1~esm2 | USN-7168-1 |
| Ubuntu | xenial | libeditorconfig0 | Advisory build | 0.12.0-2ubuntu0.1~esm2 | USN-7168-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| editorconfig | editorconfig-core-c | < 0.12.7 (affected) | GitHub_M · cna |
| editorconfig | editorconfig | 0 to < 0.12.7 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-121 CWE-121: Stack-based Buffer Overflow
References
6- http://editorconfig.org
- https://github.com/editorconfig/editorconfig-core-c/commit/4d5518a0a4e4910c37281ab13a048d0d86999782
- https://github.com/editorconfig/editorconfig-core-c/commit/a8dd5312e08abeab95ff5656d32ed3cb85fba70b
- https://github.com/editorconfig/editorconfig-core-c/pull/103
- https://github.com/editorconfig/editorconfig-core-c/security/advisories/GHSA-475j-wc37-6274
- https://lists.debian.org/debian-lts-announce/2024/11/msg00036.html
Provider assertions
3GitHub_M · cna
Several stack buffer overflows and pointer overflows in editorconfig-core-c
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- bdd9da9a41d4c86059e4f175da5243cf483400b9a0372f14377aa52f1650367a
- Ingested
- 23 Sep 2026, 08:31:11 UTC
- Source record
- Official CVE record