CVE-2025-27144go-jose
Medium 6.6 No auth needed
Follow: this CVE · go-jose · go-jose We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for go-jose.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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
- go-jose · go-jose
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Red Hat Security Advisory: opentelemetry-collector security update · Red Hat · RHSA-2025:7479 · Nov 23, 2026 High
- Red Hat Security Advisory: podman security update · Red Hat · RHSA-2025:7462 · Nov 23, 2026 High
- Red Hat Security Advisory: opentelemetry-collector security update · Red Hat · RHSA-2025:7407 · Nov 23, 2026 High
- kubectl-retina-1.3.1-1.1 on GA media · SUSE · openSUSE-SU-2026:12297-1 · Oct 27, 2026 Critical
- Security update for vexctl · SUSE · openSUSE-SU-2026:21481-1 · Jul 30, 2026 Critical
- Security update for gh · SUSE · openSUSE-SU-2026:21310-1 · Jul 10, 2026 Critical
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.