GHSA-8xf4-w7qw-pjjw

Suggest an improvement
Source
https://github.com/advisories/GHSA-8xf4-w7qw-pjjw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-8xf4-w7qw-pjjw/GHSA-8xf4-w7qw-pjjw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-8xf4-w7qw-pjjw
Aliases
Published
2022-03-30T00:00:27Z
Modified
2023-11-08T04:07:27.311791Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2022-03-29T07:15:00Z",
    "github_reviewed_at": "2023-02-17T14:26:38Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-347",
        "CWE-843"
    ]
}
References

Affected packages

Packagist / firebase/php-jwt

Package

Name
firebase/php-jwt
Purl
pkg:composer/firebase/php-jwt

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.0.0

Affected versions

1.*

1.0.0

2.*

2.0.0

v2.*

v2.1.0
v2.2.0

v3.*

v3.0.0

v4.*

v4.0.0

v5.*

v5.0.0
v5.1.0
v5.2.0
v5.2.1
v5.3.0
v5.4.0
v5.5.0
v5.5.1