CVE-2021-41106

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-41106
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41106.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-41106
Aliases
Published
2021-09-28T21:15:07Z
Modified
2024-05-30T03:14:42.059848Z
Severity
  • 3.3 (Low) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/lcobucci/jwt

Affected ranges

Type
GIT
Repo
https://github.com/lcobucci/jwt
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

1.*

1.0.0
1.0.1
1.0.2
1.1.0

2.*

2.0.0
2.1.0
2.1.1

3.*

3.0.0
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
3.1.0
3.1.1
3.1.2
3.2.0
3.2.1
3.2.2
3.2.3
3.2.4
3.2.5
3.3.0
3.3.1
3.3.2
3.3.3
3.4.0
3.4.1
3.4.2
3.4.3
3.4.4
3.4.5

4.*

4.0.0
4.0.0-alpha1
4.0.0-alpha2
4.0.0-alpha3
4.0.0-beta1
4.0.1
4.0.2
4.0.3