Skip to content

fix(security): except perl 5.42.0 CVE batch pending upstream stable fix - #1098

Merged
c-vigo merged 1 commit into
devfrom
bugfix/1094-perl-vulnix-exceptions
Jul 15, 2026
Merged

c-vigo merged 1 commit into
devfrom
bugfix/1094-perl-vulnix-exceptions

Conversation

@c-vigo

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

Copy link
Copy Markdown
Contributor

Summary

The nightly vulnix gate (run 29396607272) went red on two new HIGH/CRITICAL findings in perl 5.42.0. Running the real vulnix-gate against the run's vulnix-findings.json with the live register confirmed these are the only blocking findings — every other reported CVE (curl, gawk, openssh, glibc, openssl, …) is still masked by a non-expired exception.

CVE CVSS Description
CVE-2026-13221 9.1 16-bit trie-delta overflow in Perl_study_chunk; regex alternations of >65535 fixed branches silently miscompile (false pos/neg matches). Correctness bug; needs a pathological developer-authored pattern.
CVE-2026-57432 8.4 Integer overflow in S_measure_struct → OOB heap read in pack/unpack when the template derives from untrusted input (info disclosure).

Remediation

Both fixes exist only in the perl 5.43.x development series (fixed in 5.43.10). Stable perl is 5.42.0 in the pinned rev, nixos-26.05, and Debian stable — all unpatched, no backport — so the "advance the rev" lever has nowhere to land today. perl is in-closure via git's perl-based subcommands (send-email/instaweb), same provenance as the existing CVE-2026-4176 entry, and processes developer/CI-chosen inputs only (no untrusted-input path in the single-user dev model).

This PR adds a time-boxed .vulnixignore exception (Expiration: 2026-08-14) with a verified rationale, mirroring the #1071/#1072 gawk triage. Flip to a nixpkgs rev-advance once a patched perl reaches the pinned channel.

Verification

  • vulnix-gate against the run's artifact with the edited register: 0 blocking findings (was 2).
  • check-expirations: all 60 exceptions validated.
  • just precommit (full suite, --all-files): green.

Closes #1094

Add a time-boxed .vulnixignore block for CVE-2026-13221 (9.1) and
CVE-2026-57432 (8.4) in perl 5.42.0, the two new HIGH/CRITICAL findings
that failed the nightly vulnix gate (run 29396607272). Both fixes exist
only in the perl 5.43.x dev series (fixed in 5.43.10); stable perl is
5.42.0 in the pinned rev, nixos-26.05, and Debian stable, so there is no
rev to advance to yet. perl is in-closure via git's perl-based
subcommands and processes developer/CI-chosen inputs only. Short expiry
(2026-08-14) forces re-review once a patched perl reaches the channel.

Refs: #1094
@c-vigo
c-vigo enabled auto-merge July 15, 2026 07:27
@c-vigo
c-vigo merged commit e34e192 into dev Jul 15, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/1094-perl-vulnix-exceptions branch July 15, 2026 07:36
c-vigo added a commit that referenced this pull request Jul 15, 2026
After #1107 swapped full git for gitMinimal, perl 5.42.0's sole image
anchor was neovim -> wl-clipboard -> xdg-utils -> perl. The nixpkgs neovim
wrapper bakes wl-clipboard as the Wayland clipboard provider, which is dead
code in a headless container; nvim >= 0.10 uses OSC52 natively over VS Code
remote / SSH. Re-wrap neovim-unwrapped with wrapNeovimUnstable and
waylandSupport = false for the image only (dev-shell keeps stock neovim via
devTools), evicting the wl-clipboard -> xdg-utils -> perl subtree (~108 MiB).

With perl gone from the closure, delete its 5.42.0 CVE exception batch from
.vulnixignore (CVE-2026-4176, CVE-2026-13221, CVE-2026-57432) instead of
maintaining it pending an upstream stable fix (cf. #1097/#1098).

Refs: #1108
c-vigo added a commit that referenced this pull request Jul 15, 2026
## Summary

Final cut of epic #1103. After #1107 swapped full git for `gitMinimal`,
perl
5.42.0's **sole** remaining anchor was `neovim → wl-clipboard →
xdg-utils →
perl` — the nixpkgs neovim wrapper suffixes `wl-clipboard` as the
Wayland
clipboard provider, dead code in a headless container (no Wayland
socket; the
clipboard that actually works over VS Code remote / SSH is OSC52, native
in
nvim ≥ 0.10).

The stock wrapper exposes no `waylandSupport` knob via `.override`, so
the image
gets a `wrapNeovimUnstable pkgs.neovim-unwrapped` rewrap replicating the
legacy
defaults (`legacyWrapper = true` keeps the stock provider-disabling rc)
with
`waylandSupport = false`. Image-scoped via the established filter
pattern —
`devTools`/dev-shell keep the stock wrapped neovim, including its
`lowPrio`
(replicated, since devTools relies on it for the `vigos.editor`
collision rule,
#824).

**Security payoff:** with perl out of the closure, the perl 5.42.0 CVE
exception batch in `.vulnixignore` (#1097/#1098, "pending upstream
stable fix")
is **deleted** (38 lines: `CVE-2026-4176`, and the perl-only triage
block with
`CVE-2026-13221`/`CVE-2026-57432`) instead of being maintained. Shared
expiration headers and co-located non-perl entries kept intact;
`check-expirations` hook passes.

## Evidence (independently re-verified)

- Closure: 1,758,754,952 → 1,645,235,648 bytes (**−108.3 MiB** — the
issue
estimated ~55–60; the full perl-module stack + wl-clipboard + xdg-utils
came
  out with it)
- **`nix path-info -r | grep -iE 'perl|wl-clipboard|xdg-utils'` →
EMPTY**
  (baseline had 33 such paths)
- `nvim --version` → `NVIM v0.12.3`; `--headless +q` exits 0; the
wrapper
script contains zero wl-clipboard/xdg-utils references; under a clean
PATH
`:checkhealth` reports the benign "No clipboard tool found" (OSC52
territory),
  no crash
- No test or shipped-config changes needed: no image test asserts the
wrapped
  variant; no nvim config sets a clipboard provider
- Full hook suite green (`prek run --all-files`, exit 0)

Part of epic #1103 (sub-issue 5/5 — completes the epic).

Closes #1108
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