Test code in published microsoft-graph-core package exposes phpinfo()
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.
Summary
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
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| microsoftgraph | msgraph-sdk-php-core | before 2.0.2 | 2.0.2 | Patch available | CNA |
| — | microsoft/microsoft-graph-core (Packagist) | before 2.0.2 | 2.0.2 | Patch available | GHSA-mhhp-c3cm-2r86 |
- msgraph-sdk-php-core Vendormicrosoftgraph Affected before 2.0.2 Fixed in 2.0.2 Patch available CNA
- microsoft/microsoft-graph-core (Packagist) Vendor— Affected before 2.0.2 Fixed in 2.0.2 Patch available GHSA-mhhp-c3cm-2r86
Remediation
- Fix · CNA msgraph-sdk-php-core (microsoftgraph) Fixed in 2.0.2
- Fix · GHSA-mhhp-c3cm-2r86 microsoft/microsoft-graph-core (Packagist) Fixed in 2.0.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-49283
- 2026-10-03 Alias added: GHSA-mhhp-c3cm-2r86
References
Patch 4
- https://github.com/microsoftgraph/msgraph-sdk-php-core/security/advisories/GHSA-mhhp-c3cm-2r86
- https://github.com/microsoftgraph/msgraph-beta-sdk-php/compare/2.0.0...2.0.1
- https://github.com/microsoftgraph/msgraph-sdk-php-core/compare/2.0.1...2.0.2
- https://github.com/microsoftgraph/msgraph-sdk-php/compare/1.109.0...1.109.1
Advisory 3
More Microsoft Graph vulnerabilities
- TI-2026-36363 Microsoft Graph Information Disclosure Vulnerability CVSS 3.1MEDIUM 6.5
- TI-2026-35163 Microsoft Graph Information Disclosure Vulnerability CVSS 3.1MEDIUM 6.5
- TI-2023-26918 Test code in published microsoft-graph package exposes phpinfo() CVSS 3.1MEDIUM 5.4
Sources
- CVE-2023-49283 · CVE Program
- CVE-2023-49283 · NVD
- FIRST EPSS
- GHSA-mhhp-c3cm-2r86 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences