CVE-2023-32077: Github.com/gravitl/netmaker Netmaker Has Hardcoded DNS Secret Vulnerability

HIGH
Advisory Identifier: GHSA-8x8h-hcq8-jwwx
CVSS 7.5
CWE-321 CWE-798
Published
Advisory Summary

CVE-2023-32077 is a HIGH (CVSS 7.5) netmaker has hardcoded dns secret vulnerability (CWE-321: Use of Hard-coded Cryptographic Key) affecting Github.com/gravitl/netmaker libraries in the Go ecosystem. The issue involves netmaker has hardcoded dns secret key. Remediation is available by upgrading affected packages to version 0.17.1, 0.18.6.

CVE-2023-32077 at a Glance

CVE Identifier CVE-2023-32077
GHSA Identifier GHSA-8x8h-hcq8-jwwx
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-321: Use of Hard-coded Cryptographic Key
Affected Product Github.com/gravitl/netmaker
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-32077

To remediate this vulnerability, upgrade all affected Github.com/gravitl/netmaker dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/gravitl/netmaker fixed: 0.17.1
Upgrade github.com/gravitl/netmaker to 0.17.1
github.com/gravitl/netmaker fixed: 0.18.6
Upgrade github.com/gravitl/netmaker to 0.18.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/gravitl/netmaker

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-32077, inspect your project dependencies for Github.com/gravitl/netmaker:

inspect dependencies for github.com/gravitl/netmaker

Analyze the terminal output to locate any version of Github.com/gravitl/netmaker in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.17.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-321: Use of Hard-coded Cryptographic Key, where the product uses a hard-coded, unchangeable cryptographic key. In Github.com/gravitl/netmaker, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Hardcoded DNS key usage has been found in Netmaker allowing unauth users to interact with DNS API endpoints. ### Patches Issue is patched in 0.17.1, and fixed in 0.18.6+. If Users are using 0.17.1, they should run "docker pull gravitl/netmaker:v0.17.1" and "docker-compose up -d". This will switch them to the patched users If users are using v0.18.0-0.18.5, they should upgrade to v0.18.6 or later. ### Workarounds If using 0.17.1, can just pull the latest docker image of backend and restart server. ### References Credit to Project Discovery, and in particular https://github.com/rootxharsh , https://github.com/iamnoooob, and https://github.com/projectdiscovery

CVE-2023-32077 Affected Github.com/gravitl/netmaker Versions

2 component(s)
Fixed Versions:
0.17.10.18.6
Product / Package Ecosystem Affected Versions Fixed Version
github.com/gravitl/netmaker
Go
< 0.17.1
0.17.1
github.com/gravitl/netmaker
Go
≥ 0.18.0
< 0.18.6
0.18.6

References

Frequently Asked Questions

What is CVE-2023-32077?
CVE-2023-32077 is a security vulnerability in Github.com/gravitl/netmaker involving Netmaker has Hardcoded DNS Secret Key under CWE-321: Use of Hard-coded Cryptographic Key.
Which Github.com/gravitl/netmaker versions are affected?
Affected versions include releases prior to 0.17.1, 0.18.6 across affected packages: github.com/gravitl/netmaker.
What version fixes CVE-2023-32077?
Upgrading to 0.17.1, 0.18.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/gravitl/netmaker affected?
Yes, github.com/gravitl/netmaker is affected in releases prior to 0.17.1, 0.18.6. Upgrade your dependency to 0.17.1, 0.18.6 or later.
What is the CVSS score of CVE-2023-32077?
CVE-2023-32077 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2023-32077?
CVE-2023-32077 is classified under CWE-321: Use of Hard-coded Cryptographic Key (The product uses a hard-coded, unchangeable cryptographic key.).
How can I check Go dependencies for CVE-2023-32077?
Run the dependency tree command: 'inspect dependencies for github.com/gravitl/netmaker'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8x8h-hcq8-jwwx",
  "modified" : "2026-05-19T16:06:30Z",
  "published" : "2023-08-25T18:38:18Z",
  "aliases" : [ "CVE-2023-32077" ],
  "summary" : "Netmaker has Hardcoded DNS Secret Key",
  "details" : "### Impact \nHardcoded DNS key usage has been found in Netmaker allowing unauth users to interact with DNS API endpoints.\n\n### Patches\nIssue is patched in 0.17.1, and fixed in 0.18.6+. \n\nIf Users are using 0.17.1, they should run \"docker pull gravitl/netmaker:v0.17.1\" and \"docker-compose up -d\". This will switch them to the patched users\n\nIf users are using v0.18.0-0.18.5, they should upgrade to v0.18.6 or later.\n\n### Workarounds\nIf using 0.17.1, can just pull the latest docker image of backend and restart server.\n\n### References\nCredit to Project Discovery, and in particular https://github.com/rootxharsh , https://github.com/iamnoooob, and https://github.com/projectdiscovery",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/gravitl/netmaker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.17.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/gravitl/netmaker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.18.0"
      }, {
        "fixed" : "0.18.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/gravitl/netmaker/security/advisories/GHSA-8x8h-hcq8-jwwx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-32077"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gravitl/netmaker/pull/2170"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gravitl/netmaker/commit/1621c27c1d176b639e9768b2acad7693e387fd51"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gravitl/netmaker/commit/9362c39a9a822f0e07361aa7c77af2610597e657"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gravitl/netmaker"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-321", "CWE-798" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-25T18:38:18Z",
    "nvd_published_at" : "2023-08-24T22:15:08Z"
  }
}