CVE-2022-23650: Hard-coded Cryptographic Key in Netmaker

github.com/gravitl/netmaker Updated 02 Oct 2025

Summary

21/08/2024
Yes i
High
7.2

CVE-2022-23650: Use of Hard-coded Cryptographic Key in Netmaker in github.com/gravitl/netmaker. Affects github.com/gravitl/netmaker across 2 version ranges.

< 0.8.5 >= 0.9.0, < 0.9.4

Fixed in 0.8.5 or 0.9.4, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Netmaker is a Go package developed by Gravitl. It provides networking and security functionalities for distributed systems. It allows users to create and manage virtual networks, enabling secure communication between different nodes. However, a vulnerability has been identified in Netmaker that involves the use of a hard-coded cryptographic key.

Vulnerability Detail

The vulnerability in Netmaker arises from the use of a hard-coded cryptographic key. This key is used for encryption and decryption operations within the package. By having a hard-coded key, an attacker could potentially obtain the key and decrypt sensitive information, compromising the security of the system. The vulnerability affects versions 0.0.0 to 0.8.4 and 0.9.0 to 0.9.3 of Netmaker.

How To Fix

Latest published version: v1.7.0 as of 23 Oct 2026

go get github.com/gravitl/netmaker@v1.7.0

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 0.8.5 0.8.5
    go get github.com/gravitl/netmaker@v0.8.5
  • >= 0.9.0, < 0.9.4 0.9.4
    go get github.com/gravitl/netmaker@v0.9.4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, users can mitigate the risk by implementing additional security measures such as network segmentation, access controls, and monitoring for any suspicious activity.

Conclusion

The use of a hard-coded cryptographic key in Netmaker poses a significant security risk, as it allows attackers to potentially decrypt sensitive information. It is crucial for users to update to the fixed versions and avoid using hard-coded keys in the future. Implementing additional security measures can also help mitigate the risk.

See every vulnerability recorded for github.com/gravitl/netmaker →

Share this vulnerability

FAQ

The vulnerability allows an attacker to potentially decrypt sensitive information by obtaining the hard-coded cryptographic key used in Netmaker.

Versions 0.0.0 to 0.8.4 and 0.9.0 to 0.9.3 of Netmaker are affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your Gopkg.lock file for analysis.

There are no known exploits for this vulnerability at the moment. However, it is important to patch the vulnerability as soon as possible to prevent any potential attacks.

Yes, the vulnerability has been fixed in versions 0.8.5 and 0.9.4 of Netmaker. It is recommended to update to the latest fixed version.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/gravitl/netmaker.

How To Fix

Latest published version: v1.7.0 as of 23 Oct 2026

go get github.com/gravitl/netmaker@v1.7.0

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 0.8.5 0.8.5
    go get github.com/gravitl/netmaker@v0.8.5
  • >= 0.9.0, < 0.9.4 0.9.4
    go get github.com/gravitl/netmaker@v0.9.4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback