CVE-2025-3881
JSON

8.8high

eCharge Hardy Barth cPH2 check_req.php ntp Command Injection Remote Code Execution Vulnerability

Severity
8.8high CVSS:3.0 by zdi
Exploit likelihood
0.69% (higher than 53% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
zdi

Description

eCharge Hardy Barth cPH2 check_req.php ntp Command Injection Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of eCharge Hardy Barth cPH2 charging stations. Authentication is not required to exploit this vulnerability. The specific flaw exists within the handling of the ntp parameter provided to the check_req.php endpoint. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the www-data user. Was ZDI-CAN-23113.

Affected

Product or packageVersionsReported by
eCharge Hardy Barth cPH22.0.4CVE List
hardy-barth cph2_echarge_firmware2.0.4NVD

Classification

CWE-78

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

eCharge Hardy Barth cPH2 check_req.php ntp Command Injection Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of eCharge Hardy Barth cPH2 charging stations. Authentication is not required to exploit this vulnerability. The specific flaw exists within the handling of the ntp parameter provided to the check_req.php endpoint. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the www-data user. Was ZDI-CAN-23113.

NVD (es)

Vulnerabilidad de ejecución remota de código por inyección de comandos ntp en eCharge Hardy Barth cPH2 check_req.php. Esta vulnerabilidad permite a atacantes adyacentes a la red ejecutar código arbitrario en las instalaciones afectadas de las estaciones de carga eCharge Hardy Barth cPH2. No se requiere autenticación para explotar esta vulnerabilidad. La falla específica se encuentra en la gestión del parámetro ntp proporcionado al endpoint check_req.php. El problema se debe a la falta de validación adecuada de una cadena proporcionada por el usuario antes de usarla para ejecutar una llamada al sistema. Un atacante puede aprovechar esta vulnerabilidad para ejecutar código en el contexto del usuario www-data. Era ZDI-CAN-23113.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-3881 changed 2025-05-22CVE Terms of Use
NVDCVE-2025-3881 changed 2026-06-17Public domain