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

github.com/gravitl/netmaker Updated 02 Oct 2025

Summary

19/02/2022
Yes i
High
8.8

CVE-2022-0664: Use of Hard-coded Cryptographic Key in 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Netmaker is a Go package that provides networking and connectivity solutions. It is used to create and manage virtual networks, allowing secure communication between nodes. The package offers various features such as encryption, authentication, and routing. However, a vulnerability has been discovered in Netmaker versions prior to 0.8.5, 0.9.4, 0.10.0, and 0.10.1. This vulnerability involves the use of a hard-coded cryptographic key, which poses a significant security risk.

Vulnerability Detail

The vulnerability in Netmaker arises from the use of a hard-coded cryptographic key. This means that the same key is used across all installations of the package, making it easily discoverable by attackers. By obtaining the key, an attacker can potentially decrypt sensitive data, impersonate legitimate nodes, and perform other malicious activities. The impact of this vulnerability is high, as it compromises the confidentiality, integrity, and availability of the affected systems.

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 known workaround for this vulnerability. It is essential to update Netmaker to the fixed versions mentioned above.

Conclusion

The use of a hard-coded cryptographic key in Netmaker versions prior to 0.8.5, 0.9.4, 0.10.0, and 0.10.1 poses a significant security risk. It is crucial to update Netmaker to the fixed versions to mitigate the vulnerability and ensure the security of the network. For further support on vulnerability remediation, contact DevNack.com.

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

Share this vulnerability

FAQ

This vulnerability allows attackers to decrypt sensitive data, impersonate legitimate nodes, and perform other malicious activities.

You can use Vulert's playground (https://vulert.com/scanner) to check if your version of Netmaker is affected by this vulnerability. Simply upload your Gopkg.lock file and Vulert will provide real-time alerts for open-source vulnerabilities.

At the time of this report, there are no known exploits for this vulnerability. However, it is crucial to update Netmaker to the fixed versions to mitigate the risk.

No, the cryptographic key is hard-coded in the affected versions of Netmaker. The only way to address the vulnerability is to update to the fixed versions.

For further support on vulnerability remediation, you can contact info@devnack.com. They can provide guidance and assistance in addressing the vulnerability.

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