CVE-2025-27144 Details
Description
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.
A denial-of-service vulnerability has been identified in the Go JOSE library, specifically in versions 4.x prior to 4.0.5. The issue arises when the library parses compact JSON Web Signature (JWS) or JSON Web Encryption (JWE) inputs. The vulnerability is caused by the use of 'strings.Split' to separate JWT tokens, which can lead to excessive memory consumption when handling tokens that are maliciously crafted with a high number of '.' characters. An attacker could exploit this behavior by sending numerous malformed tokens, causing memory exhaustion and disrupting service.
Users can upgrade to Go JOSE version 4.0.5 or later, which addresses this vulnerability. As an additional measure, applications can pre-validate that tokens do not contain an excessive number of '.' characters.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 24, 2025CISA-ADP
Assessed Feb 25, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/go-jose/go-jose/commit/99b346cec4e86d102284642c5dcbe9bb0cacfc22 | [email protected] | Source CodeVendor |
| https://github.com/go-jose/go-jose/releases/tag/v4.0.5 | [email protected] | Release NotesVendor |
| https://github.com/go-jose/go-jose/security/advisories/GHSA-c6gw-w398-hv78 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Go JOSE | < 3.0.4 (semver) < 4.0.5 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 24, 2025 | New CVE Received | [email protected] |
Volerion