{"id":"CVE-2026-134459","aliases":["CVE-2026-134459","GHSA-5739-39v2-5754"],"related":[],"kind":"vulnerability","state":"published","title":"web-token jwt-framework before 3.4.10 RSA1_5 Bleichenbacher Padding Oracle","summary":"web-token jwt-framework and jwt-library before 3.4.10, 4.0.x before 4.0.7, and 4.1.x before 4.1.7 contain a padding oracle in RSACrypt::decryptWithRSA15() because RSA1_5 decryption lacks implicit rejection, so invalid padding, wrong CEK length, and valid padding take measurably different time. Remote attackers can submit adaptively crafted JWE encrypted_key values and measure these timing differences to recover the wrapped content encryption key.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"web-token jwt-framework and jwt-library before 3.4.10, 4.0.x before 4.0.7, and 4.1.x before 4.1.7 contain a padding oracle in RSACrypt::decryptWithRSA15() because RSA1_5 decryption lacks implicit rejection, so invalid padding, wrong CEK length, and valid padding take measurably different time. Remote attackers can submit adaptively crafted JWE encrypted_key values and measure these timing differences to recover the wrapped content encryption key.","source":"cvelist"},{"lang":"en","text":"### Impact\n\n`RSACrypt::decryptWithRSA15()` (used by the `RSA1_5` key-encryption algorithm) implements RSAES-PKCS1-v1_5 decryption by inspecting the padding after RSADP and throwing `InvalidArgumentException` as soon as the padding is malformed. It does **not** implement the implicit-rejection countermeasure required by RFC 3447 §7.2.2 / RFC 8017 §7.1.2 (return a deterministic pseudo-random value of the expected length on padding failure and let the downstream step fail uniformly).\n\nFrom a JWE caller this yields a Bleichenbacher/Marvin padding oracle: an attacker submitting adaptively crafted `encrypted_key` values can distinguish (a) padding rejected, (b) padding valid but wrong CEK length, and (c) padding valid and full AEAD executed — even though `JWEDecrypter` returns the same `false` in all cases — because each path performs a measurably different amount of work, amplifiable by enlarging the ciphertext (CWE-208 timing side channel). Enough adaptive queries can recover the wrapped CEK.\n\n### Affected configurations\n\nApplications that register `RSA1_5` in their decryption `AlgorithmManager` and hold an RSA private key.\n\n### Patches\n\nPKCS#1 v1.5 decryption now performs implicit rejection: on invalid padding (or unexpected recovered length) it returns a random CEK of the expected size selected in constant time, so the full content-decryption (AEAD) step always runs and fails uniformly, removing the observable difference between padding-valid and padding-invalid ciphertexts. Users are still strongly encouraged to migrate to `RSA-OAEP`.\n\n### Workarounds\n\nPrefer `RSA-OAEP`/`RSA-OAEP-256`; do not enable `RSA1_5` for untrusted tokens.\n\n### References\n\n- RFC 3447 §7.2.2 / RFC 8017 §7.1.2\n- Bleichenbacher (1998); Marvin attack\n- CWE-208: Observable Timing Discrepancy\n\n## Résolution\n\nUn correctif a été préparé sur une branche dédiée basée sur `3.4.x`, avec des tests anti-régression dédiés (fork privé temporaire de cette advisory, PR #1).\n\n**RSA1_5** — déchiffrement PKCS#1 v1.5 avec *implicit rejection* en temps constant (RFC 3447 §7.2.2) : un padding invalide n'est plus distinguable d'un padding valide, neutralisant l'oracle Bleichenbacher.\n\n**Validation :** `php -l` OK, PHPUnit vert, aucune nouvelle erreur PHPStan introduite (différentiel nul vs `3.4.x`), aucun commentaire ajouté dans le code source. Après merge, cascade prévue `3.4.x → 4.0.x → 4.1.x`.","format":"markdown","source":"ghsa"}],"published":"2026-06-18T21:09:56.000Z","modified":"2026-11-23T17:17:44.157Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","score":8.2,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-208","CWE-385"],"affected":[{"ranges":[{"type":"semver","introduced":"3.3.0","fixed":"3.4.10","status":"affected"},{"type":"semver","version":"3.4.10","status":"unaffected"}],"vendor":"web-token","product":"jwt-library","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.0.0","fixed":"4.0.7","status":"affected"},{"type":"semver","version":"4.0.7","status":"unaffected"}],"vendor":"web-token","product":"jwt-library","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.1.0","fixed":"4.1.7","status":"affected"},{"type":"semver","version":"4.1.7","status":"unaffected"}],"vendor":"web-token","product":"jwt-library","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"3.4.10","status":"affected"},{"type":"semver","version":"3.4.10","status":"unaffected"}],"vendor":"web-token","product":"jwt-framework","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.0.0","fixed":"4.0.7","status":"affected"},{"type":"semver","version":"4.0.7","status":"unaffected"}],"vendor":"web-token","product":"jwt-framework","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.1.0","fixed":"4.1.7","status":"affected"},{"type":"semver","version":"4.1.7","status":"unaffected"}],"vendor":"web-token","product":"jwt-framework","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.4.10"}],"ecosystem":"Packagist","package":"web-token/jwt-library","purl":"pkg:composer/web-token/jwt-library","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.0.7"}],"ecosystem":"Packagist","package":"web-token/jwt-library","purl":"pkg:composer/web-token/jwt-library","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.1.0","status":"affected","fixed":"4.1.7"}],"ecosystem":"Packagist","package":"web-token/jwt-library","purl":"pkg:composer/web-token/jwt-library","source":"ghsa"}],"references":[{"url":"https://github.com/web-token/jwt-framework/security/advisories/GHSA-5739-39v2-5754","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/web-token-jwt-framework-before-3.4.10-rsa1-5-bleichenbacher-padding-oracle","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/web-token/jwt-library/GHSA-5739-39v2-5754.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/web-token/jwt-framework","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-23T16:19:19.670Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-134459","url":"https://www.cve.org/CVERecord?id=CVE-2026-134459","licence":"CVE Terms of Use","modified":"2026-11-23T16:19:28.360Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5739-39v2-5754","url":"https://github.com/advisories/GHSA-5739-39v2-5754","licence":"CC-BY-4.0","modified":"2026-11-21T18:11:17.421Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-134459","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-134459","licence":"Public domain","modified":"2026-11-23T17:17:44.157Z"}],"updatedAt":"2026-11-25T22:59:52.567Z","epss":{"score":0.00439,"percentile":0.39885,"date":"2026-12-01T12:00:22.000Z"}}