CVE-2023-2816: Hashicorp Consul Remote Proxy Patching Vulnerability
Summary
CVE-2023-2816: Hashicorp Consul allows user with service:write permissions to patch remote proxy instances. Affects github.com/hashicorp/consul versions >= 1.15.0, < 1.15.3. Fixed in 1.15.3. How to fix ↓
Also tracked for
- consul · Bitnami
The same CVE-2023-2816 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Hashicorp Consul is an open-source service mesh solution that provides service discovery, configuration, and segmentation functionality. It allows users to register services, discover and connect to other services, and configure routing and load balancing. Consul is written in Go and is widely used in distributed systems and microservices architectures.
Vulnerability Detail
A vulnerability was discovered in Consul and Consul Enterprise versions 1.15.0 to 1.15.2. It allowed any user with service:write permissions to use Envoy extensions configured via service-defaults to patch remote proxy instances that target the configured service. This means that even users without permission to modify the corresponding services could still modify the proxies. The vulnerability could lead to unauthorized modifications of proxy instances and potential security breaches.
How To Fix
Latest published version: v1.22.7 as of 22 Oct 2026
go get github.com/hashicorp/consul@v1.22.7
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
1.15.3
This is the first release that contains the fix.
go get github.com/hashicorp/consul@v1.15.3
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is recommended to upgrade to the fixed version as soon as possible.
Conclusion
The Hashicorp Consul Remote Proxy Patching Vulnerability allows users with service:write permissions to patch remote proxy instances, potentially leading to unauthorized modifications and security breaches. It is crucial to upgrade to Consul version 1.15.3 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for github.com/hashicorp/consul →
FAQ
Consul is an open-source service mesh solution that provides service discovery, configuration, and segmentation functionality.
Consul versions 1.15.0 to 1.15.2 are affected by this vulnerability.
The vulnerability allows users with service:write permissions to patch remote proxy instances, even if they don't have permission to modify the corresponding services. This could lead to unauthorized modifications of proxy instances and potential security breaches.
To fix this vulnerability, upgrade to Consul version 1.15.3 or later.
There is no known workaround for this vulnerability. It is recommended to upgrade to the fixed version.
Related vulnerabilities
Recent vulnerabilities recorded for github.com/hashicorp/consul.