p PatchFirst

CVE-2026-97039

CVE-2026-97039 · Flag sanitization bypass via "#cgo pkg-config:" directives in cmd/go

CVSS 8.3 · Alta · EPSS 0,5% · Corrección disponible

Compara con tu versión instalada

Los productos afectados y las versiones corregidas conocidas son datos públicos. Compáralos con tu versión instalada.

  • cmd/goActualiza a 1.26.11 / 1.27.4
  • go Alpine 3.24Actualiza a 1.26.11-r0
  • golang-1.19 Debian 12Sin corrección publicada
  • golang-1.24 Debian 13Sin corrección publicada
  • y 20 más

Comprueba la versión instalada:

apk list -I -o go
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="golang-1.19"'
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="golang-1.24"'

Evalúa los riesgos de tu servidor

La comprobación gratuita te da una puntuación y un resumen de riesgos por pila tecnológica, sin registro. No indica si esta vulnerabilidad concreta te afecta.

La monitorización compara los datos públicos con el software de tus servidores. Ofrece hallazgos detallados y el orden de las actualizaciones.

curl -fsSL https://patchfirst.dev/check.sh | sh
Comprobar tu servidor gratis →

Los canales publican noticias generales sobre tecnologías; la monitorización te avisa de nuevos hallazgos en tus servidores en el panel, mediante notificaciones del navegador, en Telegram o por webhook.

Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.

Esta página muestra una selección de datos de las fuentes. Consulte los avisos enlazados para ver la descripción completa y las versiones afectadas.

Building a malicious package that uses "#cgo pkg-config:" directives could load untrusted pkg-config ".pc" files or inject unvalidated compiler and linker flags. The pkg-config flag allowlist previously permitted "--with-path=" and "--personality=", allowed "--define-variable=" values beginning with "=" or "$" (which can rewrite paths in system ".pc" files into sysroot-prefixed "-L=" or "-L$SYSROOT" linker search paths), and allowed package arguments ending in ".pc" or containing path separators or "..", which caused pkg-config to load local ".pc" files directly from the package directory. In addition, flags returned by "pkg-config --cflags" in cgoCPPFLAGS were not checked when determining whether internal linking is safe. The go command now disallows "--with-path=", "--personality=", leading "=" or "$" characters in "--define-variable=" values, and local ".pc" paths in "#cgo pkg-config:" directives, and inspects cgoCPPFLAGS when checking internal linking compatibility.

Publicación
Actualización

Correcciones en distribuciones

  • openSUSE-SU-2026:22386-1 · openSUSE Leap 16.1 ·
  • openSUSE-SU-2026:22407-1 · openSUSE Leap 16.0 ·
  • openSUSE-SU-2026:22405-1 · openSUSE Leap 16.0 ·
  • openSUSE-SU-2026:22374-1 · openSUSE Leap 16.1 ·
  • openSUSE-SU-2026:12540-1 · openSUSE Tumbleweed ·
  • SUSE-SU-2026:5227-1 · SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS, SUSE Linux Enterprise Module for Development Tools 15 SP7, SUSE Linux Enterprise Server 15 SP4-LTSS, SUSE Linux Enterprise Server 15 SP5-LTSS, SUSE Linux Enterprise Server 15 SP6-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP4, SUSE Linux Enterprise Server for SAP Applications 15 SP5, SUSE Linux Enterprise Server for SAP Applications 15 SP6 ·
  • SUSE-SU-2026:5226-1 · SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS, SUSE Linux Enterprise Module for Development Tools 15 SP7, SUSE Linux Enterprise Server 15 SP4-LTSS, SUSE Linux Enterprise Server 15 SP5-LTSS, SUSE Linux Enterprise Server 15 SP6-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP4, SUSE Linux Enterprise Server for SAP Applications 15 SP5, SUSE Linux Enterprise Server for SAP Applications 15 SP6 ·
  • openSUSE-SU-2026:12529-1 · openSUSE Tumbleweed ·

Pila tecnológica: system

