GHSA-3fgr-xjr6-xqm8: Phpxmlrpc/phpxmlrpc Code Injection Vulnerability
HIGHGHSA-3fgr-xjr6-xqm8 is a HIGH code injection vulnerability (CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')) affecting Phpxmlrpc/phpxmlrpc libraries in the Packagist ecosystem. The issue involves code injection in phpxmlrpc/phpxmlrpc. Remediation is available by upgrading affected packages to version 4.9.0.
GHSA-3fgr-xjr6-xqm8 at a Glance
How to Fix GHSA-3fgr-xjr6-xqm8
To remediate this vulnerability, upgrade all affected Phpxmlrpc/phpxmlrpc 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 phpxmlrpc/phpxmlrpc to 4.9.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for phpxmlrpc/phpxmlrpc
How to Check if You Are Affected
To determine whether your application is affected by GHSA-3fgr-xjr6-xqm8, inspect your project dependencies for Phpxmlrpc/phpxmlrpc:
inspect dependencies for phpxmlrpc/phpxmlrpc
Analyze the terminal output to locate any version of Phpxmlrpc/phpxmlrpc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.9.0), 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-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection'), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval"). In Phpxmlrpc/phpxmlrpc, 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-3fgr-xjr6-xqm8 Affected Phpxmlrpc/phpxmlrpc Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
phpxmlrpc/phpxmlrpc
|
Packagist |
< 4.9.0
|
4.9.0
|
References
Frequently Asked Questions
What is GHSA-3fgr-xjr6-xqm8?
Which Phpxmlrpc/phpxmlrpc versions are affected?
What version fixes GHSA-3fgr-xjr6-xqm8?
Is phpxmlrpc/phpxmlrpc affected?
What CWE is associated with GHSA-3fgr-xjr6-xqm8?
How can I check Packagist dependencies for GHSA-3fgr-xjr6-xqm8?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3fgr-xjr6-xqm8",
"modified" : "2022-11-28T22:07:33Z",
"published" : "2022-11-28T22:07:33Z",
"aliases" : [ ],
"summary" : "code injection in phpxmlrpc/phpxmlrpc",
"details" : "code injection in `Wrapper::buildClientWrapperCode` via manipulation of the `$client` argument. It was possible to force the client to access local files or connect to undesired urls instead of the intended target server's url.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "phpxmlrpc/phpxmlrpc"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.9.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/gggeek/phpxmlrpc/issues/80"
}, {
"type" : "WEB",
"url" : "https://github.com/gggeek/phpxmlrpc/commit/cf6e605e09d001ce520bfa8e7b168cfa514e663b"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/phpxmlrpc/phpxmlrpc/2022-11-28-2.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/gggeek/phpxmlrpc"
}, {
"type" : "WEB",
"url" : "https://github.com/gggeek/phpxmlrpc/releases/tag/4.9.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-95" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-11-28T22:07:33Z",
"nvd_published_at" : null
}
}