Adjacent unauthenticated root code execution via OCPP bswitch
Published Jan 30, 2025 · Updated Aug 26, 2025
Command injection in all versions of ChargePoint Home Flex allows network-adjacent attackers to execute arbitrary code as root. The RouteToFsmInstance() handler in /usr/bin/mcp passes the command field from an OCPP bswitch payload directly to system() without validation. An attacker must intercept the charger's cloud WebSocket traffic and send a crafted bswitch message; execution triggers a reboot, but injected commands run first with root privileges.
Summary
What happened
Command injection in all versions of ChargePoint Home Flex allows network-adjacent attackers to execute arbitrary code as root. The RouteToFsmInstance() handler in /usr/bin/mcp passes the command field from an OCPP bswitch payload directly to system() without validation. An attacker must intercept the charger's cloud WebSocket traffic and send a crafted bswitch message; execution triggers a reboot, but injected commands run first with root privileges.
The record
- CVE
- CVE-2024-23971
- Published
- Jan 30, 2025
- Updated
- Aug 26, 2025
- Vendor
- ChargePoint
- Product
- ChargePoint Home Flex
- Classifications
- CWE-77, T1059
- Attack vector
- adjacent
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jan 30, 2025CVE publishedPublication date reported by the CVE source.
- Aug 26, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=all versions
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- OCPP bswitch command-injection proof of conceptfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo