CVE-2021-46743: Key/algorithm type confusion

Published Mar 29, 2022
·
Updated

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.

Affected Software

5 affected componentsFixes available
composer/firebase/php-jwt<6.0.0
Google Firebase Php-jwt<6.0.0
composer/firebase/php-jwt<6.0.0
6.0.0
composer/firebase/php-jwt<6.0.0
6.0.0
IBM API Connect V12 OnPrem<=v12.1.0.0 - v12.1.1.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/firebase/php-jwt to a version that resolves this vulnerability.

    Fixed in 6.0.0

Event History

Mar 29, 2022
CVE Published
via MITRE·06:40 AM
Data Sourced
via MITRE·06:40 AM
Description
Data Sourced
via NVD·07:15 AM
DescriptionSeverityWeaknessAffected Software
Mar 30, 2022
Advisory Published
12:00 AM
Data Sourced
via Packagist·12:00 AM
DescriptionSeverityAffected Software
Advisory Published
via GitHub·12:00 AM
Data Sourced
via GitHub·12:00 AM
DescriptionSeverityWeaknessAffected Software
Oct 8, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2021-46743?

CVE-2021-46743 has a medium severity rating due to the potential for token forgery.

2

How do I fix CVE-2021-46743?

To fix CVE-2021-46743, update your Firebase PHP-JWT library to version 6.0.0 or later.

3

What type of vulnerability is CVE-2021-46743?

CVE-2021-46743 is an algorithm-confusion vulnerability that may allow an attacker to exploit key mismanagement.

4

Which software is affected by CVE-2021-46743?

CVE-2021-46743 affects versions of Firebase PHP-JWT prior to 6.0.0.

5

What can an attacker do exploiting CVE-2021-46743?

Exploiting CVE-2021-46743 allows an attacker to forge tokens that could validate incorrectly under a different key.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203