CVE-2023-37260
published high CVSS 3.1 · 8.2league/oauth2-server key exposed in exception message when passing as string and providing invalid pass phrase
Package status and fixes
Description
league/oauth2-server is an implementation of an OAuth 2.0 authorization server written in PHP. Starting in version 8.3.2 and prior to version 8.5.3, servers that passed their keys to the CryptKey constructor as as string instead of a file path will have had that key included in a LogicException message if they did not provide a valid pass phrase for the key where required. This issue has been patched so that the provided key is no longer exposed in the exception message in the scenario outlined above. Users should upgrade to version 8.5.3 to receive the patch. As a workaround, pass the key as a file instead of a string.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| thephpleague | oauth2-server | >= 8.3.2, < 8.5.3 (affected) | GitHub_M · cna |
| oauth2-server_project | oauth2-server | 8.3.2 to < 8.5.3 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-209 CWE-209: Generation of Error Message Containing Sensitive Information
References
3Provider assertions
3GitHub_M · cna
league/oauth2-server key exposed in exception message when passing as string and providing invalid pass phrase
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6365696c9908185235666e45fad7163d29f5ed339003b81d6b9b27841e3e353b
- Ingested
- 23 Sep 2026, 08:10:12 UTC
- Source record
- Official CVE record