Skip to main content

Go net/textproto CVE-2026-42507

| EUVDEUVD-2026-34040 MEDIUM
2026-06-02 Go GHSA-h3gm-q7m7-mp28
5.3
CVSS 3.1 · Vendor: Go
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted protocol input with embedded newlines
  2. Delivery
    Trigger net/textproto error incorporating raw input
  3. Exploit
    Application logs unsanitized error string
  4. Execution
    Injected content appears as legitimate log entry
  5. Impact
    Operator or SIEM misled by fabricated log data

Vulnerability Assessment

Exploitation Conditions

Exploitation requires three concurrent conditions: first, the target application must be compiled with a vulnerable Go toolchain (net/textproto < 1.25.11 or < 1.26.4); second, the application must exercise a code path in net/textproto that returns an error incorporating user-supplied input - this occurs naturally in any Go application using net/http, net/mail, or net/textproto directly to parse attacker-reachable protocol data; third, the application must log or print the resulting error string without sanitizing newline or control characters. The CVSS PR:N (no privileges required) and UI:N (no user interaction) signals confirm exploitation does not require authentication or social engineering. Exploitation is limited in practice by the fact that it produces only misleading log/error content - there is no code execution, data exfiltration, or service disruption. Deployments that suppress, discard, or structured-encode net/textproto errors are not exposed to meaningful impact.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N) reflects a network-reachable, low-complexity, unauthenticated attack yielding limited integrity impact with no confidentiality or availability consequence - consistent with a log-injection class vulnerability rather than code execution. EPSS corroborates the low operational risk: a 0.02% exploitation probability at the 5th percentile indicates this vulnerability is not being targeted opportunistically in the wild at time of analysis. No CISA KEV entry exists and no public exploit code has been identified. The practical threat is narrower than the CVSS network vector suggests: exploitation only produces meaningful impact when the calling application logs or displays net/textproto error messages in contexts visible to operators or downstream consumers. Applications that discard errors silently or sanitize output before logging are unaffected in practice. Overall, this is a genuine but low-urgency issue: patch during the next scheduled Go runtime update cycle rather than treating as an emergency.

Exploit ScenarioDerived

An attacker targeting a Go web service sends an HTTP request containing a crafted header value embedding newline sequences and fabricated log lines (e.g., 'X-Custom: value\n[INFO] Admin login successful from 10.0.0.1'). The Go net/textproto parser encounters a protocol error and constructs an error message that includes the raw header value verbatim; the application's error handler logs this string, resulting in the injected fabricated entry appearing as a legitimate log line in the application's log stream. No public proof-of-concept exploit exists, but the attack requires only standard HTTP tooling and basic knowledge of log injection techniques.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 03, 2026

Error message injection in Go's net/textproto standard library package allows unauthenticated remote attackers to embed attacker-controlled content into error strings that applications subsequently print or log. Affected Go releases span all net/textproto versions prior to 1.25.11 and 1.26.4, covering a broad surface area of Go-based HTTP, MIME, and mail-handling applications. No public exploit code exists and exploitation probability is extremely low (EPSS 0.02%, 5th percentile), but the integrity risk is real in deployments where net/textproto errors are surfaced to logs, monitoring systems, or user-facing output without sanitization.

RemediationAI

The primary fix is upgrading the Go toolchain to version 1.25.11 or later for the 1.25.x branch, or to version 1.26.4 or later for the 1.26.x branch; vendor-released patches are confirmed available per the Go team announcement (https://groups.google.com/g/golang-announce/c/tKs3rmcBcKw) and the Go vulnerability database entry GO-2026-5039 (https://pkg.go.dev/vuln/GO-2026-5039). After upgrading the Go toolchain, applications must be recompiled against the patched standard library since Go compiles the standard library statically into binaries. For teams unable to upgrade immediately, the most actionable compensating control is to sanitize or structured-format all error strings derived from net/textproto before passing them to loggers: replace or strip newline characters (\n, \r) and ANSI escape sequences from error messages prior to logging. A second mitigation is configuring log aggregation systems (e.g., Fluent Bit, Logstash) to enforce strict JSON-only ingestion, preventing injected plaintext lines from being parsed as legitimate log events. Both workarounds carry the trade-off of adding application-layer error-handling complexity and may mask legitimate multi-line error detail.

Affected VersionsENISA

net/textproto 0 <1.25.11
net/textproto 1.26.0-0 <1.26.4

Affected Packages

go stdlib fix: 1.25.11, 1.26.4
euvd net_textproto fix: 1.25.11, 1.26.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The net/textproto package (cpe:2.3:a:go_standard_library:net/textproto:*:*:*:*:*:*:*:*) is a foundational Go standard library component used to parse MIME-style headers, HTTP headers, NNTP responses, and similar text-based protocols. When internal functions in this package encounter parsing or protocol errors, they construct error values that embed the raw input string directly. Because no CWE has been formally assigned, the root cause class spans both CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component, i.e., injection) and CWE-116 (Improper Encoding or Escaping of Output). The practical effect is a log injection / error message injection primitive: an adversary who controls protocol input (e.g., a crafted HTTP header value) can include newline characters, control sequences, or fabricated log lines that appear verbatim in error output. The flaw is tracked upstream as Go issue #79346 and remediated in change list CL-777060.

Know when Net Textproto gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Go) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
SUSE MEDIUM
Red Hat 5.3 MEDIUM

Primary rating from Vendor (Go).

CVSS VectorVendor: Go

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

Lifecycle Timeline

2
CVSS changed
Jun 03, 2026 - 20:22 NVD
5.3 (MEDIUM)
CVE Published
Jun 02, 2026 - 22:01 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

When returning errors, functions in the net/textproto package would include its input as part of the error. This might allow an attacker to inject misleading content to errors that are printed or logged.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS Affected
SUSE Linux Enterprise Module for Development Tools 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy