Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-37260
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 08:43 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 6 Jul 2023, 15:09 UTC

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.

osv:CVE-2023-37260
Complete source record
{
  "id": "076e6910b03b83799cc3830a53b648fd58802204c2056d34e036e01e32e89acc",
  "url": "https://osv.dev/vulnerability/CVE-2023-37260",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "league/oauth2-server key exposed in exception message when passing as string and providing invalid pass phrase",
    "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.",
    "evidence": "osv:CVE-2023-37260",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-37260",
      "aliases": [
        "CVE-2023-37260",
        "GHSA-wj7q-gjg8-3cpm"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/thephpleague/oauth2-server",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0809487d33dd8a2c8c8c04e4a599ba4aadba1ae6"
                },
                {
                  "fixed": "eb91b4190e7f6169053ebf8ffa352d47e756b2ce"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "8.3.2"
                      },
                      {
                        "fixed": "8.5.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "eb91b4190e7f6169053ebf8ffa352d47e756b2ce"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "8.5.3"
                  },
                  {
                    "cpe": "cpe:2.3:a:thephpleague:oauth2-server:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "8.3.2"
                      },
                      {
                        "fixed": "8.5.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "8.4.1",
            "8.5.2",
            "8.5.1",
            "8.5.0",
            "8.4.0",
            "8.3.6",
            "8.3.5",
            "8.3.4",
            "8.3.3",
            "8.3.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-37260.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.426558579Z",
      "provider": "osv",
      "references": [
        "https://github.com/thephpleague/oauth2-server/releases/tag/8.5.3",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/37xxx/CVE-2023-37260.json",
        "https://github.com/thephpleague/oauth2-server/security/advisories/GHSA-wj7q-gjg8-3cpm",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-37260",
        "https://github.com/thephpleague/oauth2-server/pull/1353"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-209"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/37xxx/CVE-2023-37260.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-37260",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 518789,
  "published_at": "2023-07-06T15:09:08.856+00:00"
}