{"answers":{"affected":"2 open source packages ship an affected version, including phpxmlrpc/phpxmlrpc.","exploited":"There is no known exploitation of GHSA-m95x-m25c-w9mp in the wild and no public exploit code.","fix":"Upgrade phpxmlrpc/phpxmlrpc to 4.9.0 or later.","what":"GHSA-m95x-m25c-w9mp is a server-side request forgery vulnerability in phpxmlrpc/phpxmlrpc, published on 11 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-m95x-m25c-w9mp and fix it if it is affected.\n\nWhat it is: GHSA-m95x-m25c-w9mp is a server-side request forgery vulnerability in phpxmlrpc/phpxmlrpc, published on 11 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-m95x-m25c-w9mp in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- phpxmlrpc/phpxmlrpc (Packagist): affected all versions; fixed in 4.9.0\n- phpxmlrpc/phpxmlrpc (Packagist): affected all versions; fixed in 4.9.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-m95x-m25c-w9mp/ (Markdown: https://insights.sbomify.com/GHSA-m95x-m25c-w9mp/index.md)","id":"GHSA-m95x-m25c-w9mp","markdown":"https://insights.sbomify.com/GHSA-m95x-m25c-w9mp/index.md","name":"GHSA-m95x-m25c-w9mp","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"PHP XML-RPC library","requires_auth":"none","summary":"Attackers can force the XML-RPC client to access local files or connect to arbitrary URLs via malicious arguments, leading to data exposure or SSRF.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"Abusing the `$method` argument of Client::send, it was possible to force the client to _access local files_ or _connect to undesired urls_ instead of the intended target server's url (the one used in the Client constructor).\n\nThis weakness only affects installations where all the following conditions apply, at the same time:\n\n- the xmlrpc Client is used, ie. not xmlrpc servers\n- untrusted data (eg. data from remote users) is used as value for the `$method` argument of method `Client::send()`, in conjunction with conditions which trigger usage of curl as http transport (ie. either using the https, http11 or http2 protocols, or calling `Client::setUseCurl()` beforehand)\n- either have set the Clients `return_type` property to 'xml', or make the resulting Response's object `httpResponse` member, which is intended to be used for debugging purposes only, available to 3rd parties, eg. by displaying it to the end user or serializing it in some storage (note that the same data can also be accessed via magic property `Response::raw_data`, and in the Request's `httpResponse` member)\n\nThis is most likely a very uncommon usage scenario, and as such the chances of exploitation of this issue may be low.\n\nIf it is not possible to upgrade to this release of the library at this time, a proactive security measure, to avoid the Client accessing any local file on the server which hosts it, is to add the following call to your code:\n\n      $client-\u003esetCurlOptions([CURLOPT_PROTOCOLS, CURLPROTO_HTTPS|CURLPROTO_HTTP]);\n\nOriginally reported as issue #81","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"XML-RPC for PHP allows access to local files via malicious argument to the Client::send method","id":"GHSA-m95x-m25c-w9mp","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"ssrf","year":"2023"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["4.9.0"],"introduced":["0"],"last_affected":[],"package":"phpxmlrpc/phpxmlrpc","purl":null,"source":"GHSA-m95x-m25c-w9mp"},{"ecosystem":"Packagist","fixed":["4.9.0"],"introduced":["0"],"last_affected":[],"package":"phpxmlrpc/phpxmlrpc","purl":"pkg:composer/phpxmlrpc/phpxmlrpc","source":"GHSA-m95x-m25c-w9mp"}],"products":null,"published":"2023-01-11","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can force the XML-RPC client to access local files or connect to arbitrary URLs via malicious arguments, leading to data exposure or SSRF.","url":"https://insights.sbomify.com/GHSA-m95x-m25c-w9mp/"}