CVE-2021-29441
Java vulnerability analysis and mitigation

Overview

CVE-2021-29441 is an authentication bypass vulnerability in Alibaba Nacos discovered in April 2021. The vulnerability affects Nacos versions prior to 1.4.1 when authentication is enabled (nacos.core.auth.enabled=true). The issue stems from a backdoor in the AuthFilter servlet filter that was designed to enable Nacos servers to bypass authentication checks (GitHub Security Lab).

Technical details

The vulnerability exists in the AuthFilter component where authentication can be bypassed through two methods. First, by using the 'Nacos-Server' user-agent header, and second, through a specially crafted URL structure ending with a trailing slash. The AuthFilter's logic fails to properly enforce authentication when these conditions are met, allowing unauthorized access to protected endpoints. The vulnerability was assigned a high severity rating with an EPSS score of 96.802%, indicating a high likelihood of exploitation (GitHub Advisory).

Impact

The vulnerability allows unauthorized users to perform administrative tasks on the Nacos server, including accessing any console or REST API endpoints. Attackers can add new users, access configuration data, and perform other privileged operations without proper authentication (GitHub Security Lab).

Mitigation and workarounds

The vulnerability was patched in Nacos version 1.4.1. Organizations should upgrade to this version or later. For those unable to upgrade immediately, a temporary mitigation involves setting 'nacos.core.auth.enable.userAgentAuthWhite=false' in the application.properties file, though this alone may not fully prevent exploitation (GitHub Security Lab).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management