CVE-2026-42504: Quadratic complexity in WordDecoder.DecodeHeader in mime

Published Jun 2, 2026
·
Updated

Decoding a maliciously-crafted MIME header containing many invalid encoded-words can consume excessive CPU.

Other sources

Quadratic complexity in WordDecoder.DecodeHeader in mime

— Microsoft

Affected Software

21 affected componentsFixes available
go mime package
Microsoft azl3 golang 1.26.3-1
Microsoft azl3 golang 1.26.4-3<1.26.4-1
1.26.4-1
Microsoft azl3 golang 1.26.3-1<1.26.4-1
1.26.4-1
Microsoft azl3 golang 1.25.11-3
alpine/go<1.26.8-r0
1.26.8-r0
IBM API Connect<=V10.0.8.0 - V10.0.8.13
go/stdlib<1.25.11
1.25.11
go/stdlib>=1.26.0-0<1.26.4
1.26.4
debian/golang-1.19<=1.19.8-2
debian/golang-1.24<=1.24.4-1
debian/golang-1.26
1.26.4-1
debian/golang-1.25
1.25.11-1
ubuntu/golang-1.24*
ubuntu/golang-1.26*
ubuntu/golang-1.24*
ubuntu/golang-1.26*
ubuntu/golang-1.24*
ubuntu/golang-1.26*
ubuntu/golang-1.24*
ubuntu/golang-1.26*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.26.4-1
  2. Upgrade

    Upgrade alpine/go to a version that resolves this vulnerability.

    Fixed in 1.26.8-r0
  3. Upgrade

    Upgrade go/stdlib to a version that resolves this vulnerability.

    Fixed in 1.25.11
  4. Upgrade

    Upgrade go/stdlib to a version that resolves this vulnerability.

    Fixed in 1.26.4
  5. Upgrade

    Upgrade debian/golang-1.26 to a version that resolves this vulnerability.

    Fixed in 1.26.4-1
  6. Upgrade

    Upgrade debian/golang-1.25 to a version that resolves this vulnerability.

    Fixed in 1.25.11-1

Event History

Jun 2, 2026
Advisory Published
via OSV·09:39 PM
Data Sourced
via OSV·09:39 PM
DescriptionAffected Software
CVE Published
via MITRE·10:01 PM
Data Sourced
via MITRE·10:01 PM
DescriptionWeakness
Data Sourced
via Red Hat·11:01 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·11:16 PM
Severity
Data Sourced
via NVD·11:16 PM
Description
Jun 3, 2026
Data Sourced
via NVD·04:16 PM
SeverityWeakness
Jun 5, 2026
Data Sourced
via Microsoft·08:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:02 AM
WeaknessAffected Software
Jun 28, 2026
Updated
via Microsoft·08:55 AM
Weakness
Aug 5, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Oct 29, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 18, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 19, 2026
Updated
via IBM·12:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-42504?

The severity of CVE-2026-42504 is rated as high with a CVSS score of 7.5.

2

What are the potential impacts of CVE-2026-42504?

CVE-2026-42504 can lead to excessive CPU consumption when decoding a maliciously-crafted MIME header.

3

How do I fix CVE-2026-42504?

To fix CVE-2026-42504, it is recommended to update to the latest version of the Go mime package that addresses this issue.

4

What versions of the Go mime package are affected by CVE-2026-42504?

CVE-2026-42504 affects versions of the Go mime package before the patch is applied in the update.

5

Is there a workaround for CVE-2026-42504?

Currently, there are no specific workarounds for CVE-2026-42504 other than updating to the fixed version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203