{"answers":{"affected":"2 open source packages ship an affected version, including microsoft/microsoft-graph-beta.","exploited":"There is no known exploitation of GHSA-7mc6-x925-7qvx in the wild and no public exploit code.","fix":"Upgrade microsoft/microsoft-graph-beta to 2.0.1 or later.","what":"GHSA-7mc6-x925-7qvx is a vulnerability in microsoft/microsoft-graph-beta, published on 5 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-7mc6-x925-7qvx and fix it if it is affected.\n\nWhat it is: GHSA-7mc6-x925-7qvx is a vulnerability in microsoft/microsoft-graph-beta, published on 5 Dec 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 GHSA-7mc6-x925-7qvx in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- microsoft/microsoft-graph-beta (Packagist): affected all versions; fixed in 2.0.1\n- microsoft/microsoft-graph-beta (Packagist): affected all versions; fixed in 2.0.1\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/GHSA-7mc6-x925-7qvx/ (Markdown: https://insights.sbomify.com/GHSA-7mc6-x925-7qvx/index.md)","id":"GHSA-7mc6-x925-7qvx","markdown":"https://insights.sbomify.com/GHSA-7mc6-x925-7qvx/index.md","name":"GHSA-7mc6-x925-7qvx","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Microsoft Graph PHP SDK","requires_auth":"none","summary":"Published test code exposes phpinfo() if vendor directory is web-accessible, allowing attackers to read system configuration and secrets.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nThe Microsoft Graph Beta PHP SDK published packages which contained test code that enabled the use of the phpInfo() function from any application that could access and execute the file at vendor/microsoft/microsoft-graph-beta/tests/GetPhpInfo.php.  The phpInfo function exposes system information. \n\nThe vulnerability affects the GetPhpInfo.php script of the PHP SDK which contains a call to the phpinfo() function.  \n\nThis vulnerability requires a misconfiguration of the server to be present so it can be exploited. For example, making the PHP application’s /vendor directory web accessible.  \n\nThe combination of the vulnerability and the server misconfiguration would allow an attacker to craft an HTTP request that executes the phpinfo() method. The attacker would then be able to get access to system information like configuration, modules, and environment variables and later on use the compromised secrets to access additional data.\n\n### Patches\n\nThis problem has been patched in dependencies of version 2.0.1.\n\n### Workarounds\n\nIf an immediate deployment with the updated vendor package is not available, you can perform the following temporary workarounds:\n- delete the vendor/microsoft/microsoft-graph-beta/tests/GetPhpInfo.php file\n- remove access to the /vendor directory will remove this vulnerability\n- disable the phpinfo function\n\n### References\nFor more information about the vulnerability and the patch, users can refer to the following sources: \n\n- https://nvd.nist.gov/vuln/detail/CVE-2023-49103\n- https://github.com/microsoftgraph/msgraph-beta-sdk-php/compare/2.0.0...2.0.1 \n- https://github.com/microsoftgraph/msgraph-sdk-php-core/compare/2.0.1...2.0.2 \n- https://github.com/microsoftgraph/msgraph-sdk-php/compare/1.109.0...1.109.1 \n- https://owncloud.com/security-advisories/disclosure-of-sensitive-credentials-and-configuration-in-containerized-deployments/","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Test code in published microsoft-graph-beta package exposes phpinfo()","id":"GHSA-7mc6-x925-7qvx","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"information_disclosure","year":"2023"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"microsoft/microsoft-graph-beta","purl":null,"source":"GHSA-7mc6-x925-7qvx"},{"ecosystem":"Packagist","fixed":["2.0.1"],"introduced":["0"],"last_affected":[],"package":"microsoft/microsoft-graph-beta","purl":"pkg:composer/microsoft/microsoft-graph-beta","source":"GHSA-7mc6-x925-7qvx"}],"products":null,"published":"2023-12-05","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Published test code exposes phpinfo() if vendor directory is web-accessible, allowing attackers to read system configuration and secrets.","url":"https://insights.sbomify.com/GHSA-7mc6-x925-7qvx/"}