GHSA-7mc6-x925-7qvx: Microsoft/microsoft graph beta Test Code Vulnerability
MODERATEGHSA-7mc6-x925-7qvx is a MODERATE (CVSS 5.3) test code vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Microsoft/microsoft graph beta libraries in the Packagist ecosystem. The issue involves test code in published microsoft-graph-beta package exposes phpinfo(). Remediation is available by upgrading affected packages to version 2.0.1.
GHSA-7mc6-x925-7qvx at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix GHSA-7mc6-x925-7qvx
To remediate this vulnerability, upgrade all affected Microsoft/microsoft graph beta dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade microsoft/microsoft-graph-beta to 2.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for microsoft/microsoft-graph-beta
How to Check if You Are Affected
To determine whether your application is affected by GHSA-7mc6-x925-7qvx, inspect your project dependencies for Microsoft/microsoft graph beta:
inspect dependencies for microsoft/microsoft-graph-beta
Analyze the terminal output to locate any version of Microsoft/microsoft graph beta in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Microsoft/microsoft graph beta, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-7mc6-x925-7qvx Affected Microsoft/microsoft graph beta Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
microsoft/microsoft-graph-beta
|
Packagist |
< 2.0.1
|
2.0.1
|
References
Frequently Asked Questions
What is GHSA-7mc6-x925-7qvx?
Which Microsoft/microsoft graph beta versions are affected?
What version fixes GHSA-7mc6-x925-7qvx?
Is microsoft/microsoft-graph-beta affected?
What is the CVSS score of GHSA-7mc6-x925-7qvx?
What CWE is associated with GHSA-7mc6-x925-7qvx?
How can I check Packagist dependencies for GHSA-7mc6-x925-7qvx?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7mc6-x925-7qvx",
"modified" : "2023-12-05T23:05:03Z",
"published" : "2023-12-05T22:57:59Z",
"aliases" : [ ],
"summary" : "Test code in published microsoft-graph-beta package exposes phpinfo()",
"details" : "### Impact\n\nThe 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. \n\nThe vulnerability affects the GetPhpInfo.php script of the PHP SDK which contains a call to the phpinfo() function. \n\nThis 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. \n\nThe 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.\n\n### Patches\n\nThis problem has been patched in dependencies of version 2.0.1.\n\n### Workarounds\n\nIf an immediate deployment with the updated vendor package is not available, you can perform the following temporary workarounds:\n- delete the vendor/microsoft/microsoft-graph-beta/tests/GetPhpInfo.php file\n- remove access to the /vendor directory will remove this vulnerability\n- disable the phpinfo function\n\n### References\nFor more information about the vulnerability and the patch, users can refer to the following sources: \n\n- https://nvd.nist.gov/vuln/detail/CVE-2023-49103\n- https://github.com/microsoftgraph/msgraph-beta-sdk-php/compare/2.0.0...2.0.1 \n- https://github.com/microsoftgraph/msgraph-sdk-php-core/compare/2.0.1...2.0.2 \n- https://github.com/microsoftgraph/msgraph-sdk-php/compare/1.109.0...1.109.1 \n- https://owncloud.com/security-advisories/disclosure-of-sensitive-credentials-and-configuration-in-containerized-deployments/ ",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "microsoft/microsoft-graph-beta"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/microsoftgraph/msgraph-beta-sdk-php/security/advisories/GHSA-7mc6-x925-7qvx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-49103"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/microsoftgraph/msgraph-beta-sdk-php"
}, {
"type" : "WEB",
"url" : "https://github.com/microsoftgraph/msgraph-beta-sdk-php/compare/2.0.0...2.0.1"
}, {
"type" : "WEB",
"url" : "https://github.com/microsoftgraph/msgraph-sdk-php-core/compare/2.0.1...2.0.2"
}, {
"type" : "WEB",
"url" : "https://github.com/microsoftgraph/msgraph-sdk-php/compare/1.109.0...1.109.1"
}, {
"type" : "WEB",
"url" : "https://owncloud.com/security-advisories/disclosure-of-sensitive-credentials-and-configuration-in-containerized-deployments"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-12-05T22:57:59Z",
"nvd_published_at" : null
}
}