CVE-2023-37260

league/oauth2-server key exposed in exception message when passing as string and providing invalid pass phrase

HIGH
7.5
CVSS Score
Published: July 6, 2023 at 03:09 PM UTC
Updated: June 17, 2026 at 06:07 AM UTC
2 products affected across 2 vendorsOAUTH2 ServerOAUTH2 Server

Using oauth2-server by thephpleague?

Get instant alerts when new vulnerabilities affect oauth2-server - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 1.0%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 8.5.38.3.2 ≤ v < 8.5.3
Affected range stops below 8.5.3, so it looks safe — our inference, not a vendor statement
8.3.2 ≤ v < 8.5.38.3.2
Affected range stops below 8.5.3, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-209

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card