# CVE-2023-49283: Test code in published microsoft-graph-core 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-01)
- Published: 2023-12-05T22:44:40.433Z
- Modified: 2026-09-10T03:49:59.652Z
- Also known as: GHSA-mhhp-c3cm-2r86
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

microsoft-graph-core the Microsoft Graph Library for PHP. The 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-core/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 version 2.0.2. 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-core/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-core: < 2.0.2
- microsoft/microsoft-graph-core (Packagist): before 2.0.2
- microsoft graph: before 2.0.2

## 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-core/security/advisories/GHSA-mhhp-c3cm-2r86> (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-49103> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-49283> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/microsoft/microsoft-graph-core/CVE-2023-49283.yaml> (web)
- <https://github.com/microsoftgraph/msgraph-sdk-php-core> (package)
- <https://owncloud.com/security-advisories/disclosure-of-sensitive-credentials-and-configuration-in-containerized-deployments> (web)

## Sources

- CVE List: [CVE-2023-49283](https://www.cve.org/CVERecord?id=CVE-2023-49283), CVE Terms of Use, modified 2024-10-10
- GitHub Advisory Database: [GHSA-mhhp-c3cm-2r86](https://github.com/advisories/GHSA-mhhp-c3cm-2r86), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-49283](https://nvd.nist.gov/vuln/detail/CVE-2023-49283), Public domain, modified 2026-06-17

---

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