CVE-2022-23650: Gravitl Netmaker hard-coded cryptographic key in server component

CVE-2022-23650 · Severity: high · CVSS 7.2 · Published 2022-02-22

Netmaker is a platform used to manage virtual networking and WireGuard-based VPNs. A security flaw exists where a permanent, secret key was accidentally included in the software's code. If an attacker knows an administrator's username and the server's address, they can use this secret key to issue administrative commands, potentially taking full control of the network management server.

Technologies: github.com/gravitl/netmaker (Go). Vendors: Go.

Quick answers

Is CVE-2022-23650 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-23650 being exploited in the wild.
How severe is CVE-2022-23650?
High severity, with a CVSS score of 7.2, published 22 February 2022.
Which products and versions are affected?
github.com/gravitl/netmaker (Go) SEMVER:introduced=0,fixed=0.8.5, SEMVER:introduced=0,fixed=0.8.5,introduced=0.9.0,fixed=0.9.4.
Is there a fix for CVE-2022-23650?
Yes. github.com/gravitl/netmaker (Go): upgrade to 0.8.5, 0.9.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2022-23650 attacked?
It is attacked over the network, in a hosted service.
Am I affected by CVE-2022-23650?
Check whether you run github.com/gravitl/netmaker (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • github.com/gravitl/netmaker (Go): upgrade to 0.8.5, 0.9.4 or later
    go get github.com/gravitl/netmaker@v0.9.4

Technical details

A Use of Hard-coded Cryptographic Key (CWE-321) and Hard-coded Credentials (CWE-798) vulnerability exists in the Netmaker server component. The codebase contains a static cryptographic key that can be leveraged to authenticate and execute administrative commands remotely. Exploitation requires knowledge of the target server's address and a valid administrator username. While the CVSS vector indicates high privileges are required, the nature of hard-coded credentials often allows for privilege escalation or bypass. The issue is fixed in versions 0.8.5, 0.9.4, and 0.10.0.

Affected products

  • Gravitl Netmaker < 0.8.5, >= 0.9.0, < 0.9.4

Identifiers

  • CVE-2022-23650
  • GHSA-86f3-hf24-76q4
  • GO-2022-0328

Timeline

  • 2022-02-18: disclosed
  • 2022-02-18: patched
  • 2022-02-22: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.