Skip to content

CVE-2021-46743 Firebase PHP-JWT key/algorithm type confusion

CriticalCVSS 9.1 EPSS 0.92% PoC
Published
Updated
Exploit status
Proof-of-concept only
Technology
PHP

Description

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.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
firebase/php-jwt(Packagist) < 6.0.0; = 1.0.0; = 2.0.0; = v2.1.0 +11 more 6.0.0 Fixed
Google firebase php-jwt < 6.0.0 6.0.0 Fixed
wordpress jwt-auth(WordPress) < 2.1.1 2.1.1 Fixed

Affected products

ProductAffected versionsFixed in
firebase/php-jwt(Packagist) < 6.0.0 6.0.0
firebase/php-jwt(Packagist) = 1.0.0 No fix listed
firebase/php-jwt(Packagist) = 2.0.0 No fix listed
firebase/php-jwt(Packagist) = v2.1.0 No fix listed
firebase/php-jwt(Packagist) = v2.2.0 No fix listed
firebase/php-jwt(Packagist) = v3.0.0 No fix listed
firebase/php-jwt(Packagist) = v4.0.0 No fix listed
firebase/php-jwt(Packagist) = v5.0.0 No fix listed
firebase/php-jwt(Packagist) = v5.1.0 No fix listed
firebase/php-jwt(Packagist) = v5.2.0 No fix listed
firebase/php-jwt(Packagist) = v5.2.1 No fix listed
firebase/php-jwt(Packagist) = v5.3.0 No fix listed
firebase/php-jwt(Packagist) = v5.4.0 No fix listed
firebase/php-jwt(Packagist) = v5.5.0 No fix listed
firebase/php-jwt(Packagist) = v5.5.1 No fix listed
Google firebase php-jwt < 6.0.0 6.0.0
wordpress jwt-auth(WordPress) < 2.1.1 2.1.1

References