Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/go-jose/go-jose/v4
  4. ›
  5. CVE-2025-27144

CVE-2025-27144: DoS in go-jose Parsing

February 24, 2025 (updated October 31, 2025)

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.

References

  • github.com/advisories/GHSA-c6gw-w398-hv78
  • github.com/go-jose/go-jose
  • github.com/go-jose/go-jose/commit/99b346cec4e86d102284642c5dcbe9bb0cacfc22
  • github.com/go-jose/go-jose/releases/tag/v4.0.5
  • github.com/go-jose/go-jose/security/advisories/GHSA-c6gw-w398-hv78
  • github.com/golang/go/issues/71490
  • go.dev/issue/71490
  • nvd.nist.gov/vuln/detail/CVE-2025-27144

Code Behaviors & Features

Detect and mitigate CVE-2025-27144 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.0.5

Fixed versions

  • 4.0.5

Solution

Upgrade to version 4.0.5 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

go/github.com/go-jose/go-jose/v4/CVE-2025-27144.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:49 +0000.