fix(ingest): bump klauspost/compress to v1.20.2 — crafted frame panicked the receiver (GO-2026-6865) (#2013)

## QA pass finding: a crafted compressed frame could panic the ingest
receiver (GO-2026-6865)

`services/ingest` pinned `github.com/klauspost/compress v1.20.1`
(indirect). GO-2026-6865 / CVE-2026-116591 (published 2026-11-05): the
fse/huff0 decoders panic on crafted two-block frames.

govulncheck traced the vulnerable calls as **reachable from production
code** — `otlp.Receiver.writeProto` →
`middleware.compressResponseWriter.Write` → `fse.Compress` /
`fse.Decompress` / `huff0.Compress1X` / `huff0.Compress4X` — on the one
service that takes events off the network, where a panic is an
attacker-reachable denial of service.

### The change
One-line bump to the fixed release: `go get
github.com/klauspost/compress@v1.20.2 && go mod tidy` (go.mod + go.sum
only).

### Evidence (negative control is the pre-fix scan)
- **Before:** `govulncheck ./...` → “Your code is affected by 24
vulnerabilities from **1 module** and the Go standard library”, with the
four call traces above attributed to
`github.com/klauspost/compress@v1.20.1`, “Fixed in: v1.20.2”.
- **After:** “Your code is affected by 23 vulnerabilities from **the Go
standard library**” — zero module findings. The stdlib entries track the
*builder's* Go patch level (scan ran on local go1.26.3); the shipped
image builds `FROM golang:1.26-alpine`, which picks up the current patch
release at build time, so those heal on rebuild and nothing in the tree
pins them.
- `go build ./...` clean; `go test ./...` — **all 17 ingest packages
pass** on the new pin.

### Why CI's Security Audit did not flag it
The audit's staged policy fails only on high/critical; this advisory
sits below that bar, so the gate tolerating it is policy working as
designed. Fixed anyway because the path is attacker-reachable on the
network-facing service and the fix is a patch-release bump.

### Could not verify
- No public PoC frame was available to demonstrate the panic live
against a running receiver; reachability is established by govulncheck's
call-graph traces quoted above, not by a live exploit.
This commit is contained in:
Beenu Arora
2026-11-22 14:37:50 -08:00
committed by GitHub
parent a42feeb57b
commit fd7b246c24
3 changed files with 19 additions and 3 deletions
+16
View File
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Security
- **A malformed compressed frame can no longer panic the ingest receiver**
(GO-2026-6865 / CVE-2026-116591). `services/ingest` pinned
`github.com/klauspost/compress v1.20.1` (indirect), whose fse/huff0
decoders panic on crafted two-block frames — and govulncheck traced the
vulnerable calls as reachable from `otlp.Receiver.writeProto` through the
compressing response writer, on the one service that takes events off the
network. Bumped to the fixed v1.20.2: before the bump the scan reported
"affected by 24 vulnerabilities from 1 module and the Go standard
library"; after it, zero module findings remain (the stdlib entries track
the builder's Go patch level, which the image's floating `golang:1.26`
base picks up at build time). All 17 ingest test packages pass on the new
pin. Below the audit's high/critical fail threshold by policy, fixed
anyway because the path is attacker-reachable.
### Added
- **A DLP alert normalizes into one finding, whatever vendor raised it**
+1 -1
View File
@@ -33,7 +33,7 @@ require (
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
github.com/jackc/puddle/v2 v2.2.3 // indirect
github.com/klauspost/compress v1.20.1 // indirect
github.com/klauspost/compress v1.20.2 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
+2 -2
View File
@@ -37,8 +37,8 @@ github.com/jackc/pgx/v5 v5.13.0 h1:Hl08k64maU0nrRyVUEbwCnK6/gT0EhMrtAqBHz9/gA4=
github.com/jackc/pgx/v5 v5.13.0/go.mod h1:u2Fi6no03HCSBYE+ZVdLxbwdu3xyi2vU+K/YNJioSds=
github.com/jackc/puddle/v2 v2.2.3 h1:f8HoREISb3l5eO9coPgK7U3hKLhWGokOFVcThl5jrao=
github.com/jackc/puddle/v2 v2.2.3/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
github.com/klauspost/compress v1.20.1 h1:T7kKElXUMXrUJ2E9QhQhxFtcK5rPyLdsGZvdbLMPdiQ=
github.com/klauspost/compress v1.20.1/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI=
github.com/klauspost/compress v1.20.2 h1:v5tiZvm1KGLyg5d5oXdXe3lsSPrbEUiKoXGia//I7Qo=
github.com/klauspost/compress v1.20.2/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI=
github.com/klauspost/cpuid/v2 v2.4.0 h1:S6Hrbc7+ywsr0r+RLapfGBHfyefhCTwEh3A0tV913Dw=
github.com/klauspost/cpuid/v2 v2.4.0/go.mod h1:19jmZ9mjzoF//ddRSUsv0zfBTJWh3QJh9FNxZTMrGxU=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=