Read the docs
TI-2023-30859 Aliases GHSA-7mc6-x925-7qvx

Test code in published microsoft-graph-beta package exposes phpinfo()

Priority LOW 38CWE-200Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Information disclosure
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-200.

Summary

### Impact 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-beta/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. ### Patches This problem has been patched in dependencies of version 2.0.1. ### Workarounds 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-beta/tests/GetPhpInfo.php file - remove access to the /vendor directory will remove this vulnerability - disable the phpinfo function ### References For more information about the vulnerability and the patch, users can refer to the following sources: - https://nvd.nist.gov/vuln/detail/CVE-2023-49103 - 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 - https://owncloud.com/security-advisories/disclosure-of-sensitive-credentials-and-configuration-in-containerized-deployments/

Why it matters now

Fix Fixed microsoft/microsoft-graph-beta (Packagist): 2.0.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—microsoft/microsoft-graph-beta (Packagist)before 2.0.12.0.1Patch availableGHSA-7mc6-x925-7qvx
  • microsoft/microsoft-graph-beta (Packagist) Vendor— Affected before 2.0.1 Fixed in 2.0.1 Patch available GHSA-7mc6-x925-7qvx

Remediation

  • Fix · GHSA-7mc6-x925-7qvx microsoft/microsoft-graph-beta (Packagist) Fixed in 2.0.1 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-7mc6-x925-7qvx

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences