[GH-ISSUE #2763] Security Issue: Setup keys are stored unencrypted in database table "setup_keys" #6147

Open
opened 2026-08-05 01:06:56 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @florian-obradovic on GitHub (Oct 20, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/2763

Describe the problem

The setup keys are stored unencrypted in the database (at least for sqlite3) which is very bad.
If the backend or storage (Cloud & Selfhosted) gets compromised, anyone can use the setup keys to provision new peers.

To Reproduce

  1. sudo sqlite3 /var/lib/docker/volumes/artifacts_netbird-mgmt/_data/store.db Adjust the path to your docker volume
  2. select * from setup_keys;

Expected behavior
Store the setup keys encrypted by using at least salted hashes (More infos: https://www.vaadata.com/blog/how-to-securely-store-passwords-in-database/)

Are you using NetBird Cloud?

Selfhsoted

NetBird version
0.30.2

Originally created by @florian-obradovic on GitHub (Oct 20, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/2763 **Describe the problem** The setup keys are stored unencrypted in the database (at least for sqlite3) which is very bad. If the backend or storage (Cloud & Selfhosted) gets compromised, anyone can use the setup keys to provision new peers. **To Reproduce** 1. `sudo sqlite3 /var/lib/docker/volumes/artifacts_netbird-mgmt/_data/store.db` Adjust the path to your docker volume 2. `select * from setup_keys;` **Expected behavior** Store the setup keys encrypted by using at least salted hashes (More infos: https://www.vaadata.com/blog/how-to-securely-store-passwords-in-database/) **Are you using NetBird Cloud?** Selfhsoted **NetBird version** 0.30.2
saavagebueno added the serversecurity labels 2026-08-05 01:06:56 -04:00
Sign in to join this conversation.
No Label security server
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#6147