Nacos Raft Protocol Deserialization Code Execution Vulnerability

Nacos Raft Protocol Deserialization Code Execution Vulnerability

June 9, 2023 | NSFOCUS


Recently, NSFOCUS CERT found that there was a deserialization vulnerability in Nacos’s Raft protocol. Due to the Nacos cluster’s unrestricted use of Hessian for deserialization when processing some Jraft requests, attackers can execute code. Affected users should take protective measures as soon as possible.

Vulnerability DetailsVulnerability PoCVulnerability EXPUtilization in the wilderness
UnpublishedUnpublishedUnpublishedNot exist

Scope of Impact

Affected version

  • 1.4.0<=Nacos<1.4.6
  • 2.0.0<=Nacos<2.2.3

Unaffected version

  • Nacos<1.4.0
  • 1.4.6<=Nacos<2.0.0
  • Nacos>=2.2.3


Official upgrade

At present, a new version has been officially released to fix this vulnerability. Affected users are requested to upgrade the version as soon as possible for protection. The official download links are as follows:

Temporary mitigation

By default, this vulnerability only affects port 7848 for Raft protocol communication between Nacos clusters. This port does not host client requests and can be alleviated by restricting external IP access to port 7848.


This advisory is only used to describe a potential risk. NSFOCUS does not provide any commitment or promise on this advisory. NSFOCUS and the author will not bear any liability for any direct and/or indirect consequences and losses caused by transmitting and/or using this advisory. NSFOCUS reserves all the rights to modify and interpret this advisory. Please include this statement paragraph when reproducing or transferring this advisory. Do not modify this advisory, add/delete any information to/from it, or use this advisory for commercial purposes without permission from NSFOCUS.


NSFOCUS, Inc., a global network and cyber security leader, protects enterprises and carriers from advanced cyber attacks. The company’s Intelligent Hybrid Security strategy utilizes both cloud and on-premises security platforms, built on a foundation of real-time global threat intelligence, to provide multi-layered, unified and dynamic protection against advanced cyber attacks.

NSFOCUS works with Fortune Global 500 companies, including four of the world’s five largest financial institutions, organizations in insurance, retail, healthcare, critical infrastructure industries as well as government agencies. NSFOCUS has technology and channel partners in more than 60 countries, is a member of both the Microsoft Active Protections Program (MAPP), and the Cloud Security Alliance (CSA).

A wholly owned subsidiary of NSFOCUS Technologies Group Co., Ltd., the company has operations in the Americas, Europe, the Middle East and Asia Pacific.