CVEfocus › CVE database › CVE-2026-40489

CVE-2026-40489editorconfig-core-c has incomplete fix for CVE-2023-0341

CVSS 8.6 HighEPSS 0.2% (higher than 6% of CVEs)Published 2026-04-18Updated 2026-04-20Assigner: GitHub_M

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.

CWE-121CWE-787

What to do

Fixed builds are available from Alpine, Ubuntu: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
7Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04editorconfig-coreFixed0.12.10+~0.17.1-3ubuntu0.1UBUNTU-CVE-2026-40489
Ubuntu 25.10editorconfig-coreFixed0.12.9+~0.17.1-1ubuntu2.1UBUNTU-CVE-2026-40489
Ubuntu 24.04editorconfig-coreFixed0.12.7-0.1ubuntu0.1UBUNTU-CVE-2026-40489
Ubuntu 22.04editorconfig-coreFix pending0.12.5-2ubuntu0.1~esm3 (Ubuntu Pro)UBUNTU-CVE-2026-40489
Ubuntu 20.04editorconfig-coreFix pending0.12.1-1.1+deb11u1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-40489
Ubuntu 18.04editorconfig-coreFix pending0.12.1-1.1ubuntu0.18.04.1~esm3 (Ubuntu Pro)UBUNTU-CVE-2026-40489
Ubuntu 16.04editorconfig-coreFix pending0.12.0-2ubuntu0.1~esm3 (Ubuntu Pro)UBUNTU-CVE-2026-40489
Debian 14editorconfig-coreFix pendingDEBIAN-CVE-2026-40489
Debian 13editorconfig-coreFix pendingDEBIAN-CVE-2026-40489
Debian 12editorconfig-coreFix pendingDEBIAN-CVE-2026-40489
Alpine Linux 3.24editorconfigFixed0.12.11-r0ALPINE-CVE-2026-40489

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.