Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify JWE app configured with empty/short oct key
-
DeliveryReconstruct all-zero key-encryption key via zero-padding
-
ExploitUnwrap content encryption keys
-
ExecutionDecrypt issued tokens and forge accepted tokens
-
ImpactImpersonate users / read confidential claims
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Encryption strength requirements
|
| Exploitation Conditions | Two concrete conditions must both hold: (1) the application uses one of the A128KW/A192KW/A256KW/A128GCMKW/A192GCMKW/A256GCMKW key-wrapping algorithms - or the experimental A128CTR/A192CTR/A256CTR/chacha20-poly1305 key encryption - to wrap JWE content encryption keys; and (2) it supplies an oct key shorter than the algorithm's key size (128/192/256 bits, 256 for chacha20-poly1305), the worst case being an empty key k="" as returned by JWKFactory::createFromSecret() on an empty string or empty environment variable, which OpenSSL zero-pads to the all-zero key. Limiting factors: the attacker cannot create this condition - it is a property of the application's own key configuration; keys generated at the exact size (e.g. JWKFactory::createOctKey(128), the key:generate:oct command) are not affected; and when no 'alg' is set on the key, the token's 'alg' selects the key size among the registered algorithms. A non-empty but short key only partially weakens security (strength of its own bytes); the full read-and-forge break occurs specifically with an empty key. |
| Impact | This is a real but conditional cryptographic weakness (CWE-326/CWE-1284), not a broadly wormable flaw. The signals are mixed and should be read together. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) scores 6.3 (Medium): network-reachable and needing no privileges or user interaction, but AT:P explicitly marks a required precondition - namely that the application was configured with an empty or too-short oct key. The GHSA advisory is unusually clear that 'an attacker cannot cause this: the key comes from the application,' so exploitability is gated entirely by a deployment/configuration mistake rather than anything the attacker controls. No EPSS score and no KEV listing were provided, and no public exploit was identified; the only references are the vendor GHSA and VulnCheck advisories, so there is no public exploit identified at time of analysis. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a patch-this-cycle priority rather than an active-exploitation fire drill. Note a reconcilable tension: the vendor rated impact VC:L/VI:L, yet the described worst case (an empty key reduces to the all-zero key, letting anyone both read issued tokens and forge accepted ones) is effectively a full confidentiality-and-authentication break for affected applications - so where the empty-key condition truly holds, real impact is higher than L/L suggests. Net: elevated priority for any shop that builds oct keys from secrets or environment variables, low practical risk for deployments using correctly-sized random keys. |
| Exploit ScenarioDerived | An application configures JWE key wrapping with A128KW (or A192KW/A256KW/A128GCMKW/A192GCMKW/A256GCMKW, or the experimental AESCTR/chacha20-poly1305) using an oct key built from an empty string or an unset environment variable, so OpenSSL zero-pads it to an all-zero key. A remote attacker who knows (or guesses) the application uses such an empty key can unwrap the content encryption keys under the all-zero key to decrypt the tokens it issues and to forge tokens it will accept. No public exploit code is identified; only vendor (GHSA) and VulnCheck advisory references exist. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
The web-token/jwt-framework PHP library fails to validate the length of oct keys used with A128KW/A192KW/A256KW, A128GCMKW/A192GCMKW/A256GCMKW and the experimental A128CTR/A192CTR/A256CTR and chacha20-poly1305 key-encryption algorithms, so PHP's OpenSSL extension silently zero-pads short keys (CWE-326/CWE-1284). This is a conditional cryptographic weakness rather than a broadly exploitable flaw: the attacker cannot create the condition, which depends entirely on the application's own key configuration. The worst case is an empty key ({"kty":"oct","k":""}, as produced by JWKFactory::createFromSecret() on an empty string or an unset environment variable), where every content encryption key is wrapped under the all-zero key, letting anyone read issued tokens and forge tokens the application accepts; keys generated at the exact required size (JWKFactory::createOctKey(128), key:generate:oct) are unaffected, and a merely short non-empty key only retains the strength of its own bytes. No public exploit code or CISA KEV entry is associated with this issue at time of analysis; vendor patches are available in 3.4.13, 4.0.9, 4.1.11 and 4.2.6.
RemediationAI
Vendor-released patch: upgrade to 3.4.13, 4.0.9, 4.1.11 or 4.2.6 as appropriate for your branch (jwt-encryption 1.2.0 for the split package), per GHSA-4mxj-75j2-j8hc; note that 3.4.13 is the final 3.4 release, so later fixes land only in 4.x. The vendor's stated workaround is to use keys of exactly the algorithm key size generated at random (JWKFactory::createOctKey(128) for A128KW/A128GCMKW, 192 or 256 bits for the others) and to set their 'alg' member, never building an oct key from a text secret or from an environment variable that may be empty. After patching, keys shorter than the required size stop working: re-read any tokens issued with such a key using the key zero-padded to the algorithm size (the value OpenSSL actually used) and then replace the key. Keys of the exact size are unaffected, and longer keys keep working through their first 16, 24 or 32 bytes in the patch releases (deprecated in 4.3.0, refused in 5.0.0). If an application ever ran with an empty key, the vendor advises treating the content of its issued tokens as disclosed and the tokens it accepted as forgeable, and rotating the key immediately.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 7 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw lives in the JWE key-management layer of the web-token JWT framework, a PHP (Composer) implementation of RFC 7516/7518 JSON Web Encryption. A128KW/A192KW/A256KW implement AES Key Wrap (RFC 3394) and A128GCMKW/A192GCMKW/A256GCMKW implement AES GCM key wrapping (RFC 7518 §4.7); AESKW::getKey() and AESGCMKW::getKey() return the base64url-decoded 'k' member of the oct JWK verbatim, and PHP's OpenSSL bindings accept any key size by zero-padding it up to 16, 24 or 32 bytes without warning. The same behaviour affects the experimental AESCTR and chacha20-poly1305 key-encryption algorithms. AESKW lost its length check in commit ad03372e (2017-10-28) when the check from spomky-labs/aes-key-wrap was dropped, and AESGCMKW never had one, so every release is affected. KeyChecker does not inspect length and OctAnalyzer only flags keys under 128 bits, so nothing reports the misconfiguration. A longer key is silently truncated to its first 16/24/32 bytes: harmless for random keys but potentially catastrophic for a text secret beginning with a known label. The fix compares the key length with the algorithm's required size and throws 'Invalid key length.' on wrap, while JWEDecrypter/JWELoader move on to the next key in the set. This is a key-strength/improper-input-validation class issue (CWE-326, CWE-1284), closely related to GHSA-jc6j-46g2-xwqc covering the same OpenSSL behaviour in direct encryption.
Know when OpenSSL gets its next vulnerability
- 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
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
AC:H because the all-zero-key break depends on the app using an empty/short oct key (not attacker-controllable); no privileges or UI needed; reading issued and forging accepted tokens gives high C and I.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
web-token jwt-framework before 3.4.13, 4.0.0 before 4.0.9, 4.1.0 before 4.1.11, and 4.2.0 before 4.2.6 does not check oct key length in the AESKW, AESGCMKW, and experimental AESCTR and chacha20-poly1305 key encryption algorithms, so OpenSSL zero-pads short or empty keys. When an application uses an empty key, anyone can unwrap content encryption keys under the all-zero key to read issued tokens and forge accepted ones.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe
In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Rated cri
The dtls1_reassemble_fragment function in d1_both.c in OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
The SSLv2 protocol, as used in OpenSSL before 1.0.1s and 1.0.2 before 1.0.2g and other products, requires a server to se
The ssl3_get_key_exchange function in s3_clnt.c in OpenSSL before 0.9.8zd, 1.0.0 before 1.0.0p, and 1.0.1 before 1.0.1k
In addition to the c_rehash shell command injection identified in CVE-2022-1292, further circumstances where the c_rehas
The TLS protocol 1.2 and earlier, when a DHE_EXPORT ciphersuite is enabled on a server but not on a client, does not pro
The SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which mak
The AES-NI implementation in OpenSSL before 1.0.1t and 1.0.2 before 1.0.2h does not consider memory allocation during a
The X509_verify_cert function in crypto/x509/x509_vfy.c in OpenSSL 1.0.1n, 1.0.1o, 1.0.2b, and 1.0.2c does not properly
A buffer overrun can be triggered in X.509 certificate verification, specifically in name constraint checking. Rated hig
EUVD-2026-136752
NVD
CVE.org
EPSS
GitHub
Exploit-DB