Skip to main content
VulnerabilityPublished Updated

CVE-2025-58189: Go standard library crypto/tls · Log Injection

Affects Go standard library crypto/tlsSource CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 40% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Oct 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
Gogithub.com/golang/go/src/crypto/tlspkg:golang/github.com/golang/go/src/crypto/tlsOther threatsAffected
  • =0
  • =1.25.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2025-58189, organizations should prioritize updating the Go runtime and crypto/tls package to a patched version once it becomes available from the Go project. Until an official patch is released, developers should implement manual sanitization of ALPN protocol strings before logging, ensuring that any control characters or escape sequences are neutralized to prevent log injection. Additionally, security teams should enhance log monitoring to detect anomalous or suspicious entries that could indicate exploitation attempts. Employing centralized logging solutions with integrity verification and alerting on unusual patterns can reduce the risk of undetected log tampering. Reviewing and hardening logging configurations to avoid excessive trust in raw log data is recommended. Finally, organizations should conduct code audits of custom Go applications using crypto/tls to identify and remediate any unsafe logging practices related to ALPN or other client-supplied inputs.

Description

When Conn.Handshake fails during ALPN negotiation the error contains attacker controlled information (the ALPN protocols sent by the client) which is not escaped.

References

Community reviews

Loading reviews…