{"id":"CVE-2026-42072","aliases":["CVE-2026-42072","GHSA-2hp7-65r3-wv54","GO-2026-4967"],"related":[],"kind":"vulnerability","state":"published","title":"Nornicdb: Improper Network Binding in NornicDB Bolt Server allows unauthorized remote access","summary":"Nornicdb is a distributed low-latency, Graph+Vector, Temporal MVCC with all sub-ms HNSW search, graph traversal, and writes. Prior to version 1.0.42-hotfix, the --address CLI flag (and NORNICDB_ADDRESS / server.host config key) is plumbed through to the HTTP server correctly but never reaches the Bolt server config. The Bolt listener therefore always binds to the wildcard address (all interfaces), regardless of what the user configures. On a LAN, this exposes the graph database — with its default admin:password credentials — to any device sharing the network. This issue has been patched in version 1.0.42-hotfix.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Nornicdb is a distributed low-latency, Graph+Vector, Temporal MVCC with all sub-ms HNSW search, graph traversal, and writes. Prior to version 1.0.42-hotfix, the --address CLI flag (and NORNICDB_ADDRESS / server.host config key) is plumbed through to the HTTP server correctly but never reaches the Bolt server config. The Bolt listener therefore always binds to the wildcard address (all interfaces), regardless of what the user configures. On a LAN, this exposes the graph database — with its default admin:password credentials — to any device sharing the network. This issue has been patched in version 1.0.42-hotfix.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nThe `--address` CLI flag (and `NORNICDB_ADDRESS` / `server.host` config key) is plumbed through to the HTTP server correctly but **never reaches the Bolt server config**. The Bolt listener therefore always binds to the wildcard address (all interfaces), regardless of what the user configures.\n\nOn a LAN, this exposes the graph database — with its default `admin:password` credentials — to any device sharing the network.\n\n## Version\n\n- `nornicdb v1.0.39`\n- Built from commit `afe7c9d` on `main`\n- Platform: macOS (darwin 25.4.0, arm64)\n\n## Reproduction\n\n```\n$ nornicdb serve --address 127.0.0.1 --bolt-port 7687 --http-port 7474 ...\n```\n\nOutput claims Bolt is on localhost:\n```\nBolt server listening on bolt://localhost:7687\n```\n\nBut the actual socket:\n```\n$ netstat -an -p tcp | grep 7687\ntcp46      0      0  *.7687                 *.*                    LISTEN\n\n$ lsof -iTCP:7687 -sTCP:LISTEN -n -P\nnornicdb ... IPv6 ... TCP *:7687 (LISTEN)\n```\n\nHTTP port is correctly bound:\n```\ntcp4  127.0.0.1.7474   *.*  LISTEN\n```\n\nReachable from another host on the LAN:\n```\n$ nc -z 192.168.x.y 7687\nConnection to 192.168.x.y port 7687 [tcp/*] succeeded!\n```\n\nSetting `NORNICDB_BOLT_ADDRESS=127.0.0.1` or `server.host: \"127.0.0.1\"` in `config.yaml` has **no effect** on the Bolt listener.\n\n## Root Cause\n\nIn `pkg/bolt/server.go:774-776`:\n\n```go\nfunc (s *Server) ListenAndServe() error {\n    addr := fmt.Sprintf(\":%d\", s.config.Port)\n    listener, err := net.Listen(\"tcp\", addr)\n    ...\n}\n```\n\n`bolt.Config` (line 474) has no `Host`/`Address`/`Addr` field — only `Port`. The CLI flag `--address` is stored in a local variable in `cmd/nornicdb/main.go:80` and used to format user-facing log output (line 637–644), but is never copied into `boltConfig` at line 600–609 when Bolt is initialized.\n\nSince `ListenAndServe` calls `net.Listen(\"tcp\", \":7687\")` with an empty host, Go binds the wildcard socket on all interfaces.\n\n## Suggested Fix\n\n1. Add a `Host string` field to `bolt.Config` (default `\"127.0.0.1\"`, matching the CLI flag default).\n2. In `cmd/nornicdb/main.go` around line 601, wire it through:\n   ```go\n   boltConfig.Host = address\n   boltConfig.Port = boltPort\n   ```\n3. In `pkg/bolt/server.go:775`, use the host:\n   ```go\n   addr := net.JoinHostPort(s.config.Host, strconv.Itoa(s.config.Port))\n   ```\n\n## Security Impact\n\n- Default `admin:password` credentials + wildcard binding = anyone on the same WiFi can issue arbitrary Cypher queries (read, write, delete nodes) against NornicDB instances running with default setup.\n- Users following the README will reasonably assume `--address 127.0.0.1` (the documented default) binds *both* protocols to localhost.\n- Workaround: host-firewall rules (e.g. macOS `pf`) blocking non-loopback → 7687. Not discoverable from the docs.","format":"markdown","source":"ghsa"},{"lang":"en","text":"NornicDB has Improper Network Binding in its Bolt Server, allowing unauthorized remote access in github.com/orneryd/nornicdb","format":"markdown","source":"go"},{"lang":"es","text":"Nornicdb es una MVCC Temporal distribuida de baja latencia, Grafo+Vector, con búsqueda HNSW de sub-ms, recorrido de grafos y escrituras. Antes de la versión 1.0.42-hotfix, la bandera CLI --address (y la clave de configuración NORNICDB_ADDRESS / server.host) se canaliza correctamente al servidor HTTP pero nunca llega a la configuración del servidor Bolt. El oyente de Bolt, por lo tanto, siempre se enlaza a la dirección comodín (todas las interfaces), independientemente de lo que el usuario configure. En una LAN, esto expone la base de datos de grafos - con sus credenciales predeterminadas admin:password - a cualquier dispositivo que comparta la red. Este problema ha sido parcheado en la versión 1.0.42-hotfix.","source":"nvd"}],"published":"2026-04-22T22:03:43.000Z","modified":"2026-10-26T18:10:00.173Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-1392"],"affected":[{"ranges":[{"version":"< 1.0.42-hotfix","status":"affected"}],"vendor":"orneryd","product":"NornicDB","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.42-hotfix"}],"ecosystem":"Go","package":"github.com/orneryd/nornicdb","purl":"pkg:golang/github.com/orneryd/nornicdb","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.42-hotfix"}],"ecosystem":"Go","package":"github.com/orneryd/nornicdb","purl":"pkg:golang/github.com/orneryd/nornicdb","source":"go"}],"references":[{"url":"https://github.com/orneryd/NornicDB/security/advisories/GHSA-2hp7-65r3-wv54","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/orneryd/NornicDB/commit/adce4f9a9fc7b6aada07c0bfa2d737cd7a6efaca","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/orneryd/NornicDB/releases/tag/v1.0.42","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42072","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/orneryd/NornicDB","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/orneryd/NornicDB/releases/tag/v1.0.42-hotfix","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-05-12T02:03:01.031Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42072","url":"https://www.cve.org/CVERecord?id=CVE-2026-42072","licence":"CVE Terms of Use","modified":"2026-05-12T02:04:18.612Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2hp7-65r3-wv54","url":"https://github.com/advisories/GHSA-2hp7-65r3-wv54","licence":"CC-BY-4.0","modified":"2026-05-20T19:41:02.281Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4967","url":"https://pkg.go.dev/vuln/GO-2026-4967","licence":"CC-BY-4.0","modified":"2026-05-20T19:30:12.961Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42072","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42072","licence":"Public domain","modified":"2026-10-26T18:10:00.173Z"}],"updatedAt":"2026-11-25T22:59:21.103Z","epss":{"score":0.0044,"percentile":0.39963,"date":"2026-12-01T12:00:22.000Z"}}