CVE-2026-42507: Golang 1.24 · When returning errors, functions in the net/textproto package would include its input as
Affects golang-1.24Source GCVE Database
Not known to be exploited · CVSS 5.3 Medium.
Data as of 24 Nov 2026, 20:28 UTC
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Jun 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10golang-1.26pkg:deb/ubuntu/golang-1.26?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-1.24pkg:deb/ubuntu/golang-1.24?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-1.25pkg:deb/ubuntu/golang-1.25?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-1.26pkg:deb/ubuntu/golang-1.26?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10golang-1.24pkg:deb/ubuntu/golang-1.24?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10golang-1.25pkg:deb/ubuntu/golang-1.25?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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.
References
- ubuntu.com/security/CVE-2026-42507 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-42507 (opens in a new tab)
- github.com/golang/go/issues/79346 (opens in a new tab)
- github.com/golang/go/commit/ec1c380418ec6a0da28d4519872e2b81ba9152ba (opens in a new tab)
- github.com/golang/go/commit/449dafea7264878e73acc58cbd330e0ee6630030 (opens in a new tab)