Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious JWE object
-
DeliverySet alg to key wrapping algorithm
-
ExploitLeave encrypted_key field empty
-
ExecutionTrigger panic in key_wrap.go
-
ImpactCause 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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)
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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (https://github.com/go-jose/go-jose).
CVSS VectorVendor: https://github.com/go-jose/go-jose
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Same weakness CWE-248 – Uncaught Exception
View allSame technique Denial Of Service
View allVendor StatusVendor
SUSE
Severity: High| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-19363
GHSA-78h2-9frx-2jm8
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB