Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS04eGY0LXc3cXctcGpqd802tA

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.

Permalink: https://github.com/advisories/GHSA-8xf4-w7qw-pjjw
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04eGY0LXc3cXctcGpqd802tA
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: about 2 years ago
Updated: about 1 year ago


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

Identifiers: GHSA-8xf4-w7qw-pjjw, CVE-2021-46743
References: Repository: https://github.com/firebase/php-jwt
Blast Radius: 42.3

Affected Packages

packagist:firebase/php-jwt
Dependent packages: 1,772
Dependent repositories: 44,890
Downloads: 270,840,867 total
Affected Version Ranges: < 6.0.0
Fixed in: 6.0.0
All affected versions: 1.0.0, 2.0.0, 2.1.0, 2.2.0, 3.0.0, 4.0.0, 5.0.0, 5.1.0, 5.2.0, 5.2.1, 5.3.0, 5.4.0, 5.5.0, 5.5.1
All unaffected versions: 6.0.0, 6.1.0, 6.1.1, 6.1.2, 6.2.0, 6.3.0, 6.3.1, 6.3.2, 6.4.0, 6.5.0, 6.6.0, 6.7.0, 6.8.0, 6.8.1, 6.9.0, 6.10.0