# CVE-2023-37260: league/oauth2-server key exposed in exception message when passing as string and providing invalid pass phrase

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 62% of CVEs (2026-12-01)
- Published: 2023-07-06T15:09:08.856Z
- Modified: 2026-09-10T03:49:57.270Z
- Also known as: GHSA-wj7q-gjg8-3cpm
- Weaknesses: CWE-200, CWE-209
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- thephpleague oauth2-server: >= 8.3.2, < 8.5.3; from 8.3.2 before 8.5.3
- oauth2-server_project oauth2-server: from 8.3.2 before 8.5.3
- league/oauth2-server (Packagist): from 8.3.2 before 8.4.2; from 8.5.0 before 8.5.3

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/thephpleague/oauth2-server/security/advisories/GHSA-wj7q-gjg8-3cpm> (vendor-advisory, web)
- <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://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)

## Sources

- CVE List: [CVE-2023-37260](https://www.cve.org/CVERecord?id=CVE-2023-37260), CVE Terms of Use, modified 2024-11-06
- GitHub Advisory Database: [GHSA-wj7q-gjg8-3cpm](https://github.com/advisories/GHSA-wj7q-gjg8-3cpm), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-37260](https://nvd.nist.gov/vuln/detail/CVE-2023-37260), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-37260 · Whole record: https://cve.day/CVE-2023-37260.json · Rebuilt by cve.day 2026-11-25T22:58:25.497Z
