CVE-2025-27144: Go JOSE's Parsing Vulnerable to Denial of Service

Published Feb 24, 2025
·
Updated

Impact When parsing compact JWS or JWE input, go-jose could use excessive memory. The code used strings.Split(token, ".") to split JWT tokens, which is vulnerable to excessive memory consumption when processing maliciously crafted tokens with a large number of '.' characters. An attacker could exploit this by sending numerous malformed tokens, leading to memory exhaustion and a Denial of Service.

Patches Version 4.0.5 fixes this issue

Workarounds Applications could pre-validate payloads passed to go-jose do not contain an excessive number of '.' characters.

References This is the same sort of issue as in the golang.org/x/oauth2/jws package as CVE-2025-22868 and Go issue https://go.dev/issue/71490.

Other sources

Go JOSE provides an implementation of the Javascript Object Signing and Encryption set of standards in Go, including support for JSON Web Encryption (JWE), JSON Web Signature (JWS), and JSON Web Token (JWT) standards. In versions on the 4.x branch prior to version 4.0.5, when parsing compact JWS or JWE input, Go JOSE could use excessive memory. The code used strings.Split(token, ".") to split JWT tokens, which is vulnerable to excessive memory consumption when processing maliciously crafted tokens with a large number of . characters. An attacker could exploit this by sending numerous malformed tokens, leading to memory exhaustion and a Denial of Service. Version 4.0.5 fixes this issue. As a workaround, applications could pre-validate that payloads passed to Go JOSE do not contain an excessive number of . characters.

NVD

Go JOSE's Parsing Vulnerable to Denial of Service

Microsoft

Affected Software

55 affected componentsFixes available
go/github.com/go-jose/go-jose<3.0.4
3.0.4
go/github.com/go-jose/go-jose/v3<3.0.4
3.0.4
go/github.com/go-jose/go-jose/v4<4.0.5
4.0.5
Microsoft cbl2 influxdb 2.6.1-22
Microsoft azl3 ig 0.37.0-4
Microsoft cbl2 keda 2.4.0-29
Microsoft azl3 keda 2.14.1-7
Microsoft azl3 packer 1.9.5-9
Microsoft cbl2 moby-containerd 1.6.26-11
Microsoft cbl2 cri-o 1.22.3-14
Microsoft azl3 skopeo 1.14.4-5
Microsoft azl3 kubernetes 1.30.10-7
Microsoft azl3 containerd 1.7.13-8
Microsoft azl3 dcos-cli 1.2.0-18
Microsoft azl3 moby-containerd-cc 1.7.7-9
Microsoft azl3 ig 0.37.0-2
Microsoft azl3 kubernetes 1.30.10-3
Microsoft azl3 dcos-cli 1.2.0-17
Microsoft azl3 gh 2.62.0-8
Microsoft azl3 skopeo 1.14.4-4
Microsoft azl3 influxdb 2.7.5-2
Microsoft azl3 cert-manager 1.12.15-2
Microsoft azl3 gh 2.62.0-7
Microsoft azl3 containerized-data-importer 1.57.0-13
Microsoft azl3 containerd2 2.0.0-6
Microsoft azl3 packer 1.9.5-6
Microsoft cbl2 influxdb 2.6.1-21
Microsoft azl3 keda 2.14.1-3
Microsoft cbl2 cert-manager 1.11.2-19
Microsoft cbl2 kube-vip-cloud-provider 0.0.2-20
Microsoft azl3 containerd 1.7.13-7
Microsoft cbl2 keda 2.4.0-27
Microsoft cbl2 kubernetes 1.28.4-15
Microsoft cbl2 packer 1.9.5-9
Microsoft azl3 telegraf 1.31.0-8
Microsoft cbl2 rook 1.6.2-26
Microsoft cbl2 moby-containerd 1.6.26-10
Microsoft cbl2 cri-o 1.22.3-12
Microsoft cbl2 dcos-cli 1.2.0-20
Microsoft cbl2 telegraf 1.29.4-12
Microsoft cbl2 rook 1.6.2-25
Microsoft cbl2 moby-containerd-cc 1.7.7-11
Microsoft cbl2 skopeo 1.14.2-10
Microsoft cbl2 dcos-cli 1.2.0-21
Microsoft cbl2 telegraf 1.29.4-16
Microsoft cbl2 kubernetes 1.28.4-18
Microsoft cbl2 containerized-data-importer 1.55.0-23
Microsoft cbl2 packer 1.9.5-13
Microsoft azl3 telegraf 1.31.0-10
Microsoft cbl2 cert-manager 1.11.2-22
Microsoft azl3 cert-manager 1.12.15-3
Microsoft azl3 containerd2 2.0.0-9
Microsoft azl3 containerized-data-importer 1.57.0-14
Microsoft azl3 influxdb 2.7.5-5
Microsoft cbl2 kube-vip-cloud-provider 0.0.2-22

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/go-jose/go-jose to a version that resolves this vulnerability.

    Fixed in 3.0.4
  2. Upgrade

    Upgrade go/github.com/go-jose/go-jose/v3 to a version that resolves this vulnerability.

    Fixed in 3.0.4
  3. Upgrade

    Upgrade go/github.com/go-jose/go-jose/v4 to a version that resolves this vulnerability.

    Fixed in 4.0.5
  4. Upgrade

    Upgrade go-jose to a version that resolves this vulnerability.

    Fixed in 4.0.5
  5. Configuration

    Pre-validate payloads/tokens passed to Go JOSE so they do not contain an excessive number of '.' characters, to avoid triggering the memory-exhaustion DoS during parsing of compact JWS/JWE.

    Applications using go-jose (JWT/JWS/JWE parsing) payload token delimiter count ('.' characters) = pre-validate to reject tokens containing an excessive number of '.' characters before passing to go-jose

Event History

Feb 24, 2025
CVE Published
via MITRE·10:22 PM
Data Sourced
via MITRE·10:22 PM
DescriptionWeakness
Advisory Published
via GitHub·10:49 PM
Data Sourced
via Red Hat·11:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeakness
Mar 4, 2025
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
DescriptionSeverity
Jan 30, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-27144?

CVE-2025-27144 is classified as a high severity vulnerability due to its potential to cause excessive memory consumption.

2

How do I fix CVE-2025-27144?

To fix CVE-2025-27144, upgrade to go-jose version 4.0.5 or later.

3

What software is affected by CVE-2025-27144?

CVE-2025-27144 affects the go-jose library, specifically versions prior to 4.0.5.

4

What are the consequences of CVE-2025-27144?

The consequences of CVE-2025-27144 include potential denial of service due to excessive memory usage when processing certain JWT tokens.

5

What specific input causes issues with CVE-2025-27144?

CVE-2025-27144 is triggered by maliciously crafted JWT types containing an excessive number of '.' characters.

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