{"answers":{"affected":"4 open source packages ship an affected version, including league/oauth2-server. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-37260 in the wild and no public exploit code.","fix":"Upgrade league/oauth2-server to a fixed version for your release line: 8.4.2 or 8.5.3.","what":"CVE-2023-37260 is a high-severity vulnerability in thephpleague oauth2-server, published on 6 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-37260 and fix it if it is affected.\n\nWhat it is: CVE-2023-37260 is a high-severity vulnerability in thephpleague oauth2-server, published on 6 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-37260 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- league/oauth2-server (Packagist): affected from 8.3.2; fixed in 8.4.2\n- league/oauth2-server (Packagist): affected from 8.3.2; fixed in 8.4.2\n- league/oauth2-server (Packagist): affected from 8.5.0; fixed in 8.5.3\n- league/oauth2-server (Packagist): affected from 8.5.0; fixed in 8.5.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-37260/ (Markdown: https://insights.sbomify.com/CVE-2023-37260/index.md)","id":"CVE-2023-37260","markdown":"https://insights.sbomify.com/CVE-2023-37260/index.md","name":"CVE-2023-37260","record":{"aliases":["GHSA-wj7q-gjg8-3cpm"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"PHP OAuth2 library","requires_auth":"none","summary":"Attackers can view private keys in exception messages if keys are passed as strings without valid passphrases in this PHP OAuth2 library.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"oauth2-server","vendor":"thephpleague"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-209","name":"Generation of Error Message Containing Sensitive Information"}],"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"league/oauth2-server key exposed in exception message when passing as string and providing invalid pass phrase","id":"CVE-2023-37260","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"information_disclosure","year":"2023"},"n_packages":4,"n_references":3,"next":{"headline":"OpenComputers's SSRF to cloud service metadata services and local IPv6 addresses not blocked by default","id":"CVE-2023-37261"},"packages":[{"ecosystem":"Packagist","fixed":["8.4.2"],"introduced":["8.3.2"],"last_affected":[],"package":"league/oauth2-server","purl":null,"source":"GHSA-wj7q-gjg8-3cpm"},{"ecosystem":"Packagist","fixed":["8.4.2"],"introduced":["8.3.2"],"last_affected":[],"package":"league/oauth2-server","purl":"pkg:composer/league/oauth2-server","source":"GHSA-wj7q-gjg8-3cpm"},{"ecosystem":"Packagist","fixed":["8.5.3"],"introduced":["8.5.0"],"last_affected":[],"package":"league/oauth2-server","purl":null,"source":"GHSA-wj7q-gjg8-3cpm"},{"ecosystem":"Packagist","fixed":["8.5.3"],"introduced":["8.5.0"],"last_affected":[],"package":"league/oauth2-server","purl":"pkg:composer/league/oauth2-server","source":"GHSA-wj7q-gjg8-3cpm"}],"prev":{"headline":"Cross site scripting in Export Chat feature","id":"CVE-2023-37259"},"products":["oauth2-server"],"published":"2023-07-06","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-06","vendors":["thephpleague"]},"summary":"Attackers can view private keys in exception messages if keys are passed as strings without valid passphrases in this PHP OAuth2 library.","url":"https://insights.sbomify.com/CVE-2023-37260/"}