Intel

AIKIDO-2025-10664

github.com/hashicorp/consul is vulnerable to Incorrect Permission Assignment for Critical Resource

Incorrect Permission Assignment for Critical Resource Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 6, 2025

23

Low Risk

This Affects:

GOgithub.com/hashicorp/consul
1.0.0 - 1.21.4
Fixed in 1.21.5
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Information Exposure via an improper access control flaw in the Consul agent. If the attacker gains the ability to read an arbitrary file from the Consul agent's filesystem, using the group ID that the Consul agent runs as, they could access the agent's TLS certificate and private key. This would allow them to impersonate the Consul agent and attack the cluster. The patch edited the permissions of the files to 0600.

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 is vulnerable to Incorrect Permission Assignment for Critical Resource in versions 1.0.0 - 1.21.4.

How to fix this

Upgrade the github.com/hashicorp/consul library to the patch version or explicitly set the read/write permissions at agent/auto-config/persist.go to 0600.