Advisory

UBUNTU-CVE-2026-40489

Also known as: CVE-2026-40489

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-04-20 00:00 UTC
Modified
2026-06-02 18:29 UTC

Affected packages and fixes

editorconfig-core

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 0.12.7-0.1ubuntu0.1 (ecosystem)

Fixed versions

0.12.7-0.1ubuntu0.1

Fix

  • Fixed version 0.12.7-0.1ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

editorconfig-core

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0, fixed 0.12.9+~0.17.1-1ubuntu2.1 (ecosystem)

Fixed versions

0.12.9+~0.17.1-1ubuntu2.1

Fix

  • Fixed version 0.12.9+~0.17.1-1ubuntu2.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

editorconfig-core

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 0.12.10+~0.17.1-3ubuntu0.1 (ecosystem)

Fixed versions

0.12.10+~0.17.1-3ubuntu0.1

Fix

  • Fixed version 0.12.10+~0.17.1-3ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences