Over the last two decades, Vehicle-to-Everything (V2X) communication has evolved significantly, yet meeting its stringent security and latency requirements remains challenging. The emergence of 5G-Based V2X (5G-V2X or C-V2X) offers a promising solution, gaining traction in both academia and industry. Compared to earlier technologies such as 3G or LTE-Based V2X, 5G-V2X better addresses issues in highly mobile environments and dynamic network topologies. However, its reliance on cellular infrastructure introduces new cybersecurity risks, expanding the attack surface within 5G-enabled ecosystems. One critical threat is the Fake Base Station (FBS), where a malicious entity transmits synchronization signals and partial downlink frames without valid registration keys or services. This disrupts vehicles during the initial cell search phase, potentially causing denial of service. To mitigate such threats, Software Defined Networking (SDN) can be leveraged as an effective approach for managing dynamic vehicular networks and enhancing security. In this paper, we propose Software Defined V2X (SDV2X), a 5G-Based architecture leveraging SDN to enable secure and efficient V2X communication. Our solution employs V2X communication mode 4 while integrating SDN features to counter FBS attacks, ensure secure network access, authenticate users, and support fast inter-cell handovers. Additionally, we explore how SDN can meet latency requirements for safety critical services in Vehicular Ad-hoc Networks (VANETs). To validate SDV2X, we developed a simulation model using OMNET++, Simu5G, Veins, and SUMO to replicate FBS scenarios. The paper presents a comprehensive analysis of the proposed security mechanisms, their performance, and practical applications.