Affected by GO-2022-0615
and 8 other vulnerabilities
GO-2022-0615 : Hashicorp Consul HTTP health check endpoints returning an HTTP redirect may be abused as SSRF vector in github.com/hashicorp/consul
GO-2022-0953 : HashiCorp Consul Ingress Gateway Panic Can Shutdown Servers in github.com/hashicorp/consul
GO-2022-1029 : HashiCorp Consul vulnerable to authorization bypass in github.com/hashicorp/consul
GO-2023-1827 : Hashicorp Consul vulnerable to denial of service in github.com/hashicorp/consul
GO-2024-3241 : Hashicorp Consul Improper Neutralization of HTTP Headers for Scripting Syntax vulnerability in github.com/hashicorp/consul
GO-2024-3242 : Hashicorp Consul Cross-site Scripting vulnerability in github.com/hashicorp/consul
GO-2024-3243 : Hashicorp Consul Path Traversal vulnerability in github.com/hashicorp/consul
GO-2025-4081 : Consul key/value endpoint is vulnerable to denial of service in github.com/hashicorp/consul
GO-2025-4082 : Consul event endpoint is vulnerable to denial of service in github.com/hashicorp/consul
Discover Packages
github.com/hashicorp/consul
lib
mutex
package
Version:
v1.11.2
Opens a new window with list of versions in this module.
Published: Jan 13, 2022
License: MPL-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package mutex implements the sync.Locker interface using x/sync/semaphore. It
may be used as a replacement for sync.Mutex when one or more goroutines need to
allow their calls to Lock to be cancelled by context cancellation.
New returns a Mutex that is ready for use.
TryLock acquires the mutex, blocking until resources are available or ctx is
done. On success, returns nil. On failure, returns ctx.Err() and leaves the
semaphore unchanged.
If ctx is already done, Acquire may still succeed without blocking.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.