Skip to main content
← All vulnerabilities
CVE-2025-27144GO-2025-3485GHSA-C6GW-W398-HV78

Go JOSE's Parsing Vulnerable to Denial of Service

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.0.5, 3.0.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • go-jose go-jose

    From 4.0.0 · fixed in 4.0.5

  • github.com/go-jose/go-joseGo

    All versions

  • github.com/go-jose/go-jose/v3Go

    fixed in 3.0.4

  • github.com/go-jose/go-jose/v4Go

    fixed in 4.0.5

  • github.com/square/go-joseGo

    All versions

  • github.com/go-jose/go-joseGo

    fixed in 3.0.4

References 3

GitHub · go-jose/go-jose