GHSA-c6gw-w398-hv78 — v4
Fix: go-jose/go-jose@99b346cGHSA-c6gw-w398-hv78 is a CWE-770 vulnerability in github.com/go-jose/go-jose/v4. A fix is available for github.com/go-jose/go-jose/v4 — see the affected versions and patch details below.
DoS in go-jose Parsing
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-c6gw-w398-hv78.
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
Real-World Exposure
github.com/go-jose/go-jose/v4🐹github.com/go-jose/go-jose/v3🐹github.com/go-jose/go-joseReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/go-jose/go-jose/v4 | all versions | 4.0.5go get github.com/go-jose/go-jose/v4@v4.0.5 |
| 🐹Go | github.com/go-jose/go-jose/v3 | all versions | 3.0.4go get github.com/go-jose/go-jose/v3@v3.0.4 |
| 🐹Go | github.com/go-jose/go-jose | all versions | 3.0.4go get github.com/go-jose/go-jose@v3.0.4 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/go-jose/go-jose/v4, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/go-jose/go-jose/v4 to 4.0.5 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-c6gw-w398-hv78 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-c6gw-w398-hv78 can be triaged on real exposure rather than presence alone.
Tailored to GHSA-c6gw-w398-hv78. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
As a workaround, applications can pre-validate that payloads being passed to Go JOSE do not contain an excessive number of `.` characters.Source: Red Hat security advisory for GHSA-c6gw-w398-hv78 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| OADP-1.4-RHEL-9 | oadp/oadp-mustgather-rhel9:1.4.5-34 | RHSA-2025:11396 |
| Red Hat Advanced Cluster Security 4.6 | advanced-cluster-security/rhacs-central-db-rhel8:4.6.4-4 | RHSA-2025:3439 |
| Red Hat Advanced Cluster Security 4.7 | advanced-cluster-security/rhacs-central-db-rhel8:4.7.1-2 | RHSA-2025:3438 |
| Red Hat Enterprise Linux 10 | osbuild-composer-0:134.1-3.el10_0 | RHSA-2025:19566 |
| Red Hat Enterprise Linux 10 | buildah-2:1.39.4-1.el10_0 | RHSA-2025:7459 |
| Red Hat Enterprise Linux 10 | podman-6:5.4.0-9.el10_0 | RHSA-2025:7462 |
| Red Hat Enterprise Linux 10 | skopeo-2:1.18.1-1.el10_0 | RHSA-2025:7467 |
| Red Hat Enterprise Linux 10 | opentelemetry-collector-0:0.107.0-9.el10_0 | RHSA-2025:7479 |
Frequently Asked Questions
Is GHSA-c6gw-w398-hv78 in your dependencies?
O3 Security finds GHSA-c6gw-w398-hv78 across Go dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.