Advisories

web-token jwt-framework before 3.4.13 Missing Key Length Check in AES Key Wrapping

Go back
Severity
medium
Date
Affecting
  • jwt-library < 3.4.13

  • jwt-library >= 4.0.0, < 4.0.9

  • jwt-library >= 4.1.0, < 4.1.11

  • jwt-library >= 4.2.0, < 4.2.6

  • jwt-framework < 3.4.13

  • jwt-framework >= 4.0.0, < 4.0.9

  • jwt-framework >= 4.1.0, < 4.1.11

  • jwt-framework >= 4.2.0, < 4.2.6

  • jwt-experimental < 3.4.13

  • jwt-experimental >= 4.0.0, < 4.0.9

  • jwt-experimental >= 4.1.0, < 4.1.11

  • jwt-experimental >= 4.2.0, < 4.2.6

  • jwt-encryption < 1.2.0

  • jwt-encryption-algorithm-aeskw <= 3.2.10

  • jwt-encryption-algorithm-aesgcmkw <= 3.2.10

  • jwt-encryption-algorithm-experimental <= 3.2.10

CWE
  • CWE-326 Inadequate Encryption Strength
CVSS
6.3
CVSS V4 Vector
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
Description
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.

Ready to get Started?

Explore VulnCheck, a next-generation Cyber Threat Intelligence platform, which provides exploit and vulnerability intelligence to help you prioritize and remediate vulnerabilities that matter.
  • Vulnerability Prioritization
    Prioritize vulnerabilities that matter based on the threat landscape and defer vulnerabilities that don't.
  • Early Warning System
    Real-time alerting of changes in the vulnerability landscape so that you can take action before the attacks start.