GHSA-3fgr-xjr6-xqm8: Phpxmlrpc/phpxmlrpc Code Injection Vulnerability

HIGH
CWE-95
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-3fgr-xjr6-xqm8
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
Affected Product Phpxmlrpc/phpxmlrpc
Package Ecosystem Packagist
Published Date
Last Updated

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.

phpxmlrpc/phpxmlrpc fixed: 4.9.0
Upgrade phpxmlrpc/phpxmlrpc to 4.9.0
Verify Direct and Transitive Dependencies

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

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.

GHSA-3fgr-xjr6-xqm8 Affected Phpxmlrpc/phpxmlrpc Versions

1 component(s)
Fixed Versions:
4.9.0
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?
GHSA-3fgr-xjr6-xqm8 is a security vulnerability in Phpxmlrpc/phpxmlrpc involving code injection in phpxmlrpc/phpxmlrpc under CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection').
Which Phpxmlrpc/phpxmlrpc versions are affected?
Affected versions include releases prior to 4.9.0 across affected packages: phpxmlrpc/phpxmlrpc.
What version fixes GHSA-3fgr-xjr6-xqm8?
Upgrading to 4.9.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is phpxmlrpc/phpxmlrpc affected?
Yes, phpxmlrpc/phpxmlrpc is affected in releases prior to 4.9.0. Upgrade your dependency to 4.9.0 or later.
What CWE is associated with GHSA-3fgr-xjr6-xqm8?
GHSA-3fgr-xjr6-xqm8 is classified under CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') (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").).
How can I check Packagist dependencies for GHSA-3fgr-xjr6-xqm8?
Run the dependency tree command: 'inspect dependencies for phpxmlrpc/phpxmlrpc'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}