Unchecked Return Value in Consul Enterprise and Consul - CVE-2022-40716

 

Unchecked Return Value in Consul Enterprise and Consul - CVE-2022-40716

Published: August 28, 2023


Vulnerability identifier: #VU80034
CSH Severity: Low
CVSS v4: 2.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-40716
CWE-ID: CWE-252
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to bypass implemented security restrictions.

The vulnerability exists due to an error when handling CSR requests at the RPC endpoint. A remote user with access to a client agent’s mTLS certificate and a valid ACL token for any service within the mesh can send a specially crafted certificate signing request (CSR) to the Consul’s internal RPC endpoint and bypass intended ACL token restrictions.


Affected software

Consul Enterprise
Consul
Fedora
golang-github-hashicorp-consul-sdk
golang-github-hashicorp-consul-api
moby-engine
IBM Cloud Pak for Watson AIOps

How to mitigate CVE-2022-40716

Install updates from vendor's website.

Consul Enterprise - addressed in versions 1.11.9, 1.12.5, 1.13.2
Consul - addressed in versions 1.11.9, 1.12.5, 1.13.2
golang-github-hashicorp-consul-sdk - addressed in versions 0.13.0-1.fc36, 0.13.0-1.fc37
golang-github-hashicorp-consul-api - addressed in versions 1.18.0-1.fc36, 1.18.0-1.fc37
IBM Cloud Pak for Watson AIOps - update to 4.1
moby-engine - addressed in versions 24.0.5-1.fc37, 24.0.5-1.fc38, 24.0.5-1.fc39

External References

Related Security Bulletins