# CVE-2026-40489: editorconfig: editorconfig-core-c  is an EditorConfig core library for use by plugins supporting EditorConfig parsing

CVE-2026-40489 is fixed in 8 products on 1 platform, first by editorconfig 0.12.1-1.1ubuntu0.18.04.1~esm3, released April 19, 2026. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2026-40489
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0015
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 19, 2026

## Description

editorconfig-core-c  is an EditorConfig core library for use by plugins supporting EditorConfig parsing. Versions up to and including 0.12.10 have a stack-based buffer overflow in ec_glob() that allows an attacker to crash any application using libeditorconfig by providing a specially crafted directory structure and .editorconfig file. This is an incomplete fix for CVE-2023-0341. The pcre_str buffer was protected in 0.12.6 but the adjacent l_pattern[8194] stack buffer received no equivalent protection. On Ubuntu 24.04, FORTIFY_SOURCE converts the overflow to SIGABRT (DoS). Version 0.12.11 contains an updated fix.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | editorconfig Ubuntu 18.04.6 LTS (bionic) | 0.12.1-1.1ubuntu0.18.04.1~esm3 | [editorconfig 0.12.1-1.1ubuntu0.18.04.1~esm3](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-editorconfig-0.12.1-1.1ubuntu0.18.04.1-esm3.md) | Apr 19, 2026 |
| Linux | editorconfig Ubuntu 20.04 LTS (focal) | 0.12.1-1.1+deb11u1ubuntu0.1~esm1 | [editorconfig 0.12.1-1.1+deb11u1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-editorconfig-0.12.1-1.1-deb11u1ubuntu0.1-esm1.md) | Apr 19, 2026 |
| Linux | editorconfig Ubuntu 22.04.1 LTS (jammy) | 0.12.5-2ubuntu0.1~esm3 | [editorconfig 0.12.5-2ubuntu0.1~esm3](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-editorconfig-0.12.5-2ubuntu0.1-esm3.md) | Apr 19, 2026 |
| Linux | editorconfig Ubuntu 24.04.5 LTS (noble) | 0.12.7-0.1ubuntu0.1 | [editorconfig 0.12.7-0.1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-editorconfig-0.12.7-0.1ubuntu0.1.md) | May 15, 2026 |
| Linux | editorconfig Ubuntu 25.10 (questing) | 0.12.9+~0.17.1-1ubuntu2.1 | [editorconfig 0.12.9+~0.17.1-1ubuntu2.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-editorconfig-0.12.9-0.17.1-1ubuntu2.1.md) | May 15, 2026 |
| Linux | editorconfig Ubuntu 26.04.1 LTS (resolute) | 0.12.10+~0.17.1-3ubuntu0.1 | [editorconfig 0.12.10+~0.17.1-3ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-resolute-editorconfig-0.12.10-0.17.1-3ubuntu0.1.md) | Apr 19, 2026 |
| Linux | editorconfig amzn 2023 | 0.12.11-2.amzn2023.0.1 | [ALAS2023-2026-1642](https://patchblox.com/security/data/fix/linux/alas2023-2026-1642.md) | May 11, 2026 |
| Linux | editorconfig-core-c opensuse-leap 16.0 | 0.12.9-160000.3.1 | [OPENSUSE-SU-2026:20966-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20966-1.md) | Jun 15, 2026 |
| Linux | editorconfig-core-c sles 15.7 | 0.12.6-150600.3.6.1 | [SUSE-SU-2026:2731-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-2731-1.md) | Jul 2, 2026 |
| Linux | editorconfig-core-c sles 16.0 | 0.12.9-160000.3.1 | [SUSE-SU-2026:22125-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-22125-1.md) | Jun 15, 2026 |
| Linux | editorconfig-debuginfo amzn 2023 | 0.12.11-2.amzn2023.0.1 | [ALAS2023-2026-1642](https://patchblox.com/security/data/fix/linux/alas2023-2026-1642.md) | May 11, 2026 |
| Linux | editorconfig-debugsource amzn 2023 | 0.12.11-2.amzn2023.0.1 | [ALAS2023-2026-1642](https://patchblox.com/security/data/fix/linux/alas2023-2026-1642.md) | May 11, 2026 |
| Linux | editorconfig-devel amzn 2023 | 0.12.11-2.amzn2023.0.1 | [ALAS2023-2026-1642](https://patchblox.com/security/data/fix/linux/alas2023-2026-1642.md) | May 11, 2026 |
| Linux | editorconfig-libs amzn 2023 | 0.12.11-2.amzn2023.0.1 | [ALAS2023-2026-1642](https://patchblox.com/security/data/fix/linux/alas2023-2026-1642.md) | May 11, 2026 |
| Linux | editorconfig-libs-debuginfo amzn 2023 | 0.12.11-2.amzn2023.0.1 | [ALAS2023-2026-1642](https://patchblox.com/security/data/fix/linux/alas2023-2026-1642.md) | May 11, 2026 |
| Linux | libeditorconfig0 Ubuntu 18.04.6 LTS (bionic) | 0.12.1-1.1ubuntu0.18.04.1~esm3 | [libeditorconfig0 0.12.1-1.1ubuntu0.18.04.1~esm3](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libeditorconfig0-0.12.1-1.1ubuntu0.18.04.1-esm3.md) | Apr 19, 2026 |
| Linux | libeditorconfig0 Ubuntu 20.04 LTS (focal) | 0.12.1-1.1+deb11u1ubuntu0.1~esm1 | [libeditorconfig0 0.12.1-1.1+deb11u1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libeditorconfig0-0.12.1-1.1-deb11u1ubuntu0.1-esm1.md) | Apr 19, 2026 |
| Linux | libeditorconfig0 Ubuntu 22.04.1 LTS (jammy) | 0.12.5-2ubuntu0.1~esm3 | [libeditorconfig0 0.12.5-2ubuntu0.1~esm3](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libeditorconfig0-0.12.5-2ubuntu0.1-esm3.md) | Apr 19, 2026 |
| Linux | libeditorconfig0 Ubuntu 24.04.5 LTS (noble) | 0.12.7-0.1ubuntu0.1 | [libeditorconfig0 0.12.7-0.1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libeditorconfig0-0.12.7-0.1ubuntu0.1.md) | May 15, 2026 |
| Linux | libeditorconfig0 Ubuntu 25.10 (questing) | 0.12.9+~0.17.1-1ubuntu2.1 | [libeditorconfig0 0.12.9+~0.17.1-1ubuntu2.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-libeditorconfig0-0.12.9-0.17.1-1ubuntu2.1.md) | May 15, 2026 |
| Linux | libeditorconfig0 Ubuntu 26.04.1 LTS (resolute) | 0.12.10+~0.17.1-3ubuntu0.1 | [libeditorconfig0 0.12.10+~0.17.1-3ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-resolute-libeditorconfig0-0.12.10-0.17.1-3ubuntu0.1.md) | Apr 19, 2026 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
