Vulnerability description
Recently, the PHP team disclosed a Use After Free vulnerability (codenamed php2shell, with CVE IDs CVE-2026-109618 / CVE-2026-109619). When PHP processes HTTP requests as mod_php / PHP-FPM / CGI, an attacker can send a crafted multipart/form-data POST request to trigger unauthorized remote code execution (RCE), with a CVSS 4.x score of 9.2. The PoC is already public and has been exploited in the wild. Please remediate this vulnerability as soon as possible.
Impact on EMR Versions
PHP is introduced by the ganglia component and exists only in EMR versions that include ganglia. The following EMR editions include the ganglia component (3.7.2) and are affected by this vulnerability. For details, see Component Version Overview. |
EMR-V2.6.0,EMR-V2.7.0 | 3.7.2 |
EMR-V3.3.0,EMR-V3.4.0,EMR-V3.5.0 | 3.7.2 |
Note:
Deprecated versions (EMR-V2.5.x and earlier) are also affected by this vulnerability if they include ganglia. Please handle them as well.
Remediation
Take the ganglia page offline and remove PHP: use the cleanup script provided by Tencent Cloud to uninstall ganglia-web and all php* RPMs, and remove PHP compiled from source code to completely eliminate PHP's ability to process HTTP requests.
The script is idempotent and automatically adapts to the state of each node. It can be safely executed regardless of whether ganglia-web / php is installed or whether services such as httpd are started. Nodes without the relevant packages are automatically skipped without side effects.
Keep the httpd, ganglia, ganglia-gmond, ganglia-gmetad, and ganglia-devel packages without disrupting the EMR service model.
Cost: The ganglia page is no longer available (the page status changes from 200 to 403), while the gmetad/gmond collection processes remain unaffected.
Remediation Steps
2. Use the Cluster Scripts feature in the EMR console to distribute the cleanup script to all nodes in the cluster for batch execution.
Verification Method
After the cleanup is complete, run the following command on each node to verify:
rpm -qa 'php*' | wc -l # Expected 0