Skip to main content

Jwt Encryption Algorithm Ecdh Es

1 CVEs product

Monthly

CVE-2026-134458 Nov 21, 16:32 HIGH PATCH This Week

JWE tokens produced with ECDH-ES (or the non-registered ECDH-SS) direct key agreement and A256CBC-HS512 in web-token/jwt-framework and web-token/jwt-library are effectively encrypted under an all-zero AES-256 key, so anyone who holds such a token can read its plaintext without the recipient's private key. The root cause is ConcatKDF::generate(), which performs a single SHA-256 round and can never return more than 32 bytes, leaving ENC_KEY empty for the 64-byte CEK that A256CBC-HS512 expects (PHP's OpenSSL extension zero-pads the short key); with A192CBC-HS384 the content key drops to 64-bit strength because only 8 of the 48 required bytes remain secret. The flaw is configuration-bounded: A128CBC-HS256, the AES-GCM modes, and all ECDH-ES+A*KW key-wrapping variants request 256 bits or less and are unaffected, so only deployments that selected one of the two oversized CBC-HMAC content algorithms with direct agreement are exposed; no public exploit was identified at time of analysis, and fixed releases are available at 3.4.12, 4.0.8, 4.1.10 and 4.2.4.

PHP Information Disclosure Jwt Library Jwt Framework Jwt Encryption Algorithm Ecdh Es
NVD GitHub
CVSS 4.0
8.2
EPSS
0.2%
EPSS 0% CVSS 8.2
HIGH PATCH This Week

JWE tokens produced with ECDH-ES (or the non-registered ECDH-SS) direct key agreement and A256CBC-HS512 in web-token/jwt-framework and web-token/jwt-library are effectively encrypted under an all-zero AES-256 key, so anyone who holds such a token can read its plaintext without the recipient's private key. The root cause is ConcatKDF::generate(), which performs a single SHA-256 round and can never return more than 32 bytes, leaving ENC_KEY empty for the 64-byte CEK that A256CBC-HS512 expects (PHP's OpenSSL extension zero-pads the short key); with A192CBC-HS384 the content key drops to 64-bit strength because only 8 of the 48 required bytes remain secret. The flaw is configuration-bounded: A128CBC-HS256, the AES-GCM modes, and all ECDH-ES+A*KW key-wrapping variants request 256 bits or less and are unaffected, so only deployments that selected one of the two oversized CBC-HMAC content algorithms with direct agreement are exposed; no public exploit was identified at time of analysis, and fixed releases are available at 3.4.12, 4.0.8, 4.1.10 and 4.2.4.

PHP Information Disclosure Jwt Library +2
NVD GitHub

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