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

Source: https://junglewise.ai/threats/cve-2022-23650-gravitl-netmaker-hard-coded-cryptographic-key-in-server-component  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-02-22. Updated: 2026-05-19  
License: CC BY 4.0 with a link back

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)](https://junglewise.ai/threats/technologies/github-com-gravitl-netmaker). Vendors: [Go](https://junglewise.ai/threats/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

  ```sh
  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

- [https://api.github.com/users/JamieSlome](https://api.github.com/users/JamieSlome)
- [https://github.com/JamieSlome](https://github.com/JamieSlome)
- [https://api.github.com/users/JamieSlome/gists%7B/gist_id%7D](https://api.github.com/users/JamieSlome/gists%7B/gist_id%7D)
- [https://api.github.com/users/JamieSlome/repos](https://api.github.com/users/JamieSlome/repos)
- [https://avatars.githubusercontent.com/u/55323451?v=4](https://avatars.githubusercontent.com/u/55323451?v=4)
- [https://api.github.com/users/JamieSlome/events%7B/privacy%7D](https://api.github.com/users/JamieSlome/events%7B/privacy%7D)

## Related threats

- [Netmaker boolean-based SQL injection in DNS deletion](https://junglewise.ai/threats/cve-2026-32599-netmaker-boolean-based-sql-injection-in-dns-deletion)
- [Gravitl Netmaker authentication bypass in VerifyHostToken](https://junglewise.ai/threats/cve-2026-38651-gravitl-netmaker-authentication-bypass-in-verifyhosttoken)
- [Netmaker: Service User with Network Access Can Access config files with WireGuard Private Keys](https://junglewise.ai/threats/cve-2026-29196-netmaker-service-user-with-network-access-can-access-config-files)
- [GO-2026-4654 - Netmaker has Privilege Escalation from Admin to Super-Admin via User Update in github.com/gravitl/netmaker](https://junglewise.ai/threats/cve-2026-29195-netmaker-has-privilege-escalation-from-admin-to-super-admin-via)
- [GO-2026-4655 - Netmaker has Insufficient Authorization in Host Token Verification in github.com/gravitl/netmaker](https://junglewise.ai/threats/cve-2026-29194-netmaker-has-insufficient-authorization-in-host-token)
