# CVE-2023-49282: Test code in published microsoft-graph package exposes phpinfo()

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.20%, higher than 83% of CVEs (2026-12-02)
- Published: 2023-12-05T22:40:44.054Z
- Modified: 2026-06-17T06:35:45.607Z
- Also known as: GHSA-cgwq-6prq-8h9q
- Weaknesses: CWE-200
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- microsoftgraph msgraph-sdk-php: >= 1.16.0, < 1.109.1; >= 2.0.0-RC1, < 2.0.1
- microsoft/microsoft-graph (Packagist): from 1.16.0 before 1.109.1; from 2.0.0-RC1 before 2.0.1
- microsoft graph: from 1.16.0 before 1.109.1; from 2.0.0 before 2.0.1

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/microsoftgraph/msgraph-sdk-php/security/advisories/GHSA-cgwq-6prq-8h9q> (patch, vendor-advisory, web)
- <https://github.com/microsoftgraph/msgraph-beta-sdk-php/compare/2.0.0...2.0.1> (patch, web)
- <https://github.com/microsoftgraph/msgraph-sdk-php-core/compare/2.0.1...2.0.2> (patch, web)
- <https://github.com/microsoftgraph/msgraph-sdk-php/compare/1.109.0...1.109.1> (patch, web)
- <https://owncloud.com/security-advisories/disclosure-of-sensitive-credentials-and-configuration-in-containerized-deployments/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-49282> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/microsoft/microsoft-graph/CVE-2023-49282.yaml> (web)
- <https://github.com/microsoftgraph/msgraph-sdk-php> (package)
- <https://owncloud.com/security-advisories/disclosure-of-sensitive-credentials-and-configuration-in-containerized-deployments> (web)

## Sources

- CVE List: [CVE-2023-49282](https://www.cve.org/CVERecord?id=CVE-2023-49282), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-cgwq-6prq-8h9q](https://github.com/advisories/GHSA-cgwq-6prq-8h9q), CC-BY-4.0, modified 2024-02-17
- NVD: [CVE-2023-49282](https://nvd.nist.gov/vuln/detail/CVE-2023-49282), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-49282 · Whole record: https://cve.day/CVE-2023-49282.json · Rebuilt by cve.day 2026-11-25T22:58:31.066Z
