CVE & CISA-KEV Catalog

CVE-2026-40489

UNSCORED

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.

How to fix

Remediation Available
editorconfigUbuntu
Fixed in:0.12.0-2ubuntu0.1~esm3USN-8238-2
Fixed in:0.12.1-1.1ubuntu0.18.04.1~esm3USN-8238-2
Fixed in:0.12.1-1.1+deb11u1ubuntu0.1~esm1USN-8238-2
Fixed in:0.12.5-2ubuntu0.1~esm3USN-8238-2
Fixed in:0.12.7-0.1ubuntu0.1USN-8238-1
Fixed in:0.12.9+~0.17.1-1ubuntu2.1USN-8238-1
editorconfig-coreUbuntu
Fixed in:0.12.0-2ubuntu0.1~esm3USN-8238-2
Fixed in:0.12.1-1.1ubuntu0.18.04.1~esm3USN-8238-2
Fixed in:0.12.1-1.1+deb11u1ubuntu0.1~esm1USN-8238-2
Fixed in:0.12.5-2ubuntu0.1~esm3USN-8238-2
Fixed in:0.12.7-0.1ubuntu0.1USN-8238-1
Fixed in:0.12.9+~0.17.1-1ubuntu2.1USN-8238-1
editorconfig-docUbuntu
Fixed in:0.12.0-2ubuntu0.1~esm3USN-8238-2
Fixed in:0.12.1-1.1ubuntu0.18.04.1~esm3USN-8238-2
Fixed in:0.12.1-1.1+deb11u1ubuntu0.1~esm1USN-8238-2
Fixed in:0.12.5-2ubuntu0.1~esm3USN-8238-2
libeditorconfig-devUbuntu
Fixed in:0.12.0-2ubuntu0.1~esm3USN-8238-2
Fixed in:0.12.1-1.1ubuntu0.18.04.1~esm3USN-8238-2
Fixed in:0.12.1-1.1+deb11u1ubuntu0.1~esm1USN-8238-2
Fixed in:0.12.5-2ubuntu0.1~esm3USN-8238-2
libeditorconfig0Ubuntu
Fixed in:0.12.0-2ubuntu0.1~esm3USN-8238-2
Fixed in:0.12.1-1.1ubuntu0.18.04.1~esm3USN-8238-2
Fixed in:0.12.1-1.1+deb11u1ubuntu0.1~esm1USN-8238-2
Fixed in:0.12.5-2ubuntu0.1~esm3USN-8238-2
Fixed in:0.12.7-0.1ubuntu0.1USN-8238-1
Fixed in:0.12.9+~0.17.1-1ubuntu2.1USN-8238-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3.1 Vector

No CVSS vector data available.

Exploit Intelligence

0.15%probability of exploitation in 30 days
5thpercentile

Low risk: more likely to be exploited than 5% of all known CVEs.

References

Related Vulnerabilities

Other CWE-121 (Stack-based Buffer Overflow) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2025-22457Critical9.0100%KEV + RansomFix
CVE-2025-0282Critical9.0100%KEV + Ransom-
CVE-2021-20038Critical9.8100%KEV + Ransom-
CVE-2009-0927High8.897%KEVFix
CVE-2020-10924High8.887%--
CVE-2022-20705Critical10.080%--
Embed a live status badge for CVE-2026-40489
CVE-2026-40489 severity badge

Markdown

[![CVE-2026-40489](https://tridentstack.com/cve/badge/CVE-2026-40489.svg)](https://tridentstack.com/cve/CVE-2026-40489)

HTML

<a href="https://tridentstack.com/cve/CVE-2026-40489"><img src="https://tridentstack.com/cve/badge/CVE-2026-40489.svg" alt="CVE-2026-40489"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-04-20.