UBUNTU-CVE-2026-34986

Source
https://ubuntu.com/security/CVE-2026-34986
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2026-34986
Upstream
Published
2026-04-06T17:17:00Z
Modified
2026-05-20T16:12:55.223008286Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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. Prior to 4.1.4 and 3.0.5, decrypting a JSON Web Encryption (JWE) object will panic if the alg field indicates a key wrapping algorithm (one ending in KW, with the exception of A128GCMKW, A192GCMKW, and A256GCMKW) and the encryptedkey field is empty. The panic happens when cipher.KeyUnwrap() in keywrap.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. This vulnerability is fixed in 4.1.4 and 3.0.5.

References

Affected packages

Ubuntu:20.04:LTS
golang-gopkg-square-go-jose.v2

Package

Name
golang-gopkg-square-go-jose.v2
Purl
pkg:deb/ubuntu/golang-gopkg-square-go-jose.v2?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.3.1-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.3.1-1",
            "binary_name": "golang-gopkg-square-go-jose.v2-dev"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
Ubuntu:22.04:LTS
golang-gopkg-square-go-jose.v2

Package

Name
golang-gopkg-square-go-jose.v2
Purl
pkg:deb/ubuntu/golang-gopkg-square-go-jose.v2?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.5.1-2
2.6.0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "golang-gopkg-square-go-jose.v2-dev",
            "binary_version": "2.6.0-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
Ubuntu:24.04:LTS
golang-github-go-jose-go-jose

Package

Name
golang-github-go-jose-go-jose
Purl
pkg:deb/ubuntu/golang-github-go-jose-go-jose?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.0.1-1
3.0.1-2
4.*
4.0.1-4
4.0.1-4ubuntu0.1
4.0.1-4ubuntu0.2
4.0.1-4ubuntu0.3

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "golang-github-go-jose-go-jose-dev",
            "binary_version": "4.0.1-4ubuntu0.3"
        },
        {
            "binary_version": "4.0.1-4ubuntu0.3",
            "binary_name": "jose-util"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
golang-gopkg-square-go-jose.v2

Package

Name
golang-gopkg-square-go-jose.v2
Purl
pkg:deb/ubuntu/golang-gopkg-square-go-jose.v2?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.6.0-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "golang-gopkg-square-go-jose.v2-dev",
            "binary_version": "2.6.0-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
Ubuntu:25.10
golang-github-go-jose-go-jose

Package

Name
golang-github-go-jose-go-jose
Purl
pkg:deb/ubuntu/golang-github-go-jose-go-jose?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
4.0.5-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "golang-github-go-jose-go-jose-dev",
            "binary_version": "4.0.5-1"
        },
        {
            "binary_version": "4.0.5-1",
            "binary_name": "jose-util"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
golang-github-go-jose-go-jose.v3

Package

Name
golang-github-go-jose-go-jose.v3
Purl
pkg:deb/ubuntu/golang-github-go-jose-go-jose.v3?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.0.3-6

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "3.0.3-6",
            "binary_name": "golang-github-go-jose-go-jose.v3-dev"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
golang-gopkg-square-go-jose.v2

Package

Name
golang-gopkg-square-go-jose.v2
Purl
pkg:deb/ubuntu/golang-gopkg-square-go-jose.v2?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.6.3-3

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.6.3-3",
            "binary_name": "golang-gopkg-square-go-jose.v2-dev"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
Ubuntu:26.04:LTS
golang-github-go-jose-go-jose

Package

Name
golang-github-go-jose-go-jose
Purl
pkg:deb/ubuntu/golang-github-go-jose-go-jose?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
4.0.5-1
4.0.5-1build1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "golang-github-go-jose-go-jose-dev",
            "binary_version": "4.0.5-1build1"
        },
        {
            "binary_name": "jose-util",
            "binary_version": "4.0.5-1build1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
golang-github-go-jose-go-jose.v3

Package

Name
golang-github-go-jose-go-jose.v3
Purl
pkg:deb/ubuntu/golang-github-go-jose-go-jose.v3?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.0.3-6

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "golang-github-go-jose-go-jose.v3-dev",
            "binary_version": "3.0.3-6"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"
golang-gopkg-square-go-jose.v2

Package

Name
golang-gopkg-square-go-jose.v2
Purl
pkg:deb/ubuntu/golang-gopkg-square-go-jose.v2?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.6.3-3

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.6.3-3",
            "binary_name": "golang-gopkg-square-go-jose.v2-dev"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-34986.json"