Skip to content

CVE scan: tracking issue #157

Open
Open

Description

@seberm

This issue is maintained by the CVE scan workflow. It runs on Mondays and Thursdays and scans the runtime closure of a representative node with vulnix.

The report below the marker is written by the job. Don't edit it, because the job rewrites that part. Everything above the marker is ours: put triage notes here.

The job comments only when the set of package/CVE pairs changes. Triage rules and the whitelist policy are in SECURITY.md.

Triage notes:

CVE scan — 2026-11-30T17:34Z

Scanned: representative node toplevel (secure-node preset: tor, operator, nodeinfo; bitcoind + clightning/clnrest + lnd + charge-lnd + electrs + fulcrum + btcpayserver/nbxplorer + mempool + rtl + unbeholden-wallet + backups), runtime closure
Affected store paths with non-whitelisted CVEs: 0

No action needed.

Activity

  1. added
    type: security
    area: packages
    on Oct 27, 2026
  2. pinned this issue on Oct 27, 2026
  3. github-actions commented on Oct 27, 2026

    @github-actions

    CVE set changed on 2026-10-27

    New: 62, resolved: 0, active: 62.

    New

    Run: https://github.com/bitcoinix/bitcoinix/actions/runs/40483077402

  4. ostermayer commented on Oct 27, 2026

    @ostermayer
    Collaborator

    I went through the 62 pairs from the first run. I built the scan target from master on my KVM host, ran nix why-depends and nix derivation show on the closure, and checked each CVE against NVD and the nixpkgs sources. 42 of the 62 don't apply to what we ship, and 20 are real.

    vulnix misses patches in packages built with __structuredAttrs, 10 pairs. All ten libssh2 CVEs have CVE-named patches in nixpkgs at our pin (pkgs/by-name/li/libssh2/package.nix, both the 26.05 and the unstable revision). libssh2 is built with __structuredAttrs, so patches lives in the __json env var, and vulnix 1.12.4 only reads the plain patches variable. Upstream fixed that in nix-community/vulnix@3596c69 on 2026-10-19, after the last release 1.12.5. I'll open a PR that runs the scan with a pinned vulnix revision instead of nixpkgs#vulnix, so this class disappears instead of growing with every package that nixpkgs moves to structured attrs.

    Fixed by a nixpkgs patch that isn't CVE-named, 8 pairs. glibc 2.42-100 carries 2.42-master.patch, the whole glibc release branch, and that patch contains the fixes for all eight reported CVEs (CVE-2025-15281, CVE-2026-4046, 4437, 4438, 5435, 5450, 5928, 6238). Same for the two on glibc 2.44-57 via 2.44-master.patch. vulnix can't see that, so these need whitelist entries with that reason, or the whitelist needs a rule for glibc that someone re-checks on each glibc bump.

    Name collisions and parse errors, 7 pairs.

    • zlib CVE-2023-6992 is the Cloudflare zlib fork and CVE-2026-27820 is the Ruby zlib gem.
    • ada CVE-2024-9410 is Ada.cx, not the URL parser.
    • dbus 1 is the dbus-1 etc directory derivation parsed as dbus version 1. The real dbus in the closure is 1.16.2, and the three CVEs were fixed in 1.14.4.
    • gcc CVE-2023-4039 is an AArch64 -fstack-protector code generation flaw. The closure has only libgcc, on x86_64.

    Library in the closure, vulnerable program not, 14 pairs. cups 2.4.19 and avahi 0.8 come in as cups-lib and libavahi through qtbase for fulcrum. The nine cups CVEs are in cupsd, the scheduler and the ipp backend, and CVE-2022-26691 is an Apple macOS CVE. The two avahi CVEs are a Debian init script and the daemon's simple protocol server. nghttp2 CVE-2026-58055 is the nghttpx proxy. busybox is Nix's build sandbox shell (nix-store references it). lief is a leftover reference of nodejs-slim, nothing runs it. All N/A for the node.

    NVD range says we're fixed, 3 pairs. The three perl CVEs (CVE-2026-13221, CVE-2026-57432, CVE-2026-8376) all have the range "from 5.41.0 before 5.42.3-RC1". We ship 5.42.3. vulnix compares the version wrong here. Whitelist with that reason.

    Real, 20 pairs.

    • openssh 10.5p1, 9 CVEs, all fixed in 10.6. nixos-26.05 is still on 10.5p1, unstable has 10.6p1. Needs a nixpkgs backport or an override in pkgs/. The node runs sshd, so this one matters most.
    • dhcpcd 10.3.1, 4 CVEs. NVD says "through 10.3.2, fixed in commit", so even unstable's 10.3.2 is affected. Needs patches in nixpkgs. dhcpcd is in the system path from networking.useDHCP.
    • sqlite 3.51.2, 2 CVEs in FTS5, fixed in 3.53.2. nixos-26.05 has 3.51.2, unstable has 3.53.3. The 26.05 sqlite is what bitcoind, tor and the base system link.
    • libusb 1.0.29, 2 CVEs, fixed in 1.0.30, which unstable has. It comes in through gnupg for duplicity.
    • jq 1.8.2, CVE-2026-44777, module loader recursion with crafted modules. Our scripts don't load modules. Low.
    • patch 2.8, 2 CVEs with crafted diffs. It's in the NixOS base path, nobody feeds it untrusted input on a node. Low.

    Side note on the closure: there's no build tooling in it. patch and perl are NixOS base packages (requiredPackages and defaultPackages), and the two glibc, zlib, nghttp2 and sqlite versions are the two nixpkgs pins, 26.05 for the system and unstable for the pinned daemons. So the scan target is right.

    If you want them, I can send: the vulnix pin PR (coming anyway), a whitelist PR for the 32 verified N/A pairs with one entry per package and the reasons above, and an override for openssh 10.6p1 in pkgs/ until 26.05 moves.

  5. github-actions commented on Oct 29, 2026

    @github-actions
  6. ostermayer commented on Oct 31, 2026

    @ostermayer
    Collaborator

    Triage of the brotli CVE-2026-111497 pair the 2026-10-29 run added.

    It's real, not a whitelist case. The pair comes from brotli-1.2.0-lib out of the unstable pin (e62746b). That package carries one patch, google/brotli e230f474, which only disables the BROTLI_MODEL macro on some targets. The fix is brotli 1.2.1 (released 2026-10-21). nixpkgs merged the 1.2.1 bump into staging on 2026-10-22 (NixOS/nixpkgs#577208) and backported it to staging-next-26.05, which is why our stable pin (08d3a97) already has 1.2.1 and the unstable pin doesn't. nixpkgs-unstable still has 1.2.0 today. It will move when the current staging-next cycle merges, and the next pin update picks it up.

    Nothing in the node decodes untrusted brotli with it. I built the scan target from master 963bff8 on my KVM host and ran nix why-depends on the toplevel. The vulnerable library is referenced by exactly two paths:

    • curl-8.22.0 (unstable), which only libpq-18.6 links, which only clightning-26.06.9 links. libpq uses libcurl for the OAuth device flow and nothing else, and the default clightning backend is sqlite3, so no network data reaches that libcurl.
    • freetype-2.14.3 (unstable), linked by fontconfig and cairo in Fulcrum's Qt closure. freetype uses brotli for WOFF2 font files. Nothing in the node loads fonts from the network.

    Node.js (RTL, mempool) and .NET (BTCPay Server, NBXplorer) don't touch this path: RTL and mempool use the stable nodejs_22 and nodejs_26, which link the fixed brotli 1.2.1, and the pinned .NET runtime on unstable is 8.0.33, which has Microsoft's fix for its bundled copy.

    So the entry stays red until the unstable pin moves, and I'd leave it that way instead of whitelisting it, because the package really is vulnerable and the fix is days away.

    Checked with Fable 5.1. The dependency walk is from nix path-info -r and nix why-depends on the built toplevel.

  7. github-actions commented on Nov 2, 2026

    @github-actions

    CVE set changed on 2026-11-02

    New: 1, resolved: 32, active: 32.

    New

    Resolved

    Run: https://github.com/bitcoinix/bitcoinix/actions/runs/41457414825

  8. github-actions commented on Nov 2, 2026

    @github-actions
  9. github-actions commented on Nov 5, 2026

    @github-actions
  10. github-actions commented on Nov 19, 2026

    @github-actions

    CVE set changed on 2026-11-19

    New: 0, resolved: 15, active: 8.

    Resolved

    Run: https://github.com/bitcoinix/bitcoinix/actions/runs/44547436801

  11. seberm commented on Nov 19, 2026

    @seberm
    ContributorAuthor

    Triage of the 2026-11-19 scan (8 active CVEs). I built test/ci/scan-node.nix at e608816, traced each package with nix why-depends, and checked every CVE against NVD and the upstream advisories. All 8 are the same at the current nixos-unstable head (0490633), so moving the pin alone fixes nothing today.

    Can be whitelisted (all three fit existing groups in .github/cve-whitelist.toml):

    • brotli 1.2.1, CVE-2026-111497 (name collision): NVD lists google:brotli as affected only below 1.2.1, and nixpkgs ships 1.2.1. The match most likely comes from andybalholm:brotli (the Go package, <1.2.7), because vulnix matches on the product name and ignores the vendor. The real issue, 1.2.0, was fixed by the 5574b10 pin bump.
    • jq 1.8.2, CVE-2026-44777 (range misread): the jq advisory GHSA-rmpv-jgvr-wpr9 says versions up to 1.8.1 are affected and 1.8.2 is fixed. NVD's range wrongly includes 1.8.2.
    • sqlite 3.54.0, CVE-2026-119586 (library only): the bug is in the .recover command of the sqlite3 command-line tool. The closure contains only the sqlite-3.54.0 lib output; the bin output is not there.

    Leave reported:

    • rsync 3.5.0, CVE-2026-119741: rsync comes from NixOS's default environment.defaultPackages (perl, rsync, strace), not from bitcoinix. The bug is a CPU-exhaustion DoS against a public rsync daemon, which a node doesn't run. 3.5.2 (the fix) is already in nixpkgs staging (rsync: 3.5.0 -> 3.5.2 NixOS/nixpkgs#583133) and arrives with a later pin bump. bitcoinix should not empty defaultPackages: it is the host's config, and krops deployments likely need rsync on the target.
    • dhcpcd 10.3.2, CVE-2026-56113/56114/56116/56117: dhcpcd comes from NixOS's default networking (networking.useDHCP = true, scripted networking), not from bitcoinix. This is the only real, exposed finding: attackers on the same link can exploit it with crafted DHCPv6 messages and router advertisements. All four fixes are in dhcpcd 10.5.0+ (released August), but nixpkgs is still on 10.3.2. The update is dhcpcd: 10.3.2 -> 10.5.2 NixOS/nixpkgs#562813, held up only by a release note (the control socket becomes root-only).

    Needs handling:

    1. A PR adding the three whitelist entries above, each with a narrow cve = [...] list.
    2. Pushing dhcpcd: 10.3.2 -> 10.5.2 NixOS/nixpkgs#562813 forward (a review or approval would help), then bumping the pin once it reaches nixos-unstable (track: https://pr.bitcoinix.net/?pr=562813). A bitcoinix-side override would not help, because dhcpcd is part of the host's system, not a bitcoinix package. Until then, nodes that use systemd-networkd or static addressing don't run dhcpcd.
    3. A pin bump once rsync 3.5.2 (rsync: 3.5.0 -> 3.5.2 NixOS/nixpkgs#583133) reaches nixos-unstable (track: https://pr.bitcoinix.net/?pr=583133), which will likely be the same bump as for dhcpcd.

    Assisted-by: Claude Code (Claude Opus 5.5)

  12. github-actions commented on Nov 23, 2026

    @github-actions

    CVE set changed on 2026-11-23

    New: 0, resolved: 3, active: 5.

    Resolved

    Run: https://github.com/bitcoinix/bitcoinix/actions/runs/45218622266

  13. github-actions commented on Nov 30, 2026

    @github-actions

    CVE set changed on 2026-11-30

    New: 0, resolved: 5, active: 0.

    The scan is clean.

    Resolved

    Run: https://github.com/bitcoinix/bitcoinix/actions/runs/46474528649

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: packagestype: security

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions