CVE-2021-46743 – firebase/php-jwt
Package
Manager: composer
Name: firebase/php-jwt
Vulnerable Version: >=0 <6.0.0
Severity
Level: Critical
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
EPSS: 0.01017 pctl0.7633
Details
Firebase PHP-JWT key/algorithm type confusion In Firebase PHP-JWT before 6.0.0, an algorithm-confusion issue (e.g., RS256 / HS256) exists via the kid (aka Key ID) header, when multiple types of keys are loaded in a key ring. This allows an attacker to forge tokens that validate under the incorrect key. NOTE: this provides a straightforward way to use the PHP-JWT library unsafely, but might not be considered a vulnerability in the library itself.
Metadata
Created: 2022-03-30T00:00:27Z
Modified: 2023-02-17T14:26:38Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-8xf4-w7qw-pjjw/GHSA-8xf4-w7qw-pjjw.json
CWE IDs: ["CWE-347", "CWE-843"]
Alternative ID: GHSA-8xf4-w7qw-pjjw
Finding: F163
Auto approve: 1