Race Condition Affecting github.com/juju/juju/apiserver package, versions <2.9.58>=3.6-beta1 <3.6.21


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.24% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMJUJUJUJUAPISERVER-16322716
  • published30 Apr 2026
  • disclosed10 Apr 2026
  • creditfg0x0

Introduced: 10 Apr 2026

CVE-2026-5774  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade github.com/juju/juju/apiserver to version 2.9.58, 3.6.21 or higher.

Overview

Affected versions of this package are vulnerable to Race Condition due to unsynchronized concurrent access to the userTokens map in the local authentication process. An attacker can cause the server to crash or reuse authentication tokens by sending multiple simultaneous requests to the discharge endpoint.

CVSS Base Scores

version 4.0
version 3.1