Live threats

All CVEs / go-jose

CVE-2025-27144go-jose

Medium 6.6 No auth needed

Priority
55
CVSS 4.0
6.6
EPSS
—
Auth required
No
Published
Feb 24, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-770
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
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/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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for go-jose.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/go-jose/go-jose < 3.0.4 3.0.4 go get github.com/go-jose/go-jose@v3.0.4
Go github.com/go-jose/go-jose all no fixed version —
Go github.com/go-jose/go-jose/v3 < 3.0.4 3.0.4 go get github.com/go-jose/go-jose/v3@v3.0.4
Go github.com/go-jose/go-jose/v3 < 3.0.4 3.0.4 go get github.com/go-jose/go-jose/v3@v3.0.4
Go github.com/go-jose/go-jose/v4 < 4.0.5 4.0.5 go get github.com/go-jose/go-jose/v4@v4.0.5
Go github.com/go-jose/go-jose/v4 < 4.0.5 4.0.5 go get github.com/go-jose/go-jose/v4@v4.0.5
Go github.com/square/go-jose all no fixed version —

Per OSV / GitHub Advisories (GHSA-c6gw-w398-hv78, GO-2025-3485). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Also: Red Hat (+3), SUSE (+6)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.