Skip to main content

EUVDEUVD-2026-19363

| CVE-2026-34986 HIGH
Uncaught Exception (CWE-248)
2026-04-03 https://github.com/go-jose/go-jose GHSA-78h2-9frx-2jm8
7.5
CVSS 3.1 · Vendor: https://github.com/go-jose/go-jose
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious JWE object
  2. Delivery
    Set alg to key wrapping algorithm
  3. Exploit
    Leave encrypted_key field empty
  4. Execution
    Trigger panic in key_wrap.go
  5. Impact
    Cause denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception handling completeness
Exploitation Conditions

No special conditions — remote unauthenticated exploitation against go-jose/v4 library when parsing JWE objects with empty encrypted_key field and key wrapping algorithms (RSA1_5KW, RSA-OAEPKW, A128KW, A192KW, A256KW, PBES2-HS256+A128KW, PBES2-HS512+A256KW) via ParseEncrypted(), ParseEncryptedJSON(), or ParseEncryptedCompact().

Impact

Real-world risk is moderate and highly context-dependent despite the 7.5 CVSS base score. The CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates unauthenticated remote attackers can trigger the condition with low complexity, making it technically accessible. However, exploitation requires the target application to accept key wrapping algorithms in its JWE parsing configuration, limiting the attack surface to applications specifically using KW-family algorithms for encrypted key transport. The EPSS probability of 0.045% suggests security researchers assess real-world exploitation as unlikely, likely due to the limited deployment of affected configurations and the availability of simple workarounds. No confirmed active exploitation (not in CISA KEV) and no public exploit code exists at time of analysis. The impact is strictly availability (denial of service through panic) with no confidentiality or integrity consequences, making this a lower priority than vulnerabilities enabling data access or code execution. Applications using only direct key agreement or GCM-based key wrapping are inherently protected. SSVC framework factors: exploitation status is none, automatable is yes (malformed JWE can be constructed programmatically), technical impact is partial (DoS only).

Exploit ScenarioDerived

An unauthenticated remote attacker crafts a malicious JWE object with a valid JSON structure specifying a key wrapping algorithm such as RSA-OAEP-KW in the alg header field but providing an empty string for the encrypted_key field. The attacker sends this malformed JWE to a vulnerable application endpoint that processes encrypted tokens, such as an API authentication handler or OAuth token endpoint. When the application calls ParseEncrypted() followed by Decrypt() to process the received token, the go-jose library attempts to unwrap the encryption key using cipher.KeyUnwrap(), which triggers an immediate panic due to invalid slice allocation. The application process terminates abruptly without graceful error handling, causing service disruption for all users. Repeated submission of crafted JWE objects

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 03, 2026

Denial of service via panic in go-jose library (versions prior to v4.1.4 and v3.0.5) occurs when decrypting malformed JSON Web Encryption (JWE) objects that specify a key wrapping algorithm (e.g., RSA-OAEP-KW, ECDH-ES+A128KW) but contain an empty encrypted_key field. The panic is triggered during slice allocation in cipher.KeyUnwrap() when processing ciphertext under 16 bytes, causing immediate application termination. No public exploit identified at time of analysis, though EPSS score of 0.0004

Earlier versions of this analysis (1)
v1 Apr 03, 2026 - 03:30 CVSS 7.5

Denial of service via panic in go-jose library (versions prior to v4.1.4 and v3.0.5) occurs when decrypting malformed JSON Web Encryption (JWE) objects that specify a key wrapping algorithm (e.g., RSA-OAEP-KW, ECDH-ES+A128KW) but contain an empty encrypted_key field. The panic is triggered during slice allocation in cipher.KeyUnwrap() when processing ciphertext under 16 bytes, causing immediate application termination. No public exploit identified at time of analysis, though EPSS score of 0.00045 (0.045%) indicates low predicted exploitation probability. Applications limiting accepted key algorithms to non-KW types or using GCM-based key wrapping (A128GCMKW, A192GCMKW, A256GCMKW) are unaffected.

RemediationAI

Vendor-released patch: upgrade to go-jose v4.1.4 or later for v4.x deployments, or v3.0.5 or later for v3.x deployments. Update Go module dependencies using 'go get -u github.com/go-jose/go-jose/v4@v4.1.4' or 'go get -u github.com/go-jose/go-jose/v3@v3.0.5' as appropriate, then rebuild applications. For immediate mitigation without upgrading, restrict the keyAlgorithms parameter in ParseEncrypted(), ParseEncryptedJSON(), or ParseEncryptedCompact() calls to exclude key wrapping algorithms (those ending in KW), which causes parsing to fail before reaching the vulnerable code path. Alternatively, implement input validation to reject JWE objects where the encrypted_key field (second field in Compact Serialization, between first and second periods) is empty before passing to parsing functions. Organizations unable to patch immediately should review application configurations to determine if key wrapping algorithms are actually required for their use case. Full technical details and remediation guidance available at https://github.com/go-jose/go-jose/security/advisories/GHSA-78h2-9frx-2jm8.

Affected VersionsENISA

go-jose 4.0.0, < 4.1.4
go-jose < 3.0.5

Affected Packages

go github.com/go-jose/go-jose no fix
go github.com/go-jose/go-jose/v3 fix: 3.0.5
go github.com/go-jose/go-jose/v4 fix: 4.1.4
euvd go_jose fix: 3.0.5, 4.1.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The go-jose library provides JSON Object Signing and Encryption (JOSE) functionality for Go applications, implementing RFC 7516 for JWE. The vulnerability exists in the key unwrapping logic (key_wrap.go) used for encrypted key transport in JWE objects. Key wrapping algorithms (identified by the KW suffix in the alg header parameter) encrypt the Content Encryption Key (CEK) before including it in the encrypted_key field. The affected code path performs arithmetic on the encrypted_key length to determine slice allocation size without validating minimum length requirements. When encrypted_key is empty (zero bytes), the calculation yields zero or negative values, causing Go's runtime panic. This affects multiple go-jose package versions across v3 and v4 branches (pkg:go/github.com/go-jose/go-jose/v4, pkg:go/github.com/go-jose/go-jose/v3). The vulnerability is classified as CWE-248 (Uncaught Exception), representing a failure to handle exceptional conditions that should not terminate the process.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/go-jose/go-jose) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
SUSE HIGH
Red Hat 7.5 HIGH

Primary rating from Vendor (https://github.com/go-jose/go-jose).

CVSS VectorVendor: https://github.com/go-jose/go-jose

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch released
Apr 03, 2026 - 08:30 nvd
Patch available
CVE Published
Apr 03, 2026 - 03:28 nvd
HIGH 7.5

DescriptionCVE.org

Impact

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 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.

Executive ViewAI

Why It Matters

go-jose library versions prior to v4.1.4 and v3.0.5 are vulnerable to denial of service attacks through malformed JWE objects, causing application crashes when processing specially crafted encryption requests. Organizations using affected versions risk service unavailability and operational disruption, particularly those handling JWT/JWE authentication or API encryption workflows.

Business Impact: Medium
Compensating Controls

Pending vendor patch availability. Interim mitigations: restrict accepted JWE key wrapping algorithms to non-KW types (exclude RSA-OAEP-KW, ECDH-ES+A128KW, etc.) or enforce exclusive use of GCM-based key wrapping algorithms (A128GCMKW, A192GCMKW, A256GCMKW) if application architecture permits. Implement request validation to reject JWE objects with empty encrypted_key fields before processing. Deploy rate limiting and request throttling on JWE decryption endpoints to reduce DoS impact.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Medium
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: High
Product Status
openSUSE Tumbleweed Fixed

References

Advisories & patches
ADVISORY https://access.redhat.com/errata/RHSA-2026:8490 ADVISORY https://access.redhat.com/errata/RHSA-2026:8491 ADVISORY https://access.redhat.com/errata/RHSA-2026:8493 ADVISORY https://github.com/go-jose/go-jose/security/advisories/GHSA-78h2-9frx-2jm8 ADVISORY https://vuldb.com/vuln/355565 REF https://access.redhat.com/errata/RHSA-2026:10125 REF https://access.redhat.com/errata/RHSA-2026:10130 REF https://access.redhat.com/errata/RHSA-2026:10135 REF https://access.redhat.com/errata/RHSA-2026:10175 REF https://access.redhat.com/errata/RHSA-2026:11070 REF https://access.redhat.com/errata/RHSA-2026:11217 REF https://access.redhat.com/errata/RHSA-2026:11512 REF https://access.redhat.com/errata/RHSA-2026:11688 REF https://access.redhat.com/errata/RHSA-2026:11856 REF https://access.redhat.com/errata/RHSA-2026:11916 REF https://access.redhat.com/errata/RHSA-2026:11996 REF https://access.redhat.com/errata/RHSA-2026:12116 REF https://access.redhat.com/errata/RHSA-2026:12277 REF https://access.redhat.com/errata/RHSA-2026:12279 REF https://access.redhat.com/errata/RHSA-2026:13791 REF https://access.redhat.com/errata/RHSA-2026:13829 REF https://access.redhat.com/errata/RHSA-2026:16696 REF https://access.redhat.com/errata/RHSA-2026:17040 REF https://access.redhat.com/errata/RHSA-2026:17121 REF https://access.redhat.com/errata/RHSA-2026:17123 REF https://access.redhat.com/errata/RHSA-2026:17287 REF https://access.redhat.com/errata/RHSA-2026:17448 REF https://access.redhat.com/errata/RHSA-2026:17458 REF https://access.redhat.com/errata/RHSA-2026:17459 REF https://access.redhat.com/errata/RHSA-2026:17468 REF https://access.redhat.com/errata/RHSA-2026:17474 REF https://access.redhat.com/errata/RHSA-2026:17547 REF https://access.redhat.com/errata/RHSA-2026:17550 REF https://access.redhat.com/errata/RHSA-2026:17598 REF https://access.redhat.com/errata/RHSA-2026:17789 REF https://access.redhat.com/errata/RHSA-2026:18584 REF https://access.redhat.com/errata/RHSA-2026:18585 REF https://access.redhat.com/errata/RHSA-2026:19017 REF https://access.redhat.com/errata/RHSA-2026:19099 REF https://access.redhat.com/errata/RHSA-2026:19108 REF https://access.redhat.com/errata/RHSA-2026:19135 REF https://access.redhat.com/errata/RHSA-2026:19173 REF https://access.redhat.com/errata/RHSA-2026:19186 REF https://access.redhat.com/errata/RHSA-2026:19353 REF https://access.redhat.com/errata/RHSA-2026:19375 REF https://access.redhat.com/errata/RHSA-2026:19712 REF https://access.redhat.com/errata/RHSA-2026:19719 REF https://access.redhat.com/errata/RHSA-2026:19720 REF https://access.redhat.com/errata/RHSA-2026:19721 REF https://access.redhat.com/errata/RHSA-2026:20034 REF https://access.redhat.com/errata/RHSA-2026:20041 REF https://access.redhat.com/errata/RHSA-2026:20569 REF https://access.redhat.com/errata/RHSA-2026:20607 REF https://access.redhat.com/errata/RHSA-2026:20609 REF https://access.redhat.com/errata/RHSA-2026:20946 REF https://access.redhat.com/errata/RHSA-2026:21017 REF https://access.redhat.com/errata/RHSA-2026:21703 REF https://access.redhat.com/errata/RHSA-2026:21709 REF https://access.redhat.com/errata/RHSA-2026:21769 REF https://access.redhat.com/errata/RHSA-2026:21931 REF https://access.redhat.com/errata/RHSA-2026:21932 REF https://access.redhat.com/errata/RHSA-2026:22258 REF https://access.redhat.com/errata/RHSA-2026:22260 REF https://access.redhat.com/errata/RHSA-2026:22347 REF https://access.redhat.com/errata/RHSA-2026:22423 REF https://access.redhat.com/errata/RHSA-2026:22450 REF https://access.redhat.com/errata/RHSA-2026:22465 REF https://access.redhat.com/errata/RHSA-2026:22629 REF https://access.redhat.com/errata/RHSA-2026:22714 REF https://access.redhat.com/errata/RHSA-2026:22840 REF https://access.redhat.com/errata/RHSA-2026:22937 REF https://access.redhat.com/errata/RHSA-2026:23228 REF https://access.redhat.com/errata/RHSA-2026:23241 REF https://access.redhat.com/errata/RHSA-2026:23345 REF https://access.redhat.com/errata/RHSA-2026:23361 REF https://access.redhat.com/errata/RHSA-2026:24471 REF https://access.redhat.com/errata/RHSA-2026:24475 REF https://access.redhat.com/errata/RHSA-2026:24477 REF https://access.redhat.com/errata/RHSA-2026:24479 REF https://access.redhat.com/errata/RHSA-2026:24482 REF https://access.redhat.com/errata/RHSA-2026:24484 REF https://access.redhat.com/errata/RHSA-2026:24853 REF https://access.redhat.com/errata/RHSA-2026:24977 REF https://access.redhat.com/errata/RHSA-2026:25127 REF https://access.redhat.com/errata/RHSA-2026:25187 REF https://access.redhat.com/errata/RHSA-2026:25194 REF https://access.redhat.com/errata/RHSA-2026:25206 REF https://access.redhat.com/errata/RHSA-2026:25248 REF https://access.redhat.com/errata/RHSA-2026:25250 REF https://access.redhat.com/errata/RHSA-2026:25252 REF https://access.redhat.com/errata/RHSA-2026:26054 REF https://access.redhat.com/errata/RHSA-2026:26568 REF https://access.redhat.com/errata/RHSA-2026:26585 REF https://access.redhat.com/errata/RHSA-2026:26636 REF https://access.redhat.com/errata/RHSA-2026:27001 REF https://access.redhat.com/errata/RHSA-2026:27004 REF https://access.redhat.com/errata/RHSA-2026:27044 REF https://access.redhat.com/errata/RHSA-2026:27063 REF https://access.redhat.com/errata/RHSA-2026:27856 REF https://access.redhat.com/errata/RHSA-2026:28198 REF https://access.redhat.com/errata/RHSA-2026:29854 REF https://access.redhat.com/errata/RHSA-2026:30650 REF https://access.redhat.com/errata/RHSA-2026:32991 REF https://access.redhat.com/errata/RHSA-2026:33722 REF https://access.redhat.com/errata/RHSA-2026:34099 REF https://access.redhat.com/errata/RHSA-2026:34192 REF https://access.redhat.com/errata/RHSA-2026:34196 REF https://access.redhat.com/errata/RHSA-2026:34197 REF https://access.redhat.com/errata/RHSA-2026:34364 REF https://access.redhat.com/errata/RHSA-2026:34794 REF https://access.redhat.com/errata/RHSA-2026:35833 REF https://access.redhat.com/errata/RHSA-2026:36820 REF https://access.redhat.com/errata/RHSA-2026:37387 REF https://access.redhat.com/errata/RHSA-2026:40984 REF https://access.redhat.com/errata/RHSA-2026:41928 REF https://access.redhat.com/errata/RHSA-2026:41941 REF https://access.redhat.com/errata/RHSA-2026:41944 REF https://access.redhat.com/errata/RHSA-2026:44267 REF https://access.redhat.com/errata/RHSA-2026:46885 REF https://access.redhat.com/errata/RHSA-2026:47952 REF https://access.redhat.com/errata/RHSA-2026:48085 REF https://access.redhat.com/errata/RHSA-2026:48676 REF https://access.redhat.com/errata/RHSA-2026:48790 REF https://access.redhat.com/errata/RHSA-2026:49944 REF https://access.redhat.com/errata/RHSA-2026:51033 REF https://access.redhat.com/errata/RHSA-2026:54602 REF https://access.redhat.com/errata/RHSA-2026:56366 REF https://access.redhat.com/errata/RHSA-2026:56431 REF https://access.redhat.com/errata/RHSA-2026:56968 REF https://access.redhat.com/errata/RHSA-2026:57013 REF https://access.redhat.com/errata/RHSA-2026:57408 REF https://access.redhat.com/errata/RHSA-2026:57487 REF https://access.redhat.com/errata/RHSA-2026:57590 REF https://access.redhat.com/errata/RHSA-2026:60023 REF https://access.redhat.com/errata/RHSA-2026:60444 REF https://access.redhat.com/errata/RHSA-2026:60449 REF https://access.redhat.com/errata/RHSA-2026:60452 REF https://access.redhat.com/errata/RHSA-2026:62260 REF https://access.redhat.com/errata/RHSA-2026:62548 REF https://access.redhat.com/errata/RHSA-2026:62550 REF https://access.redhat.com/errata/RHSA-2026:65838 REF https://access.redhat.com/errata/RHSA-2026:65906 REF https://access.redhat.com/errata/RHSA-2026:66385 REF https://access.redhat.com/errata/RHSA-2026:9385 REF https://access.redhat.com/errata/RHSA-2026:9388 REF https://access.redhat.com/errata/RHSA-2026:9448 REF https://access.redhat.com/errata/RHSA-2026:9453 REF https://access.redhat.com/security/cve/CVE-2026-34986 REF https://bugzilla.redhat.com/show_bug.cgi?id=2455470 REF https://github.com/advisories/GHSA-78h2-9frx-2jm8 REF https://pkg.go.dev/github.com/go-jose/go-jose/v4#pkg-constants REF https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34986.json

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy