CVE-2026-32599: Github.com/gravitl/netmaker SQL Injection Vulnerability

MODERATE
Advisory Identifier: GHSA-r8cr-4f9w-7r75
CWE-89
Published
Advisory Summary

CVE-2026-32599 is a MODERATE sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Github.com/gravitl/netmaker libraries in the Go ecosystem. The issue involves netmaker has a boolean‑based sql injection. Remediation is available by upgrading affected packages to version 1.5.0.

CVE-2026-32599 at a Glance

CVE Identifier CVE-2026-32599
GHSA Identifier GHSA-r8cr-4f9w-7r75
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Github.com/gravitl/netmaker
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2026-32599

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: 1.5.0
Upgrade github.com/gravitl/netmaker to 1.5.0
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-2026-32599, 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 1.5.0), 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-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. 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

# SQL Injection in Netmaker SQLite Database Backend ## Summary The `sqliteDeleteRecord` function in Netmaker's database layer constructs SQL `DELETE` statements using direct string concatenation of user-supplied input. This allows an authenticated attacker to perform **boolean-based SQL injection**. --- ## Details The endpoint: DELETE /api/dns/{network}/{domain} passes user-controlled path parameters through the following flow: logic.DeleteDNS → database.DeleteRecord → sqliteDeleteRecord Depending on the configured database backend, the request eventually reaches the SQLite database implementation. ### Vulnerable Code The SQL query is constructed using direct string concatenation without parameterization. ```go // database/sqlite.go deleteSQL := "DELETE FROM " + tableName + " WHERE key = \"" + key + "\"" The key value originates from user input ({domain} path parameter) and is embedded directly into the SQL query. Exploitation An authenticated attacker can inject SQL operators into the {domain} path parameter to manipulate the query logic. Because this injection is boolean-based, attackers extract data indirectly by observing the outcome of the operation: If the injected condition evaluates true, the DNS record is deleted. If the condition evaluates false, the DNS record remains. By repeating this process, an attacker can infer information such as: Database table names Column names Column values Value lengths Impact An authenticated attacker can exploit this vulnerability to extract data from arbitrary database tables when using the SQLite backend. Unaffected backend: PostgreSQL (uses parameterised queries with $1, $2 placeholders) Patches This vulnerability is fixed in version (fill in). The patch replaces string concatenation with parameterised SQL queries for all user-supplied values in database operations. --- Credit Artem Danilov (Positive Technologies) Daniil Satyaev (Independent)

CVE-2026-32599 Affected Github.com/gravitl/netmaker Versions

1 component(s)
Fixed Versions:
1.5.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/gravitl/netmaker
Go
< 1.5.0
1.5.0

References

Frequently Asked Questions

What is CVE-2026-32599?
CVE-2026-32599 is a security vulnerability in Github.com/gravitl/netmaker involving Netmaker has a boolean‑based SQL Injection under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Github.com/gravitl/netmaker versions are affected?
Affected versions include releases prior to 1.5.0 across affected packages: github.com/gravitl/netmaker.
What version fixes CVE-2026-32599?
Upgrading to 1.5.0 (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 1.5.0. Upgrade your dependency to 1.5.0 or later.
What CWE is associated with CVE-2026-32599?
CVE-2026-32599 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.).
How can I check Go dependencies for CVE-2026-32599?
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-r8cr-4f9w-7r75",
  "modified" : "2026-09-15T19:48:49Z",
  "published" : "2026-09-15T19:48:49Z",
  "aliases" : [ "CVE-2026-32599" ],
  "summary" : "Netmaker has a boolean‑based SQL Injection",
  "details" : "# SQL Injection in Netmaker SQLite Database Backend\n\n## Summary\n\nThe `sqliteDeleteRecord` function in Netmaker's database layer constructs SQL `DELETE` statements using direct string concatenation of user-supplied input. This allows an authenticated attacker to perform **boolean-based SQL injection**.\n\n---\n\n## Details\n\nThe endpoint:\n\n\nDELETE /api/dns/{network}/{domain}\n\n\npasses user-controlled path parameters through the following flow:\n\n\nlogic.DeleteDNS → database.DeleteRecord → sqliteDeleteRecord\n\n\nDepending on the configured database backend, the request eventually reaches the SQLite database implementation.\n\n### Vulnerable Code\n\nThe SQL query is constructed using direct string concatenation without parameterization.\n\n```go\n// database/sqlite.go\ndeleteSQL := \"DELETE FROM \" + tableName + \" WHERE key = \\\"\" + key + \"\\\"\"\n\nThe key value originates from user input ({domain} path parameter) and is embedded directly into the SQL query.\n\nExploitation\n\nAn authenticated attacker can inject SQL operators into the {domain} path parameter to manipulate the query logic.\n\nBecause this injection is boolean-based, attackers extract data indirectly by observing the outcome of the operation:\n\nIf the injected condition evaluates true, the DNS record is deleted.\n\nIf the condition evaluates false, the DNS record remains.\n\nBy repeating this process, an attacker can infer information such as:\n\nDatabase table names\n\nColumn names\n\nColumn values\n\nValue lengths\n\nImpact\n\nAn authenticated attacker can exploit this vulnerability to extract data from arbitrary database tables when using the SQLite backend.\n\nUnaffected backend:\n\nPostgreSQL (uses parameterised queries with $1, $2 placeholders)\n\nPatches\n\nThis vulnerability is fixed in version (fill in).\n\nThe patch replaces string concatenation with parameterised SQL queries for all user-supplied values in database operations.\n\n\n---\nCredit\n\nArtem Danilov\n(Positive Technologies)\n\nDaniil Satyaev (Independent)",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/gravitl/netmaker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/gravitl/netmaker/security/advisories/GHSA-r8cr-4f9w-7r75"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gravitl/netmaker"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gravitl/netmaker/releases/tag/v1.5.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-15T19:48:49Z",
    "nvd_published_at" : null
  }
}