Productos y versiones afectados

  • cmd/go

    Versiones
    • ≥ 0, < 1.26.11: Afectada (semver)
    • ≥ 1.27.0-0, < 1.27.4: Afectada (semver)

    Actualiza a 1.26.11; Actualiza a 1.27.4

  • go Alpine 3.24

    Intervalos de versiones afectados
    • ECOSYSTEM: < 1.26.11-r0

    Actualiza a 1.26.11-r0

  • golang-1.19 Debian 12

    Versiones
    • 1.19.10-1
    • 1.19.10-2
    • 1.19.11-1
    • 1.19.12-1
    • 1.19.12-2
    • 1.19.12-2~bpo11+1
    Todas las versiones (12)
    • 1.19.12-2~bpo12+1
    • 1.19.13-1
    • 1.19.13-1~bpo11+1
    • 1.19.13-1~bpo12+1
    • 1.19.8-2
    • 1.19.9-1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.24 Debian 13

    Versiones
    • 1.24.12-1
    • 1.24.13-1
    • 1.24.13-2
    • 1.24.4-1
    • 1.24.4-2
    • 1.24.4-3
    Todas las versiones (10)
    • 1.24.4-4
    • 1.24.7-1
    • 1.24.8-1
    • 1.24.9-1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.26 Debian 14

    Versiones
    • 1.26.0-1
    • 1.26.1-1
    • 1.26.10-1
    • 1.26.10-1~bpo13+1
    • 1.26.11-1~bpo13+1
    • 1.26.2-1
    Todas las versiones (28)
    • 1.26.2-2
    • 1.26.2-3
    • 1.26.3-1
    • 1.26.3-1~bpo13+1
    • 1.26.3-2
    • 1.26.3-2~bpo13+1
    • 1.26.4-1
    • 1.26.4-1~bpo13+1
    • 1.26.5-1
    • 1.26.5-1~bpo13+1
    • 1.26.6-1
    • 1.26.6-2
    • 1.26.7-1
    • 1.26.7-1~bpo13+1
    • 1.26.8-1
    • 1.26.8-1~bpo13+1
    • 1.26.8-2
    • 1.26.9-1
    • 1.26.9-1~bpo13+1
    • 1.26~rc2-1
    • 1.26~rc3-1
    • 1.26~rc3-2
    Intervalos de versiones afectados
    • ECOSYSTEM: < 1.26.11-1

    Actualiza a 1.26.11-1

  • golang-1.27 Debian 14

    Versiones
    • 1.27.0-1
    • 1.27.0-1~bpo13+1
    • 1.27.1-1
    • 1.27.1-2
    • 1.27.1-2~bpo13+1
    • 1.27.2-1
    Todas las versiones (14)
    • 1.27.2-1~bpo13+1
    • 1.27.2-1~bpo13+2
    • 1.27.3-1
    • 1.27.3-1~bpo13+1
    • 1.27.4-1~bpo13+1
    • 1.27~rc1-1
    • 1.27~rc2-1
    • 1.27~rc3-1
    Intervalos de versiones afectados
    • ECOSYSTEM: < 1.27.4-1

    Actualiza a 1.27.4-1

  • golang-1.10 Ubuntu 14.04 LTS

    Versiones
    • 1.10.4-2ubuntu1~14.04.1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.10 Ubuntu 16.04 LTS

    Versiones
    • 1.10.4-2ubuntu1~16.04.1
    • 1.10.4-2ubuntu1~16.04.2
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.6 Ubuntu 16.04 LTS

    Versiones
    • 1.6-0ubuntu1
    • 1.6-0ubuntu2
    • 1.6-0ubuntu3
    • 1.6-0ubuntu4
    • 1.6-0ubuntu5
    • 1.6.1-0ubuntu1
    Todas las versiones (10)
    • 1.6.2-0ubuntu5~16.04
    • 1.6.2-0ubuntu5~16.04.2
    • 1.6.2-0ubuntu5~16.04.3
    • 1.6.2-0ubuntu5~16.04.4
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.13 Ubuntu Pro 16.04 LTS

    Versiones
    • 1.13.8-1ubuntu1~16.04.2
    • 1.13.8-1ubuntu1~16.04.3
    • 1.13.8-1ubuntu1~16.04.3+esm2
    • 1.13.8-1ubuntu1~16.04.3+esm3
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.18 Ubuntu Pro 16.04 LTS

    Versiones
    • 1.18.1-1ubuntu1~16.04.6
    • 1.18.1-1ubuntu1~16.04.6+esm1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.10 Ubuntu 18.04 LTS

    Versiones
    • 1.10~rc1-1
    • 1.10~rc1-1ubuntu1
    • 1.10~rc1-2ubuntu1
    • 1.10~rc2-1ubuntu1
    • 1.10-1ubuntu1
    • 1.10.1-1ubuntu2
    Todas las versiones (8)
    • 1.10.4-2ubuntu1~18.04.1
    • 1.10.4-2ubuntu1~18.04.2
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.13 Ubuntu Pro 18.04 LTS

    Versiones
    • 1.13.8-1ubuntu1~18.04.2
    • 1.13.8-1ubuntu1~18.04.3
    • 1.13.8-1ubuntu1~18.04.4
    • 1.13.8-1ubuntu1~18.04.4+esm1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.16 Ubuntu Pro 18.04 LTS

    Versiones
    • 1.16.2-0ubuntu1~18.04.2
    • 1.16.2-0ubuntu1~18.04.2+esm1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.18 Ubuntu Pro 18.04 LTS

    Versiones
    • 1.18.1-1ubuntu1~18.04.3
    • 1.18.1-1ubuntu1~18.04.4
    • 1.18.1-1ubuntu1~18.04.4+esm1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.8 Ubuntu 18.04 LTS

    Versiones
    • 1.8.3-2ubuntu1
    • 1.8.3-2ubuntu1.18.04.1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.9 Ubuntu 18.04 LTS

    Versiones
    • 1.9.1-2ubuntu1
    • 1.9.2-1ubuntu1
    • 1.9.2-3ubuntu1
    • 1.9.3-1ubuntu1
    • 1.9.4-1ubuntu1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.13 Ubuntu 20.04 LTS

    Versiones
    • 1.13.1-1ubuntu1
    • 1.13.3-1ubuntu1
    • 1.13.4-1ubuntu1
    • 1.13.5-1ubuntu1
    • 1.13.6-1ubuntu1
    • 1.13.6-2ubuntu1
    Todas las versiones (10)
    • 1.13.7-1ubuntu1
    • 1.13.8-1ubuntu1
    • 1.13.8-1ubuntu1.1
    • 1.13.8-1ubuntu1.2
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.14 Ubuntu 20.04 LTS

    Versiones
    • 1.14~beta1-1
    • 1.14~beta1-2
    • 1.14~rc1-1
    • 1.14-1
    • 1.14.1-1
    • 1.14.2-1
    Todas las versiones (9)
    • 1.14.2-1ubuntu1
    • 1.14.3-2ubuntu2~20.04.1
    • 1.14.3-2ubuntu2~20.04.2
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.16 Ubuntu Pro 20.04 LTS

    Versiones
    • 1.16.2-0ubuntu1~20.04
    • 1.16.2-0ubuntu1~20.04.1
    • 1.16.2-0ubuntu1~20.04.1+esm1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.18 Ubuntu 20.04 LTS

    Versiones
    • 1.18.1-1ubuntu1~20.04.1
    • 1.18.1-1ubuntu1~20.04.2
    • 1.18.1-1ubuntu1~20.04.3
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.20 Ubuntu 20.04 LTS

    Versiones
    • 1.20.3-1ubuntu0.1~20.04
    • 1.20.3-1ubuntu0.1~20.04.1
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.21 Ubuntu 20.04 LTS

    Versiones
    • 1.21.1-1~ubuntu20.04.1
    • 1.21.1-1~ubuntu20.04.2
    • 1.21.1-1~ubuntu20.04.3
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

  • golang-1.22 Ubuntu 20.04 LTS

    Versiones
    • 1.22.2-2~20.04.1
    • 1.22.2-2~20.04.2
    • 1.22.2-2~20.04.3
    Intervalos de versiones afectados
    • ECOSYSTEM: (−∞, +∞)

    Sin corrección publicada

Fuentes originales

Comprueba tu servidor →