Jwt Encryption
Monthly
Unbounded RSA key parameters in web-token/jwt-framework and jwt-library allow a remote, unauthenticated attacker to consume seconds of server CPU per token processed by supplying a crafted RSA key. Affected releases are all versions before 3.4.13, 4.0.x before 4.0.9, 4.1.x before 4.1.11 and 4.2.x before 4.2.6; the practical vector is a DPoP proof whose public key arrives in the jwk header and is verified before authentication, and applications that only use keys they configure themselves are not exposed. There is no public exploit identified at time of analysis, but the availability-only impact is rated high (CVSS 4.0 8.2, VA:H; assessed CVSS 3.1 A:H) and the issue is prioritized for remediation this week.
Confidentiality loss in web-token/jwt-framework and the underlying jwt-library: JWE tokens produced with direct encryption ("alg":"dir") and an octet key shorter than the content-encryption key size are silently encrypted under an all-zero AES key, so anyone who obtains such a token can read its payload without any key material. The flaw affects every release since 0.5.0 (2017) and is fixed in 3.4.13, 4.0.9, 4.1.11 and 4.2.6; exploitation is unauthenticated (CVSS PR:N) but requires the operator to have configured an undersized dir key, an attacker cannot induce the condition, and the attacker must also obtain an issued token. No public exploit code or active exploitation is identified at time of analysis, but the vulnerable configuration is an easy mistake (for example JWKFactory::createOctKey(128) with A128CBC-HS256, or a 32-character secret used with A256CBC-HS512), which is why it is prioritized for patching this week.
Unauthenticated CPU and memory exhaustion in web-token/jwt-framework and web-token/jwt-library lets anyone who can submit a JWS or JWE token dictate what its rejection costs: every serializer passes the token, or its base64url-decoded protected headers, to json_decode() before any algorithm, header checker or key is consulted. All releases before 3.4.13, 4.0.9, 4.1.11 and 4.2.6 are affected, as are jwt-encryption and jwt-signature through 3.2.10, with exposure gated by how large a token the HTTP stack accepts (request bodies up to post_max_size are exposed by default, header-borne tokens mainly on Caddy/FrankenPHP). No public exploit identified at time of analysis, and the assessed impact is availability only (CVSS 3.1 AV:N/AC:L/PR:N/UI:N/A:H, CVSS 4.0 base 8.2).
CPU-exhaustion denial of service in web-token/jwt-framework and the related jwt-library, jwt-encryption and jwt-signature Composer packages allows an unauthenticated remote sender to burn worker CPU with a tiny token: before 3.4.13, 4.0.9, 4.1.11 and 4.2.6, JWELoader and JWSLoader try every recipient or signature of a JSON General serialized token without limiting how many there are. A roughly 300-byte JWE containing about 30 empty recipients that inherit an at-cap PBES2 p2c value from the shared protected header forces 30 key derivations of 1,000,000 iterations, measured at 8.7 seconds in the reporter's test and around 50 seconds on a slower machine, and every such token is ultimately rejected, so nothing is disclosed or accepted. Rated CVSS 4.0 8.2 (AV:N/AC:L/AT:P/PR:N/UI:N, VA:H only) with priority this_week; no KEV listing and no public exploit identified at time of analysis.
RSA-OAEP decryption in web-token/jwt-framework and jwt-library accepts a JWE Encrypted Key composed of several RSA blocks instead of the single RSAES-OAEP ciphertext the standard requires, which turns the library into a decryption oracle that unauthenticated remote attackers holding the recipient's public key and a captured JWE can use to recover that token's content encryption key byte by byte. Affected deployments must decrypt with RSA-OAEP, RSA-OAEP-256 (or the experimental RSA-OAEP-384/512) and also accept an AES-CBC-HMAC content-encryption algorithm of sufficient HMAC key length, and must expose a signal that distinguishes a decrypted token from a rejected one; applications that accept only AES-GCM are exposed only to encrypted-key malleability and amplified per-block CPU cost, not to key recovery. Recovery is query-intensive rather than trivial - about 65,536 crafted tokens per recovered byte and roughly a million for a 32-byte CEK - so this is a conditional cryptographic weakness carrying an information-disclosure impact, not a default-configuration remote compromise; no public exploit code or confirmed active exploitation was identified at time of analysis, and vendor fixes are available for every affected branch.
Token malleability in web-token/jwt-framework, jwt-library and jwt-encryption lets anyone holding a single valid JWE mint unlimited additional token strings that the library still decrypts, whenever the key-management algorithm is dir, ECDH-ES or ECDH-SS, because JWEDecrypter never enforced that the JWE Encrypted Key is the empty octet sequence and the authentication tag does not cover those bytes. Nothing is disclosed and the plaintext cannot be altered; the practical impact falls on applications that recognise a token by its serialized string or a hash of it, so replay caches, single-use registries and revocation deny-lists treat every variant as a fresh token. Affected releases are jwt-framework and jwt-library before 3.4.13, 4.0.0 to 4.0.8, 4.1.0 to 4.1.10 and 4.2.0 to 4.2.5, plus jwt-encryption through 3.2.10; vendor fixes ship in 3.4.13, 4.0.9, 4.1.11 and 4.2.6, and no public exploit code or active exploitation was identified at time of analysis (priority label: monitor).
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.
Unbounded RSA key parameters in web-token/jwt-framework and jwt-library allow a remote, unauthenticated attacker to consume seconds of server CPU per token processed by supplying a crafted RSA key. Affected releases are all versions before 3.4.13, 4.0.x before 4.0.9, 4.1.x before 4.1.11 and 4.2.x before 4.2.6; the practical vector is a DPoP proof whose public key arrives in the jwk header and is verified before authentication, and applications that only use keys they configure themselves are not exposed. There is no public exploit identified at time of analysis, but the availability-only impact is rated high (CVSS 4.0 8.2, VA:H; assessed CVSS 3.1 A:H) and the issue is prioritized for remediation this week.
Confidentiality loss in web-token/jwt-framework and the underlying jwt-library: JWE tokens produced with direct encryption ("alg":"dir") and an octet key shorter than the content-encryption key size are silently encrypted under an all-zero AES key, so anyone who obtains such a token can read its payload without any key material. The flaw affects every release since 0.5.0 (2017) and is fixed in 3.4.13, 4.0.9, 4.1.11 and 4.2.6; exploitation is unauthenticated (CVSS PR:N) but requires the operator to have configured an undersized dir key, an attacker cannot induce the condition, and the attacker must also obtain an issued token. No public exploit code or active exploitation is identified at time of analysis, but the vulnerable configuration is an easy mistake (for example JWKFactory::createOctKey(128) with A128CBC-HS256, or a 32-character secret used with A256CBC-HS512), which is why it is prioritized for patching this week.
Unauthenticated CPU and memory exhaustion in web-token/jwt-framework and web-token/jwt-library lets anyone who can submit a JWS or JWE token dictate what its rejection costs: every serializer passes the token, or its base64url-decoded protected headers, to json_decode() before any algorithm, header checker or key is consulted. All releases before 3.4.13, 4.0.9, 4.1.11 and 4.2.6 are affected, as are jwt-encryption and jwt-signature through 3.2.10, with exposure gated by how large a token the HTTP stack accepts (request bodies up to post_max_size are exposed by default, header-borne tokens mainly on Caddy/FrankenPHP). No public exploit identified at time of analysis, and the assessed impact is availability only (CVSS 3.1 AV:N/AC:L/PR:N/UI:N/A:H, CVSS 4.0 base 8.2).
CPU-exhaustion denial of service in web-token/jwt-framework and the related jwt-library, jwt-encryption and jwt-signature Composer packages allows an unauthenticated remote sender to burn worker CPU with a tiny token: before 3.4.13, 4.0.9, 4.1.11 and 4.2.6, JWELoader and JWSLoader try every recipient or signature of a JSON General serialized token without limiting how many there are. A roughly 300-byte JWE containing about 30 empty recipients that inherit an at-cap PBES2 p2c value from the shared protected header forces 30 key derivations of 1,000,000 iterations, measured at 8.7 seconds in the reporter's test and around 50 seconds on a slower machine, and every such token is ultimately rejected, so nothing is disclosed or accepted. Rated CVSS 4.0 8.2 (AV:N/AC:L/AT:P/PR:N/UI:N, VA:H only) with priority this_week; no KEV listing and no public exploit identified at time of analysis.
RSA-OAEP decryption in web-token/jwt-framework and jwt-library accepts a JWE Encrypted Key composed of several RSA blocks instead of the single RSAES-OAEP ciphertext the standard requires, which turns the library into a decryption oracle that unauthenticated remote attackers holding the recipient's public key and a captured JWE can use to recover that token's content encryption key byte by byte. Affected deployments must decrypt with RSA-OAEP, RSA-OAEP-256 (or the experimental RSA-OAEP-384/512) and also accept an AES-CBC-HMAC content-encryption algorithm of sufficient HMAC key length, and must expose a signal that distinguishes a decrypted token from a rejected one; applications that accept only AES-GCM are exposed only to encrypted-key malleability and amplified per-block CPU cost, not to key recovery. Recovery is query-intensive rather than trivial - about 65,536 crafted tokens per recovered byte and roughly a million for a 32-byte CEK - so this is a conditional cryptographic weakness carrying an information-disclosure impact, not a default-configuration remote compromise; no public exploit code or confirmed active exploitation was identified at time of analysis, and vendor fixes are available for every affected branch.
Token malleability in web-token/jwt-framework, jwt-library and jwt-encryption lets anyone holding a single valid JWE mint unlimited additional token strings that the library still decrypts, whenever the key-management algorithm is dir, ECDH-ES or ECDH-SS, because JWEDecrypter never enforced that the JWE Encrypted Key is the empty octet sequence and the authentication tag does not cover those bytes. Nothing is disclosed and the plaintext cannot be altered; the practical impact falls on applications that recognise a token by its serialized string or a hash of it, so replay caches, single-use registries and revocation deny-lists treat every variant as a fresh token. Affected releases are jwt-framework and jwt-library before 3.4.13, 4.0.0 to 4.0.8, 4.1.0 to 4.1.10 and 4.2.0 to 4.2.5, plus jwt-encryption through 3.2.10; vendor fixes ship in 3.4.13, 4.0.9, 4.1.11 and 4.2.6, and no public exploit code or active exploitation was identified at time of analysis (priority label: monitor).
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.