Allocation of Resources Without Limits or Throttling Affecting github.com/go-jose/go-jose package, versions <3.0.4>=4.0.0 <4.0.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOJOSEGOJOSE-8745974
  • published25 Feb 2025
  • disclosed24 Feb 2025
  • creditUnknown

Introduced: 24 Feb 2025

NewCVE-2025-27144  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade github.com/go-jose/go-jose to version 3.0.4, 4.0.5 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to the use of strings.Split to split JWT tokens. An attacker can cause memory exhaustion and service disruption by sending numerous malformed tokens with a large number of . characters.

Workaround

This vulnerability can be mitigated by pre-validating that payloads passed to Go JOSE do not contain an excessive number of . characters.

CVSS Scores

version 4.0
version 3.1