CVE-2026-42507: Golang 1.24 · When returning errors, functions in the net/textproto package would include its input as part of the error
Affects golang-1.24Source GCVE Database
Not known to be exploited · CVSS 5.3 Medium.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 30% 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: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 30 Oct 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
- access.redhat.com/errata/RHSA-2026:29980 (opens in a new tab)
- access.redhat.com/security/updates/classification/ (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2484205 (opens in a new tab)
- issues.redhat.com/browse/RHEL-183347 (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_29980.json (opens in a new tab)
- msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-42507.json (opens in a new tab)
- support.microsoft.com/lifecycle (opens in a new tab)
- first.org/cvss (opens in a new tab)
- 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)