
CVE-2021-29441 - Nacos Authentication Bypass
CVE-2021-29441 is a critical authentication bypass vulnerability affecting Nacos versions prior to 1.4.1. Nacos is a popular platform for dynamic service discovery, configuration management, and service administration used within cloud-native environments. The vulnerability allows unauthenticated attackers to bypass authentication controls and perform administrative actions on vulnerable Nacos servers.
| Field | Value |
|---|---|
| CVE | CVE-2021-29441 |
| Severity | Critical |
| CVSS v3.1 | 9.8 |
| CWE | CWE-290 (Authentication Bypass by Spoofing) |
| Affected Versions | Nacos < 1.4.1 |
| Attack Vector | Network |
| Authentication Required | No |
| User Interaction | None |
The vulnerability exists within Nacos' AuthFilter component. When authentication is enabled, the filter relies on a trusted User-Agent header value to identify internal server requests. An attacker can simply spoof this header to bypass authentication checks entirely.
Successful exploitation may allow an attacker to:
In affected environments, attackers can effectively gain administrative access to the Nacos management interface.
The flaw originates from an insecure trust model within the authentication filter. Instead of cryptographically validating internal requests, Nacos trusted requests containing a specific User-Agent value.
Because HTTP headers are fully controllable by clients, attackers can forge the expected header and bypass authentication controls. This represents a classic example of authentication bypass through spoofing (CWE-290).
An attacker must:
User-Agent header.No valid credentials or prior access are required.
Update Nacos to version 1.4.1 or later, which removes the vulnerable authentication bypass mechanism.
This repository is intended for educational purposes, security research, and authorized penetration testing only. Any proof-of-concept (PoC) code or exploit material provided here is designed to help security professionals understand the vulnerability, validate patches.