CVE-2025-27144
February 24, 2025
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.
Affected Packages
github.com/go-jose/go-jose/v4 (GO):
Affected version(s) >=v4.0.0 <v4.0.5Fix Suggestion:
Update to version v4.0.5github.com/go-jose/go-jose/v3 (GO):
Affected version(s) >=v1.0.0 <v3.0.4Fix Suggestion:
Update to version v3.0.4github.com/go-jose/go-jose (GO):
Affected version(s) >=v0.0.0-20141219183151-114bcf4f4226 <v3.0.4Fix Suggestion:
Update to version v3.0.4Related ResourcesĀ (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.6
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
Exploit Maturity
UNREPORTED
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
0.08