CVE-2025-27804 OS Command Injection Vulnerability in eCharge Hardy Barth cPH2 / cPP2 charging stations

Medium 6.5 Published Updated

Attackers can execute arbitrary OS commands with root privileges on eCharge Hardy Barth charging stations via crafted MQTT messages.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-27804?

CVE-2025-27804 is a medium-severity command injection vulnerability in eCharge Hardy Barth cPH2 / cPP2 charging stations, published on 21 May 2025. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Several OS command injection vulnerabilities exist in the device firmware in the /var/salia/mqtt.php script. By publishing a specially crafted message to a certain MQTT topic arbitrary OS commands can be executed with root permissions.

Weakness: CWE-78

Which versions are affected by CVE-2025-27804?

How do I fix CVE-2025-27804?

No fix has been published for CVE-2025-27804 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-27804 being exploited?

There is no known exploitation of CVE-2025-27804 in the wild and no public exploit code.

Sources

Also known as GHSA-xw2w-jc5r-g6r7.

Is CVE-2025-27804 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free