CVE-2023-37260
HIGH 7.5CVSS 3.1league/oauth2-server key exposed in exception message when passing as a string and providing an invalid pass phrase
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.
- Published
- 6 Jul 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-200CWE-209
- Also known as
- GHSA-wj7q-gjg8-3cpm
- Sources
- NVDJSONOSV GHSA-wj7q-gjg8-3cpmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | thephpleague | oauth2-servercpe:2.3:a:thephpleague:oauth2-server:*:*:*:*:*:*:*:* |
>= 8.3.2, < 8.5.3 | 8.5.3 |
| OSV | Packagist | league/oauth2-server | >= 8.3.2, < 8.4.2 | 8.4.2 |
| OSV | Packagist | league/oauth2-server | >= 8.5.0, < 8.5.3 | 8.5.3 |
References
- https://github.com/thephpleague/oauth2-server/pull/1353 · Patch, WEB
- https://github.com/thephpleague/oauth2-server/releases/tag/8.5.3 · Release Notes, WEB
- https://github.com/thephpleague/oauth2-server/security/advisories/GHSA-wj7q-gjg8-3cpm · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-37260 · ADVISORY
- https://github.com/thephpleague/oauth2-server/pull/1359 · WEB
- https://github.com/thephpleague/oauth2-server · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 6 Jul 2023)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 6 Jul 2023)