Docker image: bump yq to v4.54.3 (9 HIGH CVEs) and pgproto3 CVE-2026-32286

Aperta Adatta ai principianti
#4,849 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, go, postgresql
Ambito
devops, security

Direzione di ricerca

Il pin di yq si trova in build/docker/Dockerfile ed è attualmente alla v4.50.1; cambialo in v4.54.3. Per verificare, installa entrambe le versioni con go install ed esegui trivy rootfs con --severity HIGH,CRITICAL su ciascuna, aspettandoti 9 risultati prima e 0 dopo. La migrazione da pgproto3 v2 a pgx v5 è una modifica separata e più grande, e non è un buon primo compito.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

needs/kind needs/triage
What happened?

Trivy (Aqua Security's open-source vulnerability scanner) reports HIGH findings in the crowdsecurity/crowdsec:v1.8.2 image that are not fixed on master yet:

/usr/local/bin/yq (9 CVEs). build/docker/Dockerfile installs [email protected], which is built with golang.org/x/net v0.48.0 and golang.org/x/text v0.32.0:

  • golang.org/x/net: CVE-2026-25681, CVE-2026-27136, CVE-2026-33814, CVE-2026-39821, CVE-2026-46600, CVE-2026-78661, CVE-2026-78669
  • golang.org/x/text: CVE-2026-56851, CVE-2026-56852

yq v4.54.3 (released 2026-11-09) uses x/net v0.62.0 and x/text v0.43.0.

github.com/jackc/pgproto3/v2 v2.3.3 (CVE-2026-32286) in crowdsec and cscli, pulled in by jackc/pgx/v4. There is no fixed pgproto3 v2 release, so this probably needs a move to pgx v5. Only relevant with a PostgreSQL database.

Two other findings in v1.8.2 are already handled: x/net in the crowdsec binaries (CVE-2026-78661) is at v0.62.0 on master, and Alpine rsync (CVE-2026-119741) gets 3.5.2-r0 on the next image build.

What did you expect to happen?

The next image release to scan clean for fixable HIGH/CRITICAL findings. For yq that would be bumping the pin in build/docker/Dockerfile from v4.50.1 to v4.54.3.

How can we reproduce it (as minimally and precisely as possible)?
trivy image --scanners vuln --severity HIGH,CRITICAL crowdsecurity/crowdsec:v1.8.2

To check the yq bump on its own:

GOBIN=/tmp/old go install github.com/mikefarah/yq/[email protected]
GOBIN=/tmp/new go install github.com/mikefarah/yq/[email protected]
trivy rootfs --scanners vuln --severity HIGH,CRITICAL /tmp/old   # 9 findings
trivy rootfs --scanners vuln --severity HIGH,CRITICAL /tmp/new   # 0 findings
Anything else we need to know?

As far as we can tell none of these are reachable in a normal deployment: yq only processes local config in the entrypoint, and we run SQLite. We're reporting it because image scanners in CI flag the image. Tested with Trivy 0.76.2.

I used an AI assistant to help investigate and draft this; I reviewed the findings and the test.

Crowdsec version

v1.8.2 (docker image crowdsecurity/crowdsec:v1.8.2@sha256:65b74942f7e7ed5c60fde4ac15fc4ba715904c398c8b16dd451f4907d90347d4)

OS version

Docker image (Alpine 3.24), on GKE

Lingua principale
Go
Stelle
15.1k
Fork
726
Merge medio
4g 23h
PR unite (30g)
27

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di crowdsecurity/crowdsec

Tutte le issue di crowdsecurity/crowdsec

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.