{"id":"CVE-2023-49282","published":"2023-12-05T22:40:44Z","modified":"2024-08-02T21:53:45Z","title":"Test code in published microsoft-graph package exposes phpinfo()","vendor":"microsoftgraph","product":"msgraph-sdk-php","tier":"tail","description":{"text":"msgraph-sdk-php is the Microsoft Graph Library for PHP. The Microsoft Graph 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/tests/GetPhpInfo.php.  The phpInfo function exposes system information. The vulnerability affects the GetPhpInfo.php script of the PHP SDK which contains a call to the phpinfo() function. This 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. The 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. This problem has been patched in versions 1.109.1 and 2.0.0-RC5. If an immediate deployment with the updated vendor package is not available, you can perform the following temporary workarounds: delete the `vendor/microsoft/microsoft-graph/tests/GetPhpInfo.php` file, remove access to the `/vendor` directory, or disable the phpinfo function.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02203,"percentile":0.82975,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/microsoftgraph/msgraph-sdk-php/security/advisories/GHSA-cgwq-6prq-8h9q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/microsoftgraph/msgraph-beta-sdk-php/compare/2.0.0...2.0.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/microsoftgraph/msgraph-sdk-php-core/compare/2.0.1...2.0.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/microsoftgraph/msgraph-sdk-php/compare/1.109.0...1.109.1","tags":["x_refsource_MISC"]},{"url":"https://owncloud.com/security-advisories/disclosure-of-sensitive-credentials-and-configuration-in-containerized-deployments/","tags":["x_refsource_MISC"]}],"priority":{"score":20.4,"factors":[{"name":"EPSS percentile","points":16.59},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"microsoftgraph","affectedVersions":[{"vendor":"microsoftgraph","product":"msgraph-sdk-php","versions":[">= 1.16.0, < 1.109.1",">= 2.0.0-RC1, < 2.0.1"]}],"affected":[{"ecosystem":"Packagist","package":"microsoft/microsoft-graph","vulnerableRanges":[">=1.16.0, <1.109.1",">=2.0.0-RC1, <2.0.1"],"patched":["1.109.1","2.0.1"],"from":["GHSA-cgwq-6prq-8h9q"],"provenance":"source"}],"summary":{"text":"The msgraph-sdk-php package (Microsoft Graph Library for PHP, published under microsoftgraph) shipped test code, specifically the tests/GetPhpInfo.php file inside vendor/microsoft/microsoft-graph, which calls phpinfo() and exposes system information. An attacker who can reach that file over HTTP, which requires the application's /vendor directory to be web-accessible through a server misconfiguration, and who holds low-privilege authentication, can execute phpinfo() and obtain configuration, modules, and environment variables that may include secrets usable for further access.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:01Z"},"euvd":{"id":"EUVD-2023-3185","exploited":false,"provenance":"source"}}