CVE-2021-41106

Published on: 09/28/2021 12:00:00 AM UTC

Last Modified on: 10/07/2021 04:22:00 PM UTC

CVE-2021-41106 - advisory for GHSA-7322-jrq4-x5hf

Source: Mitre Source: Nist Print: PDF PDF
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Certain versions of Jwt from Jwt Project contain the following vulnerability:

JWT is a library to work with JSON Web Token and JSON Web Signature. Prior to versions 3.4.6, 4.0.4, and 4.1.5, users of HMAC-based algorithms (HS256, HS384, and HS512) combined with `Lcobucci\JWT\Signer\Key\LocalFileReference` as key are having their tokens issued/validated using the file path as hashing key - instead of the contents. The HMAC hashing functions take any string as input and, since users can issue and validate tokens, users are lead to believe that everything works properly. Versions 3.4.6, 4.0.4, and 4.1.5 have been patched to always load the file contents, deprecated the `Lcobucci\JWT\Signer\Key\LocalFileReference`, and suggest `Lcobucci\JWT\Signer\Key\InMemory` as the alternative. As a workaround, use `Lcobucci\JWT\Signer\Key\InMemory` instead of `Lcobucci\JWT\Signer\Key\LocalFileReference` to create the instances of one's keys.

  • CVE-2021-41106 has been assigned by URL Logo [email protected] to track the vulnerability - currently rated as LOW severity.
  • Affected Vendor/Software: URL Logo lcobucci - jwt version >= 3.4.0, < 3.4.6
  • Affected Vendor/Software: URL Logo lcobucci - jwt version >= 4.0.0, < 4.0.4
  • Affected Vendor/Software: URL Logo lcobucci - jwt version >= 4.1.0, < 4.1.5

CVSS3 Score: 3.3 - LOW

Attack
Vector
Attack
Complexity
Privileges
Required
User
Interaction
LOCAL LOW LOW NONE
Scope Confidentiality
Impact
Integrity
Impact
Availability
Impact
UNCHANGED NONE LOW NONE

CVSS2 Score: 2.1 - LOW

Access
Vector
Access
Complexity
Authentication
LOCAL LOW NONE
Confidentiality
Impact
Integrity
Impact
Availability
Impact
NONE PARTIAL NONE

CVE References

Description Tags Link
Ensure key contents is used for all hashing algorithms · lcobucci/[email protected] · GitHub github.com
text/html
URL Logo MISC github.com/lcobucci/jwt/commit/8175de5b841fbe3fd97d2d49b3fc15c4ecb39a73
Ensure key contents is used for all hashing algorithms · lcobucci/[email protected] · GitHub github.com
text/html
URL Logo MISC github.com/lcobucci/jwt/commit/c45bb8b961a8e742d8f6b88ef5ff1bd5cca5d01c
File reference keys leads to incorrect hashes on HMAC algorithms · Advisory · lcobucci/jwt · GitHub github.com
text/html
URL Logo CONFIRM github.com/lcobucci/jwt/security/advisories/GHSA-7322-jrq4-x5hf

Known Affected Configurations (CPE V2.3)

Type Vendor Product Version Update Edition Language
ApplicationJwt ProjectJwtAllAllAllAll
  • cpe:2.3:a:jwt_project:jwt:*:*:*:*:*:*:*:*:

Social Mentions

Source Title Posted (UTC)
Twitter Icon @CVEreport CVE-2021-41106 : JWT is a library to work with JSON Web Token and JSON Web Signature. Prior to versions 3.4.6, 4.0.… twitter.com/i/web/status/1… 2021-09-28 20:54:51
Twitter Icon @Robo_Alerts Potentially Critical CVE Detected! CVE-2021-41106 Description: CVE-2021-41106 JWT is a library to work with JSON We… twitter.com/i/web/status/1… 2021-09-28 22:00:06
© CVE.report 2021 Twitter Nitter Twitter Viewer |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report