Advisory

GHSA-wj7q-gjg8-3cpm

Also known as: CVE-2023-37260

Summary

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

Details

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

Patches
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 or 8.4.2 to receive the patch.

Workarounds
We recommend upgrading the oauth2-server to one of the patched releases (8.5.3 or 8.4.2). If you are unable to upgrade you can avoid this security issue by passing your key as a file instead of a string.

References

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-07-06 21:07 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

league/oauth2-server

Packagist · All systems

Affected

  • introduced 8.3.2, fixed 8.4.2 (ecosystem)

Fixed versions

8.4.2

Fix

The export has no generic command for this ecosystem.

league/oauth2-server

Packagist · All systems

Affected

  • introduced 8.5.0, fixed 8.5.3 (ecosystem)

Fixed versions

8.5.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences