Information Exposure Affecting microsoft/microsoft-graph package, versions >=1.16.0, <1.109.1>=2.0.0-RC1, <2.0.0-RC5


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.16% (55th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-MICROSOFTMICROSOFTGRAPH-6102826
  • published7 Dec 2023
  • disclosed5 Dec 2023
  • creditUnknown

Introduced: 5 Dec 2023

CVE-2023-49282  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade microsoft/microsoft-graph to version 1.109.1, 2.0.0-RC5 or higher.

Overview

microsoft/microsoft-graph is a Microsoft Graph SDK for PHP

Affected versions of this package are vulnerable to Information Exposure via the tests/GetPhpInfo.php script which includes a call to the phpinfo() function. An attacker can obtain sensitive system information if the server is misconfigured to expose the tests under the /vendor directory.

Workaround

This vulnerability can be mitigated by deleting the vendor/microsoft/microsoft-graph/tests/GetPhpInfo.php file, removing access to the /vendor directory, or disabling the phpinfo function.

CVSS Scores

version 3.1