{"id":"CVE-2025-27144","published":"2025-02-24T22:22:22Z","modified":"2025-02-25T14:27:04Z","title":"Go JOSE's Parsing Vulnerable to Denial of Service","vendor":"go-jose","product":"go-jose","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.6,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0054,"percentile":0.38927,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/go-jose/go-jose/security/advisories/GHSA-c6gw-w398-hv78","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/go-jose/go-jose/commit/99b346cec4e86d102284642c5dcbe9bb0cacfc22","tags":["x_refsource_MISC"]},{"url":"https://github.com/go-jose/go-jose/releases/tag/v4.0.5","tags":["x_refsource_MISC"]}],"priority":{"score":12.4,"factors":[{"name":"EPSS percentile","points":7.79},{"name":"CVSS severity","points":4.62}]},"vendorSlug":"go-jose","affectedVersions":[{"vendor":"go-jose","product":"go-jose","versions":[">= 4.0.0, < 4.0.5"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-02-25T14:26:42.682392Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/go-jose/go-jose/v4","vulnerableRanges":["<4.0.5"],"patched":["4.0.5"],"from":["GHSA-c6gw-w398-hv78","GO-2025-3485"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/go-jose/go-jose/v3","vulnerableRanges":["<3.0.4"],"patched":["3.0.4"],"from":["GHSA-c6gw-w398-hv78","GO-2025-3485"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/go-jose/go-jose","vulnerableRanges":["<3.0.4","all versions"],"patched":["3.0.4"],"from":["GHSA-c6gw-w398-hv78","GO-2025-3485"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/square/go-jose","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2025-3485"],"provenance":"source"}],"summary":{"text":"The go-jose library's JWS and JWE compact-format parsing in versions on the 4.x branch before 4.0.5 splits incoming tokens with strings.Split on \".\" without bounding the result, so a crafted token containing many \".\" characters can drive excessive memory use. An unauthenticated remote attacker who can send tokens to an application that parses them with the affected library can exhaust memory and cause a denial of service, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:36Z"},"euvd":{"id":"EUVD-2025-4268","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-go-jose-cve-2025-27144","children":[{"from":"CVE-2025-27144","to":"CVE-2026-116587","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["jwe.go","jws.go"],"commits":["https://github.com/go-jose/go-jose/commit/99b346cec4e86d102284642c5dcbe9bb0cacfc22","https://github.com/go-jose/go-jose/commit/a0111f82742fa92bceec9ede40845e73319e6230"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-28180","published":"2024-03-09","fixed":"4.0.1","kev":false,"link":{"from":"CVE-2024-28180","to":"CVE-2025-27144","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/go-jose/go-jose/v4","fromFixed":"4.0.1","toFixed":"4.0.5","daysApart":352},{"kind":"version-step","provenance":"source","package":"Go:github.com/go-jose/go-jose/v3","fromFixed":"3.0.3","toFixed":"3.0.4","daysApart":352}]}},{"cve":"CVE-2025-27144","published":"2025-02-24","fixed":"4.0.5","kev":false},{"cve":"CVE-2026-34986","published":"2026-04-06","fixed":"4.1.4","kev":false,"link":{"from":"CVE-2025-27144","to":"CVE-2026-34986","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/go-jose/go-jose/v4","fromFixed":"4.0.5","toFixed":"4.1.4","daysApart":406},{"kind":"version-step","provenance":"source","package":"Go:github.com/go-jose/go-jose/v3","fromFixed":"3.0.4","toFixed":"3.0.5","daysApart":406}]}},{"cve":"CVE-2026-116585","published":"2026-10-26","fixed":"4.1.5","kev":false},{"cve":"CVE-2026-116586","published":"2026-10-26","fixed":"4.1.5","kev":false}],"package":"Go:github.com/go-jose/go-jose/v4"}}