Critical Arbitrary File Write and IPv6 Parsing Vulnerabilities in Golang Package

golang Updated 07 Apr 2026

Summary

07/04/2026
N/A
Yes i
High
8.6

RLSA-2026:5942: Important: golang security update. Affects golang versions < 0:1.25.8-1.el9_7. Fixed in 0:1.25.8-1.el9_7. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Golang package provides the Go programming language compiler, which is widely used for building efficient and reliable software. It includes tools for compiling code, managing dependencies, and running applications. However, recent vulnerabilities have been identified that could potentially compromise the security of applications built with this package.

Vulnerability Detail

The vulnerabilities stem from two main issues: first, an arbitrary file write vulnerability caused by a malicious pkg-config directive (CVE-2025-61731), which could allow an attacker to write files to arbitrary locations on the filesystem. Second, an incorrect parsing of IPv6 host literals in the net/url package (CVE-2026-25679) could lead to improper handling of network requests, potentially exposing sensitive information or allowing for further attacks. These vulnerabilities have a CVSS score of 8.6, indicating a high severity level.

How To Fix

Minimum fixed version

0:1.25.8-1.el9_7

This is the first release that contains the fix.

sudo dnf update golang

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can restrict the use of pkg-config directives in your build process and validate IPv6 addresses before using them in your applications to mitigate the risks associated with these vulnerabilities.

Conclusion

In summary, the Golang package has critical vulnerabilities that could lead to arbitrary file writes and improper handling of IPv6 addresses. It is crucial to update to the latest patched version to mitigate these risks. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for golang →

Share this vulnerability

FAQ

This vulnerability allows an attacker to write files to arbitrary locations, potentially compromising system integrity and confidentiality.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check your application using the Vulert playground without any signup.

The CVSS score for these vulnerabilities is 8.6, indicating a high severity level.

Yes, the vulnerabilities are fixed in version 0:1.25.8-1.el9_7 of the Golang package.

If immediate updates are not possible, consider implementing workarounds such as restricting pkg-config directives and validating IPv6 addresses.

Related vulnerabilities

Recent vulnerabilities recorded for golang.

How To Fix

Minimum fixed version

0:1.25.8-1.el9_7

This is the first release that contains the fix.

sudo dnf update golang

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback