{"id":"GHSA-c6gw-w398-hv78","revision":"c028ab49a55741a293242077bda6b1f4","records":[{"revision":"c028ab49a55741a293242077bda6b1f4","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-c6gw-w398-hv78","aliases":["CVE-2025-27144","GO-2025-3485"],"title":"DoS in go-jose Parsing","description":"### Impact\nWhen 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.\n\n### Patches\nVersion 4.0.5 fixes this issue\n\n### Workarounds\nApplications could pre-validate payloads passed to go-jose do not contain an excessive number of '.' characters.\n\n### References\nThis is the same sort of issue as in the golang.org/x/oauth2/jws package as CVE-2025-22868 and Go issue https://go.dev/issue/71490.","state":0,"publishedAt":"2025-02-24T22:49:19+00:00","modifiedAt":"2026-09-10T03:50:22.5937843+00:00","affected":[{"ecosystem":"Go","name":"github.com/go-jose/go-jose/v4","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"4.0.5"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/go-jose/go-jose/v3","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.0.4"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/go-jose/go-jose","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.0.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/go-jose/go-jose/security/advisories/GHSA-c6gw-w398-hv78","https://nvd.nist.gov/vuln/detail/CVE-2025-27144","https://github.com/golang/go/issues/71490","https://github.com/go-jose/go-jose/commit/99b346cec4e86d102284642c5dcbe9bb0cacfc22","https://github.com/go-jose/go-jose","https://github.com/go-jose/go-jose/releases/tag/v4.0.5","https://go.dev/issue/71490"],"sourceUrl":"https://github.com/advisories/GHSA-c6gw-w398-hv78","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-c6gw-w398-hv78","identifiers":["GHSA-c6gw-w398-hv78","CVE-2025-27144","GO-2025-3485"]},"retained":false,"historicalAffected":[]}],"coverage":[]}