Vulnerability record · CVE-2021-29441 · published 27 April 2021
CVE-2021-29441: Nacos AuthFilter authentication bypass via spoofed User-Agent
Alibaba · Nacos
Nacos before 1.4.1 contains a backdoor in the AuthFilter servlet filter that lets requests bypass authentication checks when authentication is enabled. The bypass keys off the User-Agent HTTP header, which is trivially spoofed, so the authentication control can be skipped entirely. Because Nacos is a service discovery and configuration platform, this exposes a core infrastructure component to unauthenticated administrative access.
Description
Nacos is a platform designed for dynamic service discovery and configuration and service management. In Nacos before version 1.4.1, when configured to use authentication (-Dnacos.core.auth.enabled=true) Nacos uses the AuthFilter servlet filter to enforce authentication. This filter has a backdoor that enables Nacos servers to bypass this filter and therefore skip authentication checks. This mechanism relies on the user-agent HTTP header so it can be easily spoofed. This issue may allow any user to carry out any administrative tasks on the Nacos server.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityUnauthenticated network-reachable authentication bypass with full administrative impact, a CVSS score of 9.8, and very high EPSS with public exploit references.
What it is
Nacos before 1.4.1 contains a backdoor in the AuthFilter servlet filter that lets requests bypass authentication checks when authentication is enabled. The bypass keys off the User-Agent HTTP header, which is trivially spoofed, so the authentication control can be skipped entirely. Because Nacos is a service discovery and configuration platform, this exposes a core infrastructure component to unauthenticated administrative access.
Impact
An attacker gains full administrative control of the Nacos server, including reading and modifying service registrations and configuration data. The CVSS vector rates confidentiality, integrity and availability impact as high.
Attack surface
Reachable over the network via HTTP requests to the Nacos server; no authentication is required because the flaw is the authentication bypass itself, and no user interaction is needed. The only precondition is that the target is configured with nacos.core.auth.enabled=true, which is the configuration the bypass defeats.
Exploitation
Not listed in CISA KEV, but EPSS is very high (0.87747, 99.75th percentile) and multiple references are tagged Exploit, indicating public exploit code exists. No ransomware group usage is documented in the record.
What to do
- Upgrade Nacos to version 1.4.1 or later, which contains the patch referenced in the advisory.
- If immediate upgrade is not possible, restrict network access to the Nacos server and its API ports to trusted hosts only.
- Do not rely on the User-Agent header for any authentication or access-control decision; audit custom filters for similar trust assumptions.
- Rotate any credentials or secrets stored in Nacos configuration, since administrative access may have been abused.
- Monitor Nacos audit and access logs for administrative operations from unexpected sources.
Detection
- Search Nacos access logs for administrative API calls that succeeded without valid authentication, especially from unfamiliar source IPs.
- Alert on requests to Nacos endpoints carrying unusual or spoofed User-Agent values associated with the bypass.
- Baseline normal administrative API usage and flag configuration or service-registration changes outside that baseline.
- Review Nacos configuration for nacos.core.auth.enabled=true deployments and verify they are on a patched version.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/advisories/GHSA-36hp-jr8h-556f | ExploitThird Party Advisory |
| https://github.com/alibaba/nacos/issues/4701 | ExploitThird Party Advisory |
| https://github.com/alibaba/nacos/pull/4703 | PatchThird Party Advisory |
| https://github.com/advisories/GHSA-36hp-jr8h-556f | ExploitThird Party Advisory |
| https://github.com/alibaba/nacos/issues/4701 | ExploitThird Party Advisory |
| https://github.com/alibaba/nacos/pull/4703 | PatchThird Party Advisory |
Track CVE-2021-29441 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-29441), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.