# CVE-2025-27144: Go JOSE's Parsing Vulnerable to Denial of Service

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.6
- **CVSS:** 6.6 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; Exploit maturity: Unreported
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.54% (percentile 39, 2026-11-28)
- **CWE:** CWE-770
- **Aliases:** GHSA-c6gw-w398-hv78, GO-2025-3485
- **Published:** 2025-02-24T22:22:22.863Z
- **Modified:** 2026-09-10T03:50:22.593Z

## Who should check

- Projects that depend on Go package github.com/go-jose/go-jose/v4 (\< 4.0.5)
- Projects that depend on Go package github.com/go-jose/go-jose/v3 (\< 3.0.4)
- Projects that depend on Go package github.com/go-jose/go-jose (\< 3.0.4)
- Projects that depend on Go package github.com/square/go-jose
- Anyone running go-jose \>= 4.0.0, \< 4.0.5

## Description

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.

## Affected and fixed versions

- Go `github.com/go-jose/go-jose/v4`: affected \< 4.0.5; fixed 4.0.5 (osv)
- Go `github.com/go-jose/go-jose/v3`: affected \< 3.0.4; fixed 3.0.4 (osv)
- Go `github.com/go-jose/go-jose`: affected \< 3.0.4; fixed 3.0.4 (osv)
- Go `github.com/square/go-jose`: affected see advisory; fixed no fix listed yet (osv)
- go-jose: \>= 4.0.0, \< 4.0.5 (cvelist)

## Mitigation

- Upgrade github.com/go-jose/go-jose/v4 to 4.0.5 or later.
- Upgrade github.com/go-jose/go-jose/v3 to 3.0.4 or later.
- Upgrade github.com/go-jose/go-jose to 3.0.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-27144. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-27144.md
Affected: github.com/go-jose/go-jose/v4 < 4.0.5; github.com/go-jose/go-jose/v3 < 3.0.4; github.com/go-jose/go-jose < 3.0.4; github.com/square/go-jose
Fixed in: 4.0.5, 3.0.4

Steps:
1. Search this machine and project for github.com/go-jose/go-jose/v4 (Go), github.com/go-jose/go-jose/v3 (Go), github.com/go-jose/go-jose (Go), github.com/square/go-jose (Go), go-jose: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-27144 being exploited?

There is no confirmed exploitation: CVE-2025-27144 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.54% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-27144?

Medium: CVSS 6.6 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-27144?

github.com/go-jose/go-jose/v4 \< 4.0.5; github.com/go-jose/go-jose/v3 \< 3.0.4; github.com/go-jose/go-jose \< 3.0.4; github.com/square/go-jose.

### Is there a fix for CVE-2025-27144?

Yes. Fixed in 4.0.5, 3.0.4. Upgrade github.com/go-jose/go-jose/v4 to 4.0.5 or later. Upgrade github.com/go-jose/go-jose/v3 to 3.0.4 or later. Upgrade github.com/go-jose/go-jose to 3.0.4 or later.

### How do I check if I'm affected by CVE-2025-27144?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-27144>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-c6gw-w398-hv78> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2025-3485> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-27144> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-27144>
