CVE-2026-36189

Uncrustify Buffer Overflow Causes Local Denial of Service

Published May 21, 2026 CVSS 3.1 · 6.2 Medium EPSS < 1% KEV · Not listed
Description
Buffer Overflow vulnerability in Uncrustify Project Affected v.Uncrustify_d-0.82.0-132-bcc41cbdc and Fixed in commit 68e67b9a1435a1bb173b106fedb4a4f510972bdc allows a local attacker to cause a denial of service via the check_template.cpp, check_template function, tokenize_cleanup function, uncrustify executable components

Analysis

AI-generated

Technical impact

Uncrustify contains a local buffer overflow in the check_template function, triggered during token cleanup in check_template.cpp. A crafted input supplied by a user who can invoke the uncrustify executable can overflow the buffer, corrupt contiguous memory and cause the process to abort. The resulting crash constitutes a denial of service that can interrupt code formatting workflows or continuous‑integration jobs that depend on Uncrustify.

Affected Systems

The vulnerability exists in Uncrustify releases that include the code identified by the hash bcc41cbdc (v.Uncrustify_d-0.82.0-132) and any earlier revisions that have not incorporated the patch commit 68e67b9a1435a1bb173b106fedb4a4f510972bdc. Any build that does not contain this commit is vulnerable.

Risk and Exploitability

The CVSS score of 6.2 reflects moderate severity, but the exploitation requires local access to run the uncrustify binary; remote exploitation is not possible. EPSS data is unavailable, so the probability of exploitation cannot be quantified. The vulnerability is not listed in the CISA KEV catalog, indicating no confirmed public exploitation. Nonetheless, a local attacker supplying crafted input can reliably terminate the tool, potentially disrupting pipeline execution or library formatting tasks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest Uncrustify release that includes commit 68e67b9a or later.
  • If an immediate upgrade is not feasible, restrict execution of the uncrustify binary to non‑privileged users or run it inside a dedicated container to isolate failures.
  • Continuously monitor system logs or resource spikes for abnormal run‑time failures of uncrustify and apply the update as soon as it becomes available.

Generated by OpenCVE AI on May 21, 2026 at 18:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Uncrustify
Uncrustify uncrustify
Vendors & Products Uncrustify
Uncrustify uncrustify
Type Values Removed Values Added
Title Uncrustify Buffer Overflow Causes Local Denial of Service
Type Values Removed Values Added
Title Local Buffer Overflow in Uncrustify Leads to Denial of Service
Weaknesses CWE-122
Type Values Removed Values Added
Title Local Buffer Overflow in Uncrustify Leads to Denial of Service
Weaknesses CWE-122
Type Values Removed Values Added
Weaknesses CWE-120
Metrics cvssV3_1

{'score': 6.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Buffer Overflow vulnerability in Uncrustify Project Affected v.Uncrustify_d-0.82.0-132-bcc41cbdc and Fixed in commit 68e67b9a1435a1bb173b106fedb4a4f510972bdc allows a local attacker to cause a denial of service via the check_template.cpp, check_template function, tokenize_cleanup function, uncrustify executable components
References
Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
May 21, 2026, 3:08 PM
Reserved
Apr 6, 2026, 12:00 AM
Status
Deferred
Published
May 21, 2026, 3:16 PM
Modified
Jul 23, 2026, 4:10 PM