Read the docs
TI-2023-18890 Aliases CVE-2023-37260GHSA-wj7q-gjg8-3cpm

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

Priority MEDIUM 43CWE-209Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00951 61st percentileScored 2026-11-07
Fix Fixed oauth2-server (thephpleague): 8.5.3league/oauth2-server (Packagist): 8.4.2, 8.5.3

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

VendorProductAffected versionsFixed inStatusSource
thephpleagueoauth2-server8.3.2 to before 8.5.38.5.3Patch availableCNA
—league/oauth2-server (Packagist)8.3.2 to before 8.4.28.4.2Patch availableGHSA-wj7q-gjg8-3cpm
—league/oauth2-server (Packagist)8.5.0 to before 8.5.38.5.3Patch availableGHSA-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

CPEVersionsRoleVendor
cpe:2.3:a:thephpleague:oauth2-server:*:*:*:*:*:*:*:*8.3.2 to before 8.5.3Vulnerablethephpleague
  • 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

  1. 2026-10-02 Threatist record created from CVE-2023-37260
  2. 2026-10-03 Alias added: GHSA-wj7q-gjg8-3cpm

References

Sources