SecurityContext

CVE-2023-49282: msgraph-sdk-php - Information Disclosure

  • Cve: CVE-2023-49282
  • Name: msgraph-sdk-php - Information Disclosure
  • Description: 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.
  • Impact: Attackers can retrieve system configuration, modules, and environment variables, potentially leading to further exploitation or data access.
  • Remediation: Update to versions 1.109.1 or 2.0.0-RC5, or temporarily delete GetPhpInfo.php, restrict access to /vendor, or disable phpinfo().
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Epss score: 0.02203
  • Epss percentile: 0.83001
  • Assignee: [email protected]
  • Published at: 2023-12-05T23:15:07Z
  • Age in days: 1085
  • Modified at: 2026-06-17T06:35:45Z
  • Patch available: yes
  • References total: 5
  • Products total: 1
  • Oss: yes
  • Projects total: 3
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-49282
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-200Exposure of Sensitive Information to an Unauthorized Actor
NVD-CWE-noinfo—

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/microsoftgraph/msgraph-beta-sdk-php/compare/2.0.0...2.0.1Patch
https://github.com/microsoftgraph/msgraph-sdk-php-core/compare/2.0.1...2.0.2Patch
https://github.com/microsoftgraph/msgraph-sdk-php/compare/1.109.0...1.109.1Patch
https://github.com/microsoftgraph/msgraph-sdk-php/security/advisories/GHSA-cgwq-6prq-8h9qPatch, Vendor Advisory
https://owncloud.com/security-advisories/disclosure-of-sensitive-credentials-and-configuration-in-containerized-deployments/Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
microsoft:graph>= 2.0.0, < 2.0.1; >= 1.16.0, < 1.109.1nonvd/v1/products/microsoft/graph

Projects

Same in every row:

  • Indexed: yes
RepositoryLink kindsUrl
microsoftgraph/msgraph-sdk-phpcompare, package, security_advisory/v1/repositories/microsoftgraph/msgraph-sdk-php
microsoftgraph/msgraph-beta-sdk-phpcompare/v1/repositories/microsoftgraph/msgraph-beta-sdk-php
microsoftgraph/msgraph-sdk-php-corecompare/v1/repositories/microsoftgraph/msgraph-sdk-php-core

Index

  • Repositories: 2
  • Repositories high signal: 2
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts