Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. web-token/jwt-library
  4. ›
  5. GHSA-5739-39v2-5754

GHSA-5739-39v2-5754: PHP JWT Library: RSA1_5 (RSAES-PKCS1-v1_5) decryption lacks implicit rejection, exposing a Bleichenbacher/Marvin padding oracle

June 18, 2026 (updated August 31, 2026)

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).

From 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.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/web-token/jwt-library/GHSA-5739-39v2-5754.yaml
  • github.com/advisories/GHSA-5739-39v2-5754
  • github.com/web-token/jwt-framework/security/advisories/GHSA-5739-39v2-5754

Code Behaviors & Features

Detect and mitigate GHSA-5739-39v2-5754 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.4.10, all versions starting from 4.0.0 before 4.0.7, all versions starting from 4.1.0 before 4.1.7

Fixed versions

  • 3.4.10
  • 4.0.7
  • 4.1.7

Solution

Upgrade to versions 3.4.10, 4.0.7, 4.1.7 or above.

Impact 3.7 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-208: Observable Timing Discrepancy
  • CWE-385: Covert Timing Channel

Source file

packagist/web-token/jwt-library/GHSA-5739-39v2-5754.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:50 +0000.