Skip to content

fix(security): except openssh CVE-2026-60002 pending nixpkgs 10.4p1 bump - #964

Merged
c-vigo merged 1 commit into
release/0.5.1from
bugfix/963-openssh-cve-2026-60002-exception
Jul 10, 2026
Merged

c-vigo merged 1 commit into
release/0.5.1from
bugfix/963-openssh-cve-2026-60002-exception

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

What & why

The nightly Scheduled Security Scan went red (run 29079456127, 2026-07-10) at the blocking vulnix-gate on CVE-2026-60002 — a use-after-free in the OpenSSH client (ssh(1), not sshd) triggered when a malicious/compromised server changes its host key during key re-exchange (CWE-416). CVSS 7.7 HIGH (MITRE) / 9.4 CRITICAL (NVD).

Fixed upstream in openssh 10.4p1 (2026-07-06), but the bump has not reached any nixpkgs branch yet (all still 10.3p1: nixos-26.05 pinned channel, release-26.05, staging-26.05, master, nixpkgs-unstable). It is merged into the 26.05 staging pipeline (nixpkgs #539452 → staging-nixos, backport #539933 → staging-nixos-26.05), so the "advance the rev" lever has nowhere to land today.

Change

Time-boxed .vulnixignore exception for CVE-2026-60002 (expires 2026-07-24) with full provenance/reachability rationale, matching the curl #941 / podman #905 precedent, plus a ### Security changelog entry (root + mirrored scaffold copy). Flip to a nixpkgs rev-advance once 10.4p1 reaches nixos-26.05; the short expiry forces near-term re-review.

Verification

  • check-expirations ✅ — 54 exceptions validated, none expired.
  • vulnix-gate simulation ✅ — with CVE-2026-60002 present the gate now passes (exit 0); a control un-excepted HIGH still fails, confirming the gate itself still works.
  • Full pre-commit suite green locally (incl. sync-manifest, so the two changelog mirrors are consistent).

Targets release/0.5.1 (release-cycle fix). Cherry-pick / forward to dev separately since main is affected identically.

Refs: #963

@c-vigo
c-vigo merged commit ebb3d87 into release/0.5.1 Jul 10, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/963-openssh-cve-2026-60002-exception branch July 10, 2026 09:08
c-vigo added a commit that referenced this pull request Jul 10, 2026
…966)

## What & why

Restores the deduplicated **auto-issue on scan failure** that was lost
in the Debian→Nix cutover (`1d4e9db1`), so a red nightly vulnix gate
surfaces as a GitHub issue rather than a silent red run. Full root-cause
history in #965.

The trigger case was 2026-07-10 ([run
29079456127](https://github.com/vig-os/devcontainer/actions/runs/29079456127),
CVE-2026-60002, fixed in #963/#964) — the first gate failure to reach
`main` post-0.5.0 with no issue-creation step, so it had to be caught by
hand.

## Change (single file: `.github/workflows/security-scan.yml`)

- Grant the `scan-nix-image` job `issues: write`.
- New step **"Open a tracking issue when the vulnix gate fails"**, gated
on `failure() && steps.vulnix-gate.outcome == 'failure'` (so infra/scan
crashes don't file a "findings" issue).
- Adapted from the old Debian step, with two improvements:
- **Dedup by the auto-issue's distinctive title**, not the
`security-scan` label alone — the old label-only dedup would now
false-match human-filed `security-scan` issues (e.g. #963, this #965)
and never fire.
- **Refreshes the stale label description** (`--force`): was *"...for
:latest image"*, now the Nix image.
- Body links the run + the `nix-image-cve-scan` artifact
(`vulnix-findings.json`/`vulnix-report.txt`) and gives the remediate
path (advance the pin or add a time-boxed `.vulnixignore` exception).
- Updated two stale doc comments (header "On failure" note; the old "can
be added alongside the publish-cutover" TODO).

## Verification

- Full `pre-commit` suite green (yamllint, check-action-pins — no new
pinned action, `gh` CLI only).
- Embedded `run:` script `shellcheck`-clean and dry-run rendered: search
arg `"Nightly security scan: …" in:title` and the heredoc body
(backticks literal, `$(date)`/`${RUN_URL}` expanded) both correct.

**Not changelog-tracked** (`ci` scope, maintainer-facing CI infra).
Targets `release/0.5.1` so 0.5.1 ships with working alerting.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant