CVE-2026-42072: Github.com/orneryd/nornicdb NornicDB Has Improper Network Binding Vulnerability

CRITICAL
Advisory Identifier: GHSA-2hp7-65r3-wv54
CVSS 9.8
CWE-1392
Published
Advisory Summary

CVE-2026-42072 is a CRITICAL (CVSS 9.8) nornicdb has improper network binding vulnerability (CWE-1392: Use of Default Credentials) affecting Github.com/orneryd/nornicdb libraries in the Go ecosystem. The issue involves nornicdb has improper network binding in its bolt server, allowing unauthorized remote access. Remediation is available by upgrading affected packages to version 1.0.42-hotfix.

CVE-2026-42072 at a Glance

CVE Identifier CVE-2026-42072
GHSA Identifier GHSA-2hp7-65r3-wv54
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-1392: Use of Default Credentials
Affected Product Github.com/orneryd/nornicdb
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.8

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:H/A:H).

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 High (I:H)
Availability High (A:H)

How to Fix CVE-2026-42072

To remediate this vulnerability, upgrade all affected Github.com/orneryd/nornicdb 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/orneryd/nornicdb fixed: 1.0.42-hotfix
Upgrade github.com/orneryd/nornicdb to 1.0.42-hotfix
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/orneryd/nornicdb

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-42072, inspect your project dependencies for Github.com/orneryd/nornicdb:

inspect dependencies for github.com/orneryd/nornicdb

Analyze the terminal output to locate any version of Github.com/orneryd/nornicdb in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.42-hotfix), 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-1392: Use of Default Credentials, where the product uses default credentials (such as passwords or cryptographic keys) for potentially critical functionality. In Github.com/orneryd/nornicdb, 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

## Summary 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. ## Version - `nornicdb v1.0.39` - Built from commit `afe7c9d` on `main` - Platform: macOS (darwin 25.4.0, arm64) ## Reproduction ``` $ nornicdb serve --address 127.0.0.1 --bolt-port 7687 --http-port 7474 ... ``` Output claims Bolt is on localhost: ``` Bolt server listening on bolt://localhost:7687 ``` But the actual socket: ``` $ netstat -an -p tcp | grep 7687 tcp46 0 0 *.7687 *.* LISTEN $ lsof -iTCP:7687 -sTCP:LISTEN -n -P nornicdb ... IPv6 ... TCP *:7687 (LISTEN) ``` HTTP port is correctly bound: ``` tcp4 127.0.0.1.7474 *.* LISTEN ``` Reachable from another host on the LAN: ``` $ nc -z 192.168.x.y 7687 Connection to 192.168.x.y port 7687 [tcp/*] succeeded! ``` Setting `NORNICDB_BOLT_ADDRESS=127.0.0.1` or `server.host: "127.0.0.1"` in `config.yaml` has **no effect** on the Bolt listener. ## Root Cause In `pkg/bolt/server.go:774-776`: ```go func (s *Server) ListenAndServe() error { addr := fmt.Sprintf(":%d", s.config.Port) listener, err := net.Listen("tcp", addr) ... } ``` `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. Since `ListenAndServe` calls `net.Listen("tcp", ":7687")` with an empty host, Go binds the wildcard socket on all interfaces. ## Suggested Fix 1. Add a `Host string` field to `bolt.Config` (default `"127.0.0.1"`, matching the CLI flag default). 2. In `cmd/nornicdb/main.go` around line 601, wire it through: ```go boltConfig.Host = address boltConfig.Port = boltPort ``` 3. In `pkg/bolt/server.go:775`, use the host: ```go addr := net.JoinHostPort(s.config.Host, strconv.Itoa(s.config.Port)) ``` ## Security Impact - 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. - Users following the README will reasonably assume `--address 127.0.0.1` (the documented default) binds *both* protocols to localhost. - Workaround: host-firewall rules (e.g. macOS `pf`) blocking non-loopback → 7687. Not discoverable from the docs.

CVE-2026-42072 Affected Github.com/orneryd/nornicdb Versions

1 component(s)
Fixed Versions:
1.0.42-hotfix
Product / Package Ecosystem Affected Versions Fixed Version
github.com/orneryd/nornicdb
Go
< 1.0.42-hotfix
1.0.42-hotfix

References

Frequently Asked Questions

What is CVE-2026-42072?
CVE-2026-42072 is a security vulnerability in Github.com/orneryd/nornicdb involving NornicDB has Improper Network Binding in its Bolt Server, allowing unauthorized remote access under CWE-1392: Use of Default Credentials.
Which Github.com/orneryd/nornicdb versions are affected?
Affected versions include releases prior to 1.0.42-hotfix across affected packages: github.com/orneryd/nornicdb.
What version fixes CVE-2026-42072?
Upgrading to 1.0.42-hotfix (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/orneryd/nornicdb affected?
Yes, github.com/orneryd/nornicdb is affected in releases prior to 1.0.42-hotfix. Upgrade your dependency to 1.0.42-hotfix or later.
What is the CVSS score of CVE-2026-42072?
CVE-2026-42072 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-42072?
CVE-2026-42072 is classified under CWE-1392: Use of Default Credentials (The product uses default credentials (such as passwords or cryptographic keys) for potentially critical functionality.).
How can I check Go dependencies for CVE-2026-42072?
Run the dependency tree command: 'inspect dependencies for github.com/orneryd/nornicdb'. 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-2hp7-65r3-wv54",
  "modified" : "2026-05-13T13:30:30Z",
  "published" : "2026-04-22T22:03:43Z",
  "aliases" : [ "CVE-2026-42072" ],
  "summary" : "NornicDB has Improper Network Binding in its Bolt Server, allowing unauthorized remote access",
  "details" : "## 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/orneryd/nornicdb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.42-hotfix"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/orneryd/NornicDB/security/advisories/GHSA-2hp7-65r3-wv54"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42072"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/orneryd/NornicDB/commit/adce4f9a9fc7b6aada07c0bfa2d737cd7a6efaca"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/orneryd/NornicDB"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/orneryd/NornicDB/releases/tag/v1.0.42"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/orneryd/NornicDB/releases/tag/v1.0.42-hotfix"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1392" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-22T22:03:43Z",
    "nvd_published_at" : "2026-05-08T17:16:31Z"
  }
}