Read the docs
TI-2023-30662 Aliases GHSA-7vcx-v65q-9wpg

XML-RPC for PHP's `Wrapper::buildClientWrapperCode` method allows code injection via malicious `$client` argument

Priority LOW 38CWE-94Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Code execution
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-94.

Summary

In order for this weakness to be exploited, the following conditions have to apply, at the same time: - method `Wrapper::buildClientWrapperCode`, or any methods which depend on it, such as `Wrapper::wrapXmlrpcServer`, `Wrapper::wrapXmlrpcMethod` or `Wrapper::buildWrapMethodSource` must be in use. Note that they are _not_ used by default in either the Client or Server classes provided by the library; the developer has to specifically make use of them in his/her own code - the `$client` argument to either of those methods should have been built with malicious data, ie. data controlled by a 3rd party, passed to its constructor call This is most likely an uncommon usage scenario, and as such the chances of exploitation may be low. *NB* the graphical debugger which is shipped as part of the library is vulnerable to this, when used with the option "Generate stub for method call" selected. In that case, the debugger will _display_ but not _execute_ the malicious code, which would have to be provided via carefully crafted values for the "Address" and "Path" inputs. The attack scenario in this case is that a developer copies into his/her own source code the php snippet generated by the debugger, in a situation where the debugger is used with "Address"/"Path" input values supplied by a 3rd party. The malicious payload in the "Address"/"Path" input values should be easily recognized as suspicious by any barely proficient developer, as it resembles a bog-standard injection attack. It goes without saying that a responsible developer should not blindly copy and paste into his/her own code anything generated by a 3rd party tool, such as the phpxmlrpc debugger, without giving it at least a cursory scan. Originally reported as issue #80

Why it matters now

Fix Fixed phpxmlrpc/phpxmlrpc (Packagist): 4.9.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—phpxmlrpc/phpxmlrpc (Packagist)before 4.9.04.9.0Patch availableGHSA-7vcx-v65q-9wpg
  • phpxmlrpc/phpxmlrpc (Packagist) Vendor— Affected before 4.9.0 Fixed in 4.9.0 Patch available GHSA-7vcx-v65q-9wpg

Remediation

  • Fix · GHSA-7vcx-v65q-9wpg phpxmlrpc/phpxmlrpc (Packagist) Fixed in 4.9.0 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-7vcx-v65q-9wpg

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences