CVE-2026-39819: Invoking "go bug" follows symlinks in predictable temporary filenames in cmd/go

Published May 7, 2026
·
Updated

Invoking "go bug" follows symlinks in predictable temporary filenames in cmd/go

Other sources

The "go bug" command writes to two files with predictable names in the system temporary directory (for example, "/tmp").

An attacker with access to the temporary directory can create a symlink in one of these names, causing "go bug" to overwrite the target of the symlink.

— OSV

Affected Software

40 affected componentsFixes available
go Go cmd/go
Golang Go<1.25.10
Golang Go>=1.26.0<1.26.3
debian/golang-1.19*
debian/golang-1.24*
debian/golang-1.26<1.26.3-1
1.26.3-1
alpine/go<1.25.10-r0
1.25.10-r0
alpine/go>=1.26.0<1.26.3-r0
1.26.3-r0
alpine/rclone<1.74.1-r0
1.74.1-r0
go/toolchain<1.25.10
1.25.10
go/toolchain>=1.26.0-0<1.26.3
1.26.3
debian/golang-1.19<=1.19.8-2
debian/golang-1.24<=1.24.4-1
debian/golang-1.26
1.26.3-1
debian/golang-1.25
1.25.10-1
ubuntu/golang-1.10*
ubuntu/golang-1.10*
ubuntu/golang-1.6*
ubuntu/golang-1.13*
ubuntu/golang-1.18*
ubuntu/golang-1.10*
ubuntu/golang-1.13*
ubuntu/golang-1.16*
ubuntu/golang-1.18*
ubuntu/golang-1.8*
ubuntu/golang-1.13*
ubuntu/golang-1.16*
ubuntu/golang-1.18*
ubuntu/golang-1.22*
ubuntu/golang-1.17*
ubuntu/golang-1.22*
ubuntu/golang-1.24*
ubuntu/golang-1.13*
ubuntu/golang-1.21*
ubuntu/golang-1.22*
ubuntu/golang-1.24*
ubuntu/golang-1.23*
ubuntu/golang-1.24*
ubuntu/golang-1.23*
ubuntu/golang-1.24*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/golang-1.26 to a version that resolves this vulnerability.

    Fixed in 1.26.3-1
  2. Upgrade

    Upgrade alpine/go to a version that resolves this vulnerability.

    Fixed in 1.25.10-r0
  3. Upgrade

    Upgrade alpine/go to a version that resolves this vulnerability.

    Fixed in 1.26.3-r0
  4. Upgrade

    Upgrade alpine/rclone to a version that resolves this vulnerability.

    Fixed in 1.74.1-r0
  5. Upgrade

    Upgrade go/toolchain to a version that resolves this vulnerability.

    Fixed in 1.25.10
  6. Upgrade

    Upgrade go/toolchain to a version that resolves this vulnerability.

    Fixed in 1.26.3
  7. Upgrade

    Upgrade debian/golang-1.25 to a version that resolves this vulnerability.

    Fixed in 1.25.10-1

Event History

May 7, 2026
Advisory Published
via OSV·07:21 PM
Data Sourced
via OSV·07:21 PM
DescriptionAffected Software
CVE Published
via MITRE·07:41 PM
Data Sourced
via MITRE·07:41 PM
DescriptionWeakness
Data Sourced
via OSV·07:41 PM
Severity
Data Sourced
via Red Hat·08:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:16 PM
Description
May 8, 2026
Data Sourced
via NVD·10:16 PM
Severity
May 10, 2026
Data Sourced
via Microsoft·08:02 AM
DescriptionSeverityWeakness
May 13, 2026
Data Sourced
via NVD·03:05 PM
RemedyWeaknessAffected Software
Updated
via NVD·03:05 PM
Severity
Nov 17, 2026
Updated
via OSV·06:31 AM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-39819?

CVE-2026-39819 has a medium severity rating due to its potential to allow local attackers to execute arbitrary code.

2

What causes CVE-2026-39819?

CVE-2026-39819 is caused by the "go bug" command following symlinks in predictable temporary filenames.

3

How do I fix CVE-2026-39819?

To mitigate CVE-2026-39819, avoid using predictable filenames in the temporary directory or update to the latest patched version of Go.

4

Who is affected by CVE-2026-39819?

Users of the Go cmd/go tool who have access to the temporary directory are affected by CVE-2026-39819.

5

What type of attack is possible with CVE-2026-39819?

CVE-2026-39819 allows for symbolic link attacks, which can lead to unauthorized file access or code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203