p PatchFirst

CVE-2026-97043

CVE-2026-97043 · Unexpected code execution via escaped quotes in //go:cgo_ldflag in cmd/go and cmd/compile

CVSS 8.8 · Élevée · EPSS 0,7% · Correctif disponible

Comparez avec votre version installée

Les produits concernés et les versions corrigées connues sont des informations publiques. Comparez-les avec votre version installée.

  • cmd/goMettez à jour vers 1.26.11 / 1.27.4
  • cmd/compileMettez à jour vers 1.26.11 / 1.27.4
  • go Alpine 3.24Mettez à jour vers 1.26.11-r0
  • golang-1.19 Debian 12Aucun correctif publié
  • et 20 de plus

Vérifiez la version installée :

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

Évaluez les risques de votre serveur

La vérification gratuite donne une note et un résumé des risques par pile technologique, sans inscription. Elle ne précise pas si cette vulnérabilité particulière vous concerne.

La surveillance compare les informations publiques aux logiciels de vos serveurs. Elle fournit les résultats détaillés et l’ordre des mises à jour.

curl -fsSL https://patchfirst.dev/check.sh | sh
Vérifier mon serveur gratuitement →

Les canaux diffusent des actualités générales sur les technologies ; la surveillance signale les nouveaux résultats sur vos serveurs dans votre tableau de bord, par notification du navigateur, dans Telegram ou par webhook.

Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.

Cette page présente une partie des faits des sources. Consultez les avis liés pour la description complète et les versions concernées.

Building a malicious package that uses cgo could bypass "#cgo LDFLAGS" validation and cause unexpected code execution at build time, or cause the go command to panic, via crafted quoting in "//go:cgo_ldflag" directives. When "cmd/cgo" generates "_cgo_gotypes.go", it quotes each "#cgo LDFLAGS" argument with strconv.Quote in a "//go:cgo_ldflag" directive, but "cmd/compile" and "cmd/go" parsed those directives by splitting on raw quote characters without handling backslash escapes or unquoting the string. This mismatch allowed disallowed linker flags or unvalidated linker search paths to be smuggled past the go command's flag checks and passed to the external linker. In addition, deduplicating LDFLAGS in the go command could panic with an out-of-bounds slice index when a prefix of the flag list matched near the end of the slice. "cmd/compile" and "cmd/go" now properly handle backslash-escaped quotes and unquote "//go:cgo_*" pragma strings with strconv.Unquote, and the slice bounds check in processCgoOutputs has been fixed.

Publication
Mise à jour

Correctifs dans les distributions

  • RHSA-2026:102592 · Red Hat Enterprise Linux 8 appstream ·
  • RHSA-2026:102586 · Red Hat Enterprise Linux 9 appstream ·
  • RHSA-2026:102587 · Red Hat Enterprise Linux 10.3 ·
  • RLSA-2026:102587 · Rocky Linux 10 ·
  • RLSA-2026:102586 · Rocky Linux 9 ·
  • RLSA-2026:102592 · Rocky Linux 8 ·
  • RHSA-2026:99003 · Red Hat hummingbird 1 ·
  • RHSA-2026:99004 · Red Hat hummingbird 1 ·
  • ALSA-2026:102586 · AlmaLinux 9 ·
  • ALSA-2026:102587 · AlmaLinux 10 ·
  • ALSA-2026:102592 · AlmaLinux 8 ·
  • SUSE-SU-2026:24892-1 · SUSE Linux Enterprise Server for NVIDIA 16.1 ·
  • openSUSE-SU-2026:22386-1 · openSUSE Leap 16.1 ·
  • SUSE-SU-2026:24920-1 · SUSE Linux Enterprise Server 16.0, SUSE Linux Enterprise Server for SAP applications 16.0 ·
  • SUSE-SU-2026:24947-1 · SUSE Linux Enterprise Server 16.1, SUSE Linux Enterprise Server for SAP applications 16.1 ·
  • openSUSE-SU-2026:22407-1 · openSUSE Leap 16.0 ·
  • openSUSE-SU-2026:22405-1 · openSUSE Leap 16.0 ·
  • SUSE-SU-2026:24880-1 · SUSE Linux Enterprise Server for NVIDIA 16.1 ·
  • 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 ·

Pile logicielle: system

