Home / microsoftgraph / msgraph-sdk-php / CVE-2023-49282
CVE-2023-49282: is it exploited, and which versions of microsoftgraph msgraph-sdk-php are affected and fixed?
CVE-2023-49282 is an information disclosure vulnerability in microsoftgraph msgraph-sdk-php. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:09 UTC). Affected: microsoft/microsoft-graph from 1.16.0 before 1.109.1 and microsoft/microsoft-graph from 2.0.0-RC1 before 2.0.1 (GitHub advisory GHSA-cgwq-6prq-8h9q). Fixed in 1.109.1 and 2.0.1 (GitHub advisory GHSA-cgwq-6prq-8h9q). Severity: Medium (5.4, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:09 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:33 UTC.
What is CVE-2023-49282?
Test code in published microsoft-graph package exposes phpinfo()
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.
From the CVE record by GitHub_M, last updated August 2, 2024, 21:53 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| microsoftgraph | msgraph-sdk-php | >= 1.16.0, < 1.109.1 >= 2.0.0-RC1, < 2.0.1 |
As the CVE record by GitHub_M states it, last updated August 2, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | microsoft/microsoft-graph | >= 1.16.0, < 1.109.1 | 1.109.1 | GHSA-cgwq-6prq-8h9q |
| Packagist | microsoft/microsoft-graph | >= 2.0.0-RC1, < 2.0.1 | 2.0.1 | GHSA-cgwq-6prq-8h9q |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated February 7, 2024. Summary: Test code in published microsoft-graph package exposes phpinfo().
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| microsoft | graph | from 1.16.0 before 1.109.1 | application |
| microsoft | graph | from 2.0.0 before 2.0.1 | application |
NVD analysis (status Modified), last modified June 17, 2026, 06:35 UTC.
How severe is CVE-2023-49282?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L | GitHub_M |
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-49282 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 2.20% probability of exploitation activity in the next 30 days, percentile 83.1 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
Where are the vendor advisories and references?
- https://github.com/microsoftgraph/msgraph-sdk-php/security/advisories/GHSA-cgwq-6prq-8h9q x_refsource_CONFIRM
- https://github.com/microsoftgraph/msgraph-beta-sdk-php/compare/2.0.0...2.0.1 x_refsource_MISC
- https://github.com/microsoftgraph/msgraph-sdk-php-core/compare/2.0.1...2.0.2 x_refsource_MISC
- https://github.com/microsoftgraph/msgraph-sdk-php/compare/1.109.0...1.109.1 x_refsource_MISC
- https://owncloud.com/security-advisories/disclosure-of-sensitive-credentials-and-configuration-in-containerized-deployments/ x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- November 24, 2023
- Published
- December 5, 2023, 22:40 UTC
- CVE record updated
- August 2, 2024, 21:53 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 06:35 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:33 UTC; KEV December 3, 2026, 17:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2023-49282
Is CVE-2023-49282 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:09 UTC. FIRST's EPSS gives it a 2.20% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of microsoftgraph msgraph-sdk-php are affected by CVE-2023-49282?
microsoft/microsoft-graph from 1.16.0 before 1.109.1 and microsoft/microsoft-graph from 2.0.0-RC1 before 2.0.1, per the GitHub advisory GHSA-cgwq-6prq-8h9q. The tables above give every range the sources list.
Which version fixes CVE-2023-49282?
1.109.1 and 2.0.1, per the GitHub advisory GHSA-cgwq-6prq-8h9q. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-49282?
Medium (5.4, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-49282?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.