Security mailing lists by PureSourceCode

CVE-2025-27144

MEDIUM 6.6CVSS 4.0

DoS 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed 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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.