Produits et versions concernés

  • cmd/go

    Versions du logiciel
    • ≥ 0, < 1.26.11: Concernée (semver)
    • ≥ 1.27.0-0, < 1.27.4: Concernée (semver)

    Mettez à jour vers 1.26.11; Mettez à jour vers 1.27.4

  • cmd/compile

    Versions du logiciel
    • ≥ 0, < 1.26.11: Concernée (semver)
    • ≥ 1.27.0-0, < 1.27.4: Concernée (semver)

    Mettez à jour vers 1.26.11; Mettez à jour vers 1.27.4

  • go Alpine 3.24

    Plages de versions concernées
    • ECOSYSTEM: < 1.26.11-r0

    Mettez à jour vers 1.26.11-r0

  • golang-1.19 Debian 12

    Versions du logiciel
    • 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
    Toutes les versions (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
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.24 Debian 13

    Versions du logiciel
    • 1.24.12-1
    • 1.24.13-1
    • 1.24.13-2
    • 1.24.4-1
    • 1.24.4-2
    • 1.24.4-3
    Toutes les versions (10)
    • 1.24.4-4
    • 1.24.7-1
    • 1.24.8-1
    • 1.24.9-1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.26 Debian 14

    Versions du logiciel
    • 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
    Toutes les versions (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
    Plages de versions concernées
    • ECOSYSTEM: < 1.26.11-1

    Mettez à jour vers 1.26.11-1

  • golang-1.27 Debian 14

    Versions du logiciel
    • 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
    Toutes les versions (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
    Plages de versions concernées
    • ECOSYSTEM: < 1.27.4-1

    Mettez à jour vers 1.27.4-1

  • golang-1.10 Ubuntu 14.04 LTS

    Versions du logiciel
    • 1.10.4-2ubuntu1~14.04.1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.10 Ubuntu 16.04 LTS

    Versions du logiciel
    • 1.10.4-2ubuntu1~16.04.1
    • 1.10.4-2ubuntu1~16.04.2
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.6 Ubuntu 16.04 LTS

    Versions du logiciel
    • 1.6-0ubuntu1
    • 1.6-0ubuntu2
    • 1.6-0ubuntu3
    • 1.6-0ubuntu4
    • 1.6-0ubuntu5
    • 1.6.1-0ubuntu1
    Toutes les versions (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
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.13 Ubuntu Pro 16.04 LTS

    Versions du logiciel
    • 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
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.18 Ubuntu Pro 16.04 LTS

    Versions du logiciel
    • 1.18.1-1ubuntu1~16.04.6
    • 1.18.1-1ubuntu1~16.04.6+esm1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.10 Ubuntu 18.04 LTS

    Versions du logiciel
    • 1.10~rc1-1
    • 1.10~rc1-1ubuntu1
    • 1.10~rc1-2ubuntu1
    • 1.10~rc2-1ubuntu1
    • 1.10-1ubuntu1
    • 1.10.1-1ubuntu2
    Toutes les versions (8)
    • 1.10.4-2ubuntu1~18.04.1
    • 1.10.4-2ubuntu1~18.04.2
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.13 Ubuntu Pro 18.04 LTS

    Versions du logiciel
    • 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
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.16 Ubuntu Pro 18.04 LTS

    Versions du logiciel
    • 1.16.2-0ubuntu1~18.04.2
    • 1.16.2-0ubuntu1~18.04.2+esm1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.18 Ubuntu Pro 18.04 LTS

    Versions du logiciel
    • 1.18.1-1ubuntu1~18.04.3
    • 1.18.1-1ubuntu1~18.04.4
    • 1.18.1-1ubuntu1~18.04.4+esm1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.8 Ubuntu 18.04 LTS

    Versions du logiciel
    • 1.8.3-2ubuntu1
    • 1.8.3-2ubuntu1.18.04.1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.9 Ubuntu 18.04 LTS

    Versions du logiciel
    • 1.9.1-2ubuntu1
    • 1.9.2-1ubuntu1
    • 1.9.2-3ubuntu1
    • 1.9.3-1ubuntu1
    • 1.9.4-1ubuntu1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.13 Ubuntu 20.04 LTS

    Versions du logiciel
    • 1.13.1-1ubuntu1
    • 1.13.3-1ubuntu1
    • 1.13.4-1ubuntu1
    • 1.13.5-1ubuntu1
    • 1.13.6-1ubuntu1
    • 1.13.6-2ubuntu1
    Toutes les versions (10)
    • 1.13.7-1ubuntu1
    • 1.13.8-1ubuntu1
    • 1.13.8-1ubuntu1.1
    • 1.13.8-1ubuntu1.2
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.14 Ubuntu 20.04 LTS

    Versions du logiciel
    • 1.14~beta1-1
    • 1.14~beta1-2
    • 1.14~rc1-1
    • 1.14-1
    • 1.14.1-1
    • 1.14.2-1
    Toutes les versions (9)
    • 1.14.2-1ubuntu1
    • 1.14.3-2ubuntu2~20.04.1
    • 1.14.3-2ubuntu2~20.04.2
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.16 Ubuntu Pro 20.04 LTS

    Versions du logiciel
    • 1.16.2-0ubuntu1~20.04
    • 1.16.2-0ubuntu1~20.04.1
    • 1.16.2-0ubuntu1~20.04.1+esm1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.18 Ubuntu 20.04 LTS

    Versions du logiciel
    • 1.18.1-1ubuntu1~20.04.1
    • 1.18.1-1ubuntu1~20.04.2
    • 1.18.1-1ubuntu1~20.04.3
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.20 Ubuntu 20.04 LTS

    Versions du logiciel
    • 1.20.3-1ubuntu0.1~20.04
    • 1.20.3-1ubuntu0.1~20.04.1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • golang-1.21 Ubuntu 20.04 LTS

    Versions du logiciel
    • 1.21.1-1~ubuntu20.04.1
    • 1.21.1-1~ubuntu20.04.2
    • 1.21.1-1~ubuntu20.04.3
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

Sources originales

Vérifiez votre serveur →