CVE-2025-27144
MEDIUM 6.6CVSS 4.0DoS in go-jose Parsing
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.
- Published
- 24 Feb 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-400CWE-770
- Also known as
- GHSA-c6gw-w398-hv78GO-2025-3485
- Sources
- NVDJSONOSV GHSA-c6gw-w398-hv78JSONOSV GO-2025-3485JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.6 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/go-jose/go-jose/v4 | < 4.0.5 | 4.0.5 |
| OSV | Go | github.com/go-jose/go-jose/v3 | < 3.0.4 | 3.0.4 |
| OSV | Go | github.com/go-jose/go-jose | < 3.0.4 | 3.0.4 |
| OSV | Go | github.com/go-jose/go-jose | all versions | |
| OSV | Go | github.com/square/go-jose | all versions |
References
- https://github.com/go-jose/go-jose/commit/99b346cec4e86d102284642c5dcbe9bb0cacfc22 · WEB, FIX
- https://github.com/go-jose/go-jose/releases/tag/v4.0.5 · WEB
- https://github.com/go-jose/go-jose/security/advisories/GHSA-c6gw-w398-hv78 · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-27144 · ADVISORY
- https://github.com/golang/go/issues/71490 · WEB
- https://github.com/go-jose/go-jose · PACKAGE
- https://go.dev/issue/71490 · WEB
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 24 Feb 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Mar 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 Feb 2025)