P-Net versions before 1.0.3 contain a vulnerability in the get_check_peer() function where the LengthPeerStationName field of a CheckPeers block is not properly validated. This allows a crafted block to write up to 15 bytes beyond the 241-byte buffer allocated for the peer station name, potentially causing a crash or arbitrary code execution. Exploitation requires establishing a session with adjacent network access.