league/oauth2-server key exposed in exception message when passing as string and providing invalid pass phrase
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-209.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| thephpleague | oauth2-server | 8.3.2 to before 8.5.3 | 8.5.3 | Patch available | CNA |
| — | league/oauth2-server (Packagist) | 8.3.2 to before 8.4.2 | 8.4.2 | Patch available | GHSA-wj7q-gjg8-3cpm |
| — | league/oauth2-server (Packagist) | 8.5.0 to before 8.5.3 | 8.5.3 | Patch available | GHSA-wj7q-gjg8-3cpm |
- oauth2-server Vendorthephpleague Affected 8.3.2 to before 8.5.3 Fixed in 8.5.3 Patch available CNA
- league/oauth2-server (Packagist) Vendor— Affected 8.3.2 to before 8.4.2 Fixed in 8.4.2 Patch available GHSA-wj7q-gjg8-3cpm
- league/oauth2-server (Packagist) Vendor— Affected 8.5.0 to before 8.5.3 Fixed in 8.5.3 Patch available GHSA-wj7q-gjg8-3cpm
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:thephpleague:oauth2-server:*:*:*:*:*:*:*:* | 8.3.2 to before 8.5.3 | Vulnerable | thephpleague |
- cpe:2.3:a:thephpleague:oauth2-server:*:*:*:*:*:*:*:* Versions 8.3.2 to before 8.5.3 Vulnerable ·thephpleague
Remediation
- Fix · CNA oauth2-server (thephpleague) Fixed in 8.5.3
- Fix · GHSA-wj7q-gjg8-3cpm league/oauth2-server (Packagist) Fixed in 8.4.2 Advisory →
- Fix · GHSA-wj7q-gjg8-3cpm league/oauth2-server (Packagist) Fixed in 8.5.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-37260
- 2026-10-03 Alias added: GHSA-wj7q-gjg8-3cpm
References
Advisory 2
Sources
- CVE-2023-37260 · CVE Program
- CVE-2023-37260 · NVD
- FIRST EPSS
- GHSA-wj7q-gjg8-3cpm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences