Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

From Consensus to Chaos: A Vulnerability Assessment of the RAFT Algorithm

Author 1: Tamer Afifi Author 2: Abdelfatah Hegazy Author 3: Ehab Abousaif
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 16, No. 12 · Published 2025

DOI: https://doi.org/10.14569/IJACSA.2025.01612101

Abstract

In recent decades, the RAFT distributed consensus algorithm has become a main pillar of the distributed systems ecosystem, ensuring data consistency and fault tolerance across multiple nodes. Although the fact that RAFT is well known for its simplicity, reliability, and efficiency, its security properties are not fully recognized, leaving implementations vulnerable to different kinds of attacks and threats, which can transform the RAFT harmony of consensus into a chaos of data inconsistency. This paper presents a systematic security analysis of the RAFT protocol, with a specific focus on its susceptibility to security threats such as message replay attacks and message forgery attacks. Examined how a malicious actor can exploit the protocol's message-passing mechanism to reintroduce old messages, disrupting the consensus process and leading to data inconsistency. The practical feasibility of these attacks is examined through simulated scenarios, and the key weaknesses in RAFT's design that enable them are identified. To address these vulnerabilities, a novel approach based on cryptography, authenticated message verification, and freshness check is proposed. This proposed solution provides a framework for enhancing the security of the RAFT implementations and guiding the development of more resilient distributed systems.

Keywords

How to Cite this Article

Afifi, T., Hegazy, A., & Abousaif, E. (2025). From Consensus to Chaos: A Vulnerability Assessment of the RAFT Algorithm. International Journal of Advanced Computer Science and Applications, 16(12). https://doi.org/10.14569/IJACSA.2025.01612101

Afifi, Tamer, et al.. "From Consensus to Chaos: A Vulnerability Assessment of the RAFT Algorithm." International Journal of Advanced Computer Science and Applications, vol. 16, no. 12, 2025, https://doi.org/10.14569/IJACSA.2025.01612101.

@article{Afifi2025,
  title     = {From Consensus to Chaos: A Vulnerability Assessment of the RAFT Algorithm},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {16},
  number    = {12},
  year      = {2025},
  publisher = {The Science and Information Organization},
  author    = {Tamer Afifi and Abdelfatah Hegazy and Ehab Abousaif},
  doi       = {10.14569/IJACSA.2025.01612101},
  url       = {https://doi.org/10.14569/IJACSA.2025.01612101}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.