EV networks have expanded rapidly, requiring extensive deployment of charging infrastructure that relies on communication protocols such as OCPP to coordinate data transfer between network operators and EV supply equipment. In this context, EVSEFuzz emerges as a tool for automatically building fuzzers to test the security of protocol implementations. The tool achieves this by making a novel use of Python datatype validation packages and tools to understand datatypes and message structures, generating both compliant and non-compliant messages. Since its introduction, EVSEFuzz has been tested successfully against several open and closed-source implementations and has uncovered multiple vulnerabilities, two of which were assigned CVEs.
Building fuzzers from OCPP datatype definitions
The core insight of EVSEFuzz is that protocol implementations can be systematically tested by first understanding the expected datatype structure of each OCPP message. Python datatype validation packages provide introspection capabilities that allow the tool to parse schema definitions and derive valid value ranges, enumerations, and nested structure rules. From these derived constraints, EVSEFuzz generates message payloads that follow the specification as well as payloads that violate expected types, miss required fields, or contain out-of-range values.
Generating compliant and non-compliant test messages
Message generation operates in two modes. In compliant mode, every field respects the type constraints, enum values, and cardinality rules defined in the OCPP schema. In non-compliant mode, the tool deliberately breaks these rules: it may swap a signed integer for an unsigned one, omit a mandatory element, insert a value outside the permitted range, or nest a structure beyond the depth limit. By producing both categories of messages, the fuzzer exercises both the happy-path code and the error-handling branches of the target implementation.
Testing open and closed-source EVCI implementations
EVSEFuzz has been evaluated against a range of charging station firmware and cloud-side OCPP adapters. Open-source reference implementations were used to verify that the fuzzer could detect logically incorrect behavior such as unexpected state transitions. Closed-source commercial stacks were tested to uncover implementation-specific deviations from the protocol specification. Across both categories, the tool identified several conditions that triggered abnormal termination, memory pressure, or unexpected input acceptance.
Vulnerability discoveries and CVE assignments
The fuzzing campaigns led to the identification of several security-relevant flaws. Two of these flaws were assigned CVE identifiers and disclosed to the respective vendor ecosystems. The reported issues include message parsing errors that can cause buffer overflow conditions, inadequate input validation that allows malformed frames to be processed, and race conditions arising from concurrent message handling. Each issue was validated through reproducible test cases that demonstrate the failure under controlled input sequences.