Lookup for vulnerabilities affecting packages.

Vulnerability_idVCID-r5yf-qtqg-93cs
Summary
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.
Aliases
0
alias CVE-2026-34986
1
alias GHSA-78h2-9frx-2jm8
Fixed_packages
0
url pkg:deb/debian/golang-github-go-jose-go-jose@4.1.4-1
purl pkg:deb/debian/golang-github-go-jose-go-jose@4.1.4-1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/golang-github-go-jose-go-jose@4.1.4-1
1
url pkg:deb/debian/golang-github-go-jose-go-jose@4.1.4-1?distro=trixie
purl pkg:deb/debian/golang-github-go-jose-go-jose@4.1.4-1?distro=trixie
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/golang-github-go-jose-go-jose@4.1.4-1%3Fdistro=trixie
2
url pkg:golang/github.com/go-jose/go-jose/v3@3.0.5
purl pkg:golang/github.com/go-jose/go-jose/v3@3.0.5
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:golang/github.com/go-jose/go-jose/v3@3.0.5
3
url pkg:golang/github.com/go-jose/go-jose/v4@4.1.4
purl pkg:golang/github.com/go-jose/go-jose/v4@4.1.4
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:golang/github.com/go-jose/go-jose/v4@4.1.4
Affected_packages
0
url pkg:deb/debian/golang-github-go-jose-go-jose@4.0.5-1?distro=trixie
purl pkg:deb/debian/golang-github-go-jose-go-jose@4.0.5-1?distro=trixie
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-r5yf-qtqg-93cs
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/golang-github-go-jose-go-jose@4.0.5-1%3Fdistro=trixie
1
url pkg:deb/debian/golang-github-go-jose-go-jose@4.0.5-1
purl pkg:deb/debian/golang-github-go-jose-go-jose@4.0.5-1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-r5yf-qtqg-93cs
resource_url http://public2.vulnerablecode.io/packages/pkg:deb/debian/golang-github-go-jose-go-jose@4.0.5-1
References
0
reference_url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-34986.json
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-34986.json
1
reference_url https://api.first.org/data/v1/epss?cve=CVE-2026-34986
reference_id
reference_type
scores
0
value 0.00015
scoring_system epss
scoring_elements 0.03002
published_at 2026-04-08T12:55:00Z
1
value 0.00015
scoring_system epss
scoring_elements 0.03001
published_at 2026-04-07T12:55:00Z
2
value 0.00015
scoring_system epss
scoring_elements 0.02988
published_at 2026-04-11T12:55:00Z
3
value 0.00015
scoring_system epss
scoring_elements 0.03026
published_at 2026-04-09T12:55:00Z
4
value 0.00019
scoring_system epss
scoring_elements 0.05291
published_at 2026-04-21T12:55:00Z
5
value 0.00019
scoring_system epss
scoring_elements 0.05191
published_at 2026-04-13T12:55:00Z
6
value 0.00019
scoring_system epss
scoring_elements 0.05205
published_at 2026-04-12T12:55:00Z
7
value 0.00019
scoring_system epss
scoring_elements 0.05135
published_at 2026-04-16T12:55:00Z
8
value 0.00019
scoring_system epss
scoring_elements 0.05138
published_at 2026-04-18T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2026-34986
2
reference_url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-34986
reference_id
reference_type
scores
url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-34986
3
reference_url https://github.com/go-jose/go-jose
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://github.com/go-jose/go-jose
4
reference_url https://github.com/go-jose/go-jose/security/advisories/GHSA-78h2-9frx-2jm8
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2026-04-07T14:21:42Z/
url https://github.com/go-jose/go-jose/security/advisories/GHSA-78h2-9frx-2jm8
5
reference_url https://nvd.nist.gov/vuln/detail/CVE-2026-34986
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2026-34986
6
reference_url https://pkg.go.dev/github.com/go-jose/go-jose/v4#pkg-constants
reference_id
reference_type
scores
0
value 7.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1
value HIGH
scoring_system generic_textual
scoring_elements
2
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2026-04-07T14:21:42Z/
url https://pkg.go.dev/github.com/go-jose/go-jose/v4#pkg-constants
7
reference_url https://bugzilla.redhat.com/show_bug.cgi?id=2455470
reference_id 2455470
reference_type
scores
url https://bugzilla.redhat.com/show_bug.cgi?id=2455470
8
reference_url https://access.redhat.com/errata/RHSA-2026:8490
reference_id RHSA-2026:8490
reference_type
scores
url https://access.redhat.com/errata/RHSA-2026:8490
9
reference_url https://access.redhat.com/errata/RHSA-2026:8491
reference_id RHSA-2026:8491
reference_type
scores
url https://access.redhat.com/errata/RHSA-2026:8491
10
reference_url https://access.redhat.com/errata/RHSA-2026:8493
reference_id RHSA-2026:8493
reference_type
scores
url https://access.redhat.com/errata/RHSA-2026:8493
Weaknesses
0
cwe_id 248
name Uncaught Exception
description An exception is thrown from a function, but it is not caught.
1
cwe_id 131
name Incorrect Calculation of Buffer Size
description The product does not correctly calculate the size to be used when allocating a buffer, which could lead to a buffer overflow.
Exploits
Severity_range_score7.0 - 8.9
Exploitability0.5
Weighted_severity8.0
Risk_score4.0
Resource_urlhttp://public2.vulnerablecode.io/vulnerabilities/VCID-r5yf-qtqg-93cs