Vulnerability · Published Feb 24, 2025 · Assigned by GitHub_M
CVE-2025-27144Go JOSE's Parsing Vulnerable to Denial of Service
Medium 6.6
In plain English
A medium-severity resource allocation without limits in go-jose from go-jose. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | buildah | 2:1.39.4-1.el10_0 | ALSA-2025:7459 |
| AlmaLinux:9 | buildah | 2:1.39.4-1.el9_6 | ALSA-2025:7389 |
| AlmaLinux:10 | buildah-tests | 2:1.39.4-1.el10_0 | ALSA-2025:7459 |
| AlmaLinux:9 | buildah-tests | 2:1.39.4-1.el9_6 | ALSA-2025:7389 |
| AlmaLinux:10 | osbuild-composer | 134.1-3.el10_0.alma.1 | ALSA-2025:19566 |
| AlmaLinux:10 | osbuild-composer-core | 134.1-3.el10_0.alma.1 | ALSA-2025:19566 |
| AlmaLinux:10 | osbuild-composer-worker | 134.1-3.el10_0.alma.1 | ALSA-2025:19566 |
| AlmaLinux:10 | podman | 6:5.4.0-9.el10_0 | ALSA-2025:7462 |
| AlmaLinux:10 | podman-docker | 6:5.4.0-9.el10_0 | ALSA-2025:7462 |
| AlmaLinux:10 | podman-remote | 6:5.4.0-9.el10_0 | ALSA-2025:7462 |
| AlmaLinux:10 | podman-tests | 6:5.4.0-9.el10_0 | ALSA-2025:7462 |
| AlmaLinux:10 | skopeo | 2:1.18.1-1.el10_0 | ALSA-2025:7467 |
| AlmaLinux:9 | skopeo | 2:1.18.1-1.el9_6 | ALSA-2025:7397 |
| AlmaLinux:10 | skopeo-tests | 2:1.18.1-1.el10_0 | ALSA-2025:7467 |
| AlmaLinux:9 | skopeo-tests | 2:1.18.1-1.el9_6 | ALSA-2025:7397 |
| Debian:13 | golang-github-go-jose-go-jose | 4.0.5-1 | DEBIAN-CVE-2025-27144 |
| Debian:14 | golang-github-go-jose-go-jose | 4.0.5-1 | DEBIAN-CVE-2025-27144 |
| Go | github.com/go-jose/go-jose | no fix listed | GO-2025-3485 |
| Go | github.com/go-jose/go-jose | 3.0.4 | GHSA-c6gw-w398-hv78 |
| Go | github.com/go-jose/go-jose/v3 | 3.0.4 | GO-2025-3485 |
| Go | github.com/go-jose/go-jose/v3 | 3.0.4 | GHSA-c6gw-w398-hv78 |
| Go | github.com/go-jose/go-jose/v4 | 4.0.5 | GO-2025-3485 |
| Go | github.com/go-jose/go-jose/v4 | 4.0.5 | GHSA-c6gw-w398-hv78 |
| Go | github.com/square/go-jose | no fix listed | GO-2025-3485 |
| Rocky Linux:10 | buildah | 2:1.39.4-1.el10_0 | RLSA-2025:7459 |
| Rocky Linux:9 | buildah | 2:1.39.4-1.el9_6 | RLSA-2025:7389 |
| Rocky Linux:10 | opentelemetry-collector | 0:0.107.0-9.el10_0 | RLSA-2025:7479 |
| Rocky Linux:10 | podman | 6:5.4.0-9.el10_0 | RLSA-2025:7462 |
| Rocky Linux:9 | podman | 5:5.4.0-9.el9_6 | RLSA-2025:7391 |
| Rocky Linux:10 | skopeo | 2:1.18.1-1.el10_0 | RLSA-2025:7467 |
| Rocky Linux:9 | skopeo | 2:1.18.1-1.el9_6 | RLSA-2025:7397 |
| Ubuntu:24.04:LTS | golang-github-go-jose-go-jose | no fix listed | UBUNTU-CVE-2025-27144 |
| Ubuntu:25.10 | golang-github-go-jose-go-jose | no fix listed | UBUNTU-CVE-2025-27144 |
| Ubuntu:26.10 | golang-github-go-jose-go-jose | no fix listed | UBUNTU-CVE-2025-27144 |
Affected products (as reported)
Weakness: CWE-770 · 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
References
- https://github.com/go-jose/go-jose/security/advisories/GHSA-c6gw-w398-hv78 x_refsource_CONFIRM
- https://github.com/go-jose/go-jose/commit/99b346cec4e86d102284642c5dcbe9bb0cacfc22 x_refsource_MISC
- https://github.com/go-jose/go-jose/releases/tag/v4.0.5 x_refsource_MISC