{"id":"GHSA-r8cr-4f9w-7r75","revision":"52524bcef46c4473aeccf82086b88bdd","records":[{"revision":"52524bcef46c4473aeccf82086b88bdd","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-r8cr-4f9w-7r75","aliases":["CVE-2026-32599","GO-2026-6485"],"title":"Netmaker has a boolean‑based SQL Injection","description":"# 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)","state":0,"publishedAt":"2026-09-15T19:48:49+00:00","modifiedAt":"2026-09-28T17:11:03.7274587+00:00","affected":[{"ecosystem":"Go","name":"github.com/gravitl/netmaker","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.5.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/gravitl/netmaker/security/advisories/GHSA-r8cr-4f9w-7r75","https://github.com/gravitl/netmaker","https://github.com/gravitl/netmaker/releases/tag/v1.5.0"],"sourceUrl":"https://github.com/advisories/GHSA-r8cr-4f9w-7r75","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-r8cr-4f9w-7r75","identifiers":["GHSA-r8cr-4f9w-7r75","CVE-2026-32599","GO-2026-6485"]},"retained":false,"historicalAffected":[]}],"coverage":[]}