Skip to content

fix(security): except libssh2 CVE batch and prune dead vulnix exceptions - #1329

Merged
c-vigo merged 1 commit into
devfrom
bugfix/1327-reconcile-vulnixignore-register
Aug 4, 2026
Merged

c-vigo merged 1 commit into
devfrom
bugfix/1327-reconcile-vulnixignore-register

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Remediates the nightly vulnix gate failure that has been red on both refs since
2026-07-31 (run 30614074169
→ #1322 dev / #1323 main, and again 08-01/08-02/08-03), and the two register
exceptions that lapsed on 2026-08-03 — which since today fail check-expirations in
the pre-commit hook and at ci.yml:390, i.e. on every branch, not just the nightly.

Both refs share the same nixpkgs pin (nixos-26.05 @ 8623c4c2), so this single
register fix covers both; main goes green at the next promote. Register-only — no
image or code change.

  • New libssh2 block (expires 2026-08-31): the three unexcepted HIGH findings —
    CVE-2026-66033, CVE-2026-66034, CVE-2026-66035 (7.5 each), disclosed 2026-07-24 and
    in the vulnix feed from 07-30. A findings diff against the last green run (30523258723)
    confirms these three are the only delta. All are client-side flaws requiring a
    connection to a malicious SSH server; libssh2 enters the closure only as curl's
    scp/sftp backend (git uses openssh), the same reachability class as the accepted
    CVE-2026-58050. No rev-advance exists: upstream has published no release since
    1.11.1 (2024-10-16) and NixOS/nixpkgs#547491
    is open against staging, gated behind nixpkgs#546446, with a release-26.05
    backport still to come.

  • Five dead exceptions pruned. All were already fixed at the pinned rev by the
    Advance pinned nixpkgs rev to drop propagated vulnix exception blocks (openssl, curl, openssh, jq) #1273 pin advance, which the register was never reconciled against:

    Removed Package Why it was already dead
    CVE-2026-55200 libssh2 pin applies CVE-2026-55200.patch (nixpkgs f6ae2642, 2026-07-01) — vulnix credits CVE-named patches, so it stopped reporting it
    CVE-2026-41992 gzip pin applies CVE-2026-41992.patch
    CVE-2026-11979 libxml2 pin applies CVE-2026-11979.patch (both attrs)
    CVE-2026-56123 socat pin ships 1.8.1.3, past the 1.8.1.2 fix
    CVE-2026-10846 ldns pin ships 1.9.2 (register said 1.9.0)

    The first and fourth are the entries that lapsed on 2026-08-03. Each removal leaves a
    dated comment in place of the entry, so the register still records the decision.

  • podman CVE-2026-57231 renewed 2026-08-06 → 2026-08-31 (it lapses in two days).
    Re-verified today: nixos-26.05 HEAD still ships 5.8.2 and the backport
    nixpkgs#536367 is still a draft,
    untouched since 2026-07-20 — no lever. Aligned to 08-31 with the libssh2 and unbound
    blocks so the register gets one combined re-review pass.

Every entry checked

All 31 remaining entries were diffed against the 2026-08-03 findings and against the
package state at the pinned rev. The only entries that no longer correspond to a
finding are the three Class-1 Jenkins-Git CPE collisions (CVE-2022-30947/-36882/-36883);
they are documented false positives on a yearly re-check (exp 2027-06-23) and are kept
as-is — dropping them buys nothing and risks flapping if the NVD CPE data changes back.
Everything else (glibc ×6, zlib, sqlite ×2, libmicrohttpd ×2, fzf ×2, libssh2
CVE-2026-58050, gawk ×4, unbound ×5, shellcheck) is still reported and correctly retained.

Verification

Both gates replayed locally against the real artifacts from the failing run
(30797351489), for each ref:

$ uv run check-expirations .trivyignore .vulnixignore
Validated 35 exception(s) across 2 file(s)                                   # exit 0

$ uv run vulnix-gate nix-image-cve-scan-dev/vulnix-findings.json  --register .vulnixignore
No unexcepted HIGH/CRITICAL findings (CVSS >= 7.0); 31 exception(s) applied  # exit 0
$ uv run vulnix-gate nix-image-cve-scan-main/vulnix-findings.json --register .vulnixignore
No unexcepted HIGH/CRITICAL findings (CVSS >= 7.0); 31 exception(s) applied  # exit 0

pre-commit run --all-files green in the working tree (51 hooks passed, exit 0).

Follow-ups (not in this PR)

Closes #1327. Also resolves #1322 and #1323 (close manually after merge — Closes does
not auto-close on dev-targeted PRs).

Add a time-boxed .vulnixignore block (expires 2026-08-31) for the three HIGH
libssh2 1.11.1 CVEs disclosed 2026-07-24 that turned the nightly vulnix gate
red on dev and main from 2026-07-31: CVE-2026-66033, -66034, -66035. All three
are client-side flaws requiring a connection to a malicious SSH server; libssh2
enters the closure only as curl's scp/sftp backend. Upstream has published no
release since 1.11.1 and the nixpkgs patches (NixOS/nixpkgs#547491) are still
on staging behind #546446, so no rev-advance is available.

Prune five entries that are already fixed at the pinned rev by the #1273 pin
advance, which the register was never reconciled against: CVE-2026-55200
(libssh2), CVE-2026-41992 (gzip) and CVE-2026-11979 (libxml2) carry CVE-named
nixpkgs patches, which vulnix credits; socat is at 1.8.1.3 (CVE-2026-56123) and
ldns at 1.9.2 (CVE-2026-10846). The libssh2 and socat entries lapsed on
2026-08-03, failing check-expirations on every branch.

Renew podman CVE-2026-57231 (lapsing 2026-08-06) to 2026-08-31: nixos-26.05
still ships 5.8.2 and the release-26.05 backport is still a draft.

Refs: #1327
@c-vigo c-vigo added bug Something isn't working priority:high Should be done in the current milestone area:image Container image, Dockerfile, build security Vulnerability fixes or security improvements security-scan Automated nightly security scan findings for the Nix devcontainer image labels Aug 4, 2026
@c-vigo
c-vigo merged commit 13417e4 into dev Aug 4, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/1327-reconcile-vulnixignore-register branch August 4, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:image Container image, Dockerfile, build bug Something isn't working priority:high Should be done in the current milestone security Vulnerability fixes or security improvements security-scan Automated nightly security scan findings for the Nix devcontainer image

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant