CVE-2023-37260:
league/oauth2-server key exposed in exception message when passing as a string and providing an invalid pass phrase
8.2
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.78068%
CWE
Published
7/6/2023
Updated
11/5/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
league/oauth2-server | composer | >= 8.3.2, < 8.4.2 | 8.4.2 |
league/oauth2-server | composer | >= 8.5.0, < 8.5.3 | 8.5.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from how the CryptKey
class handles exception messaging when invalid passphrases are provided with string-based keys. The patches in PR #1353 and PR #1359 specifically modify the exception message in CryptKey
's constructor to remove the key value from error output. This indicates the constructor was directly responsible for leaking sensitive key material through exception messages in vulnerable versions.