CVE-2025-58189
Linux Debian vulnerability analysis and mitigation

Overview

The CVE-2025-58189 is a security vulnerability affecting Go programming language versions prior to 1.25.2 and 1.24.8. The vulnerability exists in the crypto/tls package, specifically in the conn.Handshake method, where ALPN (Application-Layer Protocol Negotiation) negotiation errors can contain arbitrary text. The vulnerability was discovered and reported by the National Cyber Security Centre Finland and was patched in October 2025 (Go Announce).

Technical details

The vulnerability occurs when the crypto/tls conn.Handshake method returns an error on the server-side during ALPN negotiation failure. The error message can contain arbitrary attacker-controlled information provided by the client-side of the connection, which is not properly escaped. This affects programs that log these errors without additional sanitization measures (Go Issue, Go Announce).

Impact

The primary impact of this vulnerability is the potential injection of attacker-controlled information into system logs. Programs that log these errors without implementing additional sanitization measures are particularly vulnerable. While the impact is relatively limited due to most logging software filtering control characters, it still presents a security risk for affected systems (Go Issue).

Mitigation and workarounds

The vulnerability has been fixed in Go versions 1.25.2 and 1.24.8. Users are strongly advised to upgrade to these versions or later. For those unable to upgrade immediately, implementing additional log sanitization measures for TLS-related error messages can help mitigate the risk (Go Announce).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61725N/AN/A
  • Linux DebianLinux Debian
  • golang-1.24
NoYesOct 10, 2025
CVE-2025-61724N/AN/A
  • Linux DebianLinux Debian
  • go
NoYesOct 10, 2025
CVE-2025-61723N/AN/A
  • Linux DebianLinux Debian
  • golang-1.24
NoYesOct 10, 2025
CVE-2025-58189N/AN/A
  • Linux DebianLinux Debian
  • golang-1.25
NoYesOct 10, 2025
CVE-2025-58188N/AN/A
  • Linux DebianLinux Debian
  • go
NoYesOct 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management