Advisory

GHSA-8xf4-w7qw-pjjw

Also known as: CVE-2021-46743

Summary

Firebase PHP-JWT key/algorithm type confusion

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-03-30 00:00 UTC
Modified
2023-11-08 04:07 UTC

Affected packages and fixes

firebase/php-jwt

Packagist · All systems

Affected

  • introduced 0, fixed 6.0.0 (ecosystem)

Fixed versions

6.0.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences