Intel

AIKIDO-2025-10784

github.com/hashicorp/consul-template is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Nov 10, 2025

28

Low Risk

This Affects:

GOgithub.com/hashicorp/consul-template
0.18.0 - 0.41.2
Fixed in 0.41.3
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to denial of service (DoS) due to a runtime panic in the ParseTemplateConfig function when handling malformed inputs like : or :::. The issue occurs because empty regex matches lead to out-of-range indexing. The fix adds proper handling for empty matches, returning a controlled error instead of panicking.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

github.com/hashicorp/consul-template is vulnerable to Denial of Service (DoS) in versions 0.18.0 - 0.41.2.

How to fix this

Upgrade the github.com/hashicorp/consul-template library to the patch version.