Search for packages
| purl | pkg:deb/debian/golang-github-go-jose-go-jose@4.1.4-1?distro=trixie |
| Vulnerability | Summary | Fixed by |
|---|---|---|
| This package is not known to be affected by vulnerabilities. | ||
| Vulnerability | Summary | Aliases |
|---|---|---|
| VCID-bq1t-9nnj-mkes | Go JOSE vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) ### Impact An attacker could send a JWE containing compressed data that used large amounts of memory and CPU when decompressed by Decrypt or DecryptMulti. Those functions now return an error if the decompressed data would exceed 250kB or 10x the compressed size (whichever is larger). Thanks to Enze Wang@Alioth and Jianjun Chen@Zhongguancun Lab (@zer0yu and @chenjj) for reporting. ### Patches The problem is fixed in the following packages and versions: - github.com/go-jose/go-jose/v4 version 4.0.1 - github.com/go-jose/go-jose/v3 version 3.0.3 - gopkg.in/go-jose/go-jose.v2 version 2.6.3 The problem will not be fixed in the following package because the package is archived: - gopkg.in/square/go-jose.v2 |
CVE-2024-28180
GHSA-c5q2-7r4c-mv6g |
| VCID-r5yf-qtqg-93cs | Go JOSE Panics in JWE decryption ### Impact Decrypting a JSON Web Encryption (JWE) object will panic if the `alg` field indicates a key wrapping algorithm ([one ending in `KW`](https://pkg.go.dev/github.com/go-jose/go-jose/v4#pkg-constants), with the exception of `A128GCMKW`, `A192GCMKW`, and `A256GCMKW`) and the `encrypted_key` field is empty. The panic happens when `cipher.KeyUnwrap()` in `key_wrap.go` attempts to allocate a slice with a zero or negative length based on the length of the `encrypted_key`. This code path is reachable from `ParseEncrypted()` / `ParseEncryptedJSON()` / `ParseEncryptedCompact()` followed by `Decrypt()` on the resulting object. Note that the parse functions take a list of accepted key algorithms. If the accepted key algorithms do not include any key wrapping algorithms, parsing will fail and the application will be unaffected. This panic is also reachable by calling `cipher.KeyUnwrap()` directly with any `ciphertext` parameter less than 16 bytes long, but calling this function directly is less common. Panics can lead to denial of service. ### Fixed In 4.1.4 and v3.0.5 ### Workarounds If the list of `keyAlgorithms` passed to `ParseEncrypted()` / `ParseEncryptedJSON()` / `ParseEncryptedCompact()` does not include key wrapping algorithms (those ending in `KW`), your application is unaffected. If your application uses key wrapping, you can prevalidate to the JWE objects to ensure the `encrypted_key` field is nonempty. If your application accepts JWE Compact Serialization, apply that validation to the corresponding field of that serialization (the data between the first and second `.`). ### Thanks Go JOSE thanks Datadog's Security team for finding this issue. |
CVE-2026-34986
GHSA-78h2-9frx-2jm8 |
| VCID-rbtx-222u-zudf | DoS in go-jose Parsing ### Impact 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. ### Patches Version 4.0.5 fixes this issue ### Workarounds Applications could pre-validate payloads passed to go-jose do not contain an excessive number of '.' characters. ### References This is the same sort of issue as in the golang.org/x/oauth2/jws package as CVE-2025-22868 and Go issue https://go.dev/issue/71490. |
CVE-2025-27144
GHSA-c6gw-w398-hv78 |
| Date | Actor | Action | Vulnerability | Source | VulnerableCode Version |
|---|---|---|---|---|---|
| 2026-04-16T13:13:17.973506+00:00 | Debian Importer | Fixing | VCID-rbtx-222u-zudf | https://security-tracker.debian.org/tracker/data/json | 38.4.0 |
| 2026-04-16T10:55:58.815775+00:00 | Debian Importer | Fixing | VCID-bq1t-9nnj-mkes | https://security-tracker.debian.org/tracker/data/json | 38.4.0 |
| 2026-04-13T09:06:04.578294+00:00 | Debian Importer | Fixing | VCID-rbtx-222u-zudf | https://security-tracker.debian.org/tracker/data/json | 38.3.0 |
| 2026-04-13T07:24:44.378719+00:00 | Debian Importer | Fixing | VCID-bq1t-9nnj-mkes | https://security-tracker.debian.org/tracker/data/json | 38.3.0 |
| 2026-04-08T03:37:12.283254+00:00 | Debian Importer | Fixing | VCID-r5yf-qtqg-93cs | https://security-tracker.debian.org/tracker/data/json | 38.1.0 |
| 2026-04-08T03:37:12.262499+00:00 | Debian Importer | Fixing | VCID-rbtx-222u-zudf | https://security-tracker.debian.org/tracker/data/json | 38.1.0 |
| 2026-04-08T03:37:12.236783+00:00 | Debian Importer | Fixing | VCID-bq1t-9nnj-mkes | https://security-tracker.debian.org/tracker/data/json | 38.1.0 |