CVE-2021-29441: Authentication bypass

Published Apr 27, 2021
·
Updated

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.

Other sources

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.

The following request to the configuration endpoint gets rejected as we are not providing any credentials: ❯ curl -X POST "http://127.0.0.1:8848/nacos/v1/cs/configs?dataId=nacos.cfg.dataIdfoo&group=foo&content=helloWorld" {"timestamp":"2020-12-02T14:33:57.154+0000","status":403,"error":"Forbidden","message":"unknown user!","path":"/nacos/v1/cs/configs"}

However the following one gets accepted by using the Nacos-Server user-agent header: ❯ curl -X POST -A Nacos-Server "http://127.0.0.1:8848/nacos/v1/cs/configs?dataId=nacos.cfg.dataIdfoo&group=foo&content=helloWorld" true

Impact

This issue may allow any user to carry out any administrative tasks on the Nacos server.

Affected Software

2 affected componentsFixes available
maven/com.alibaba.nacos:nacos-common<1.4.1
1.4.1
Alibaba Nacos<1.4.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/com.alibaba.nacos:nacos-common to a version that resolves this vulnerability.

    Fixed in 1.4.1
  2. Upgrade

    Upgrade Nacos to a version that resolves this vulnerability.

    Fixed in 1.4.1

Event History

Apr 27, 2021
Advisory Published
via GitHub·08:09 PM
CVE Published
via MITRE·08:20 PM
Data Sourced
via MITRE·08:20 PM
DescriptionSeverityWeakness
Jul 4, 2026
News Published
via BleepingComputer·02:16 PM
News Published
via BleepingComputer·02:23 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-29441?

CVE-2021-29441 is a vulnerability in the Nacos platform that allows unauthorized access when authentication is enabled.

2

How severe is CVE-2021-29441?

CVE-2021-29441 has a severity rating of 9.8 (critical).

3

What is the affected software for CVE-2021-29441?

The affected software for CVE-2021-29441 is Nacos version 1.4.1.

4

How can I fix CVE-2021-29441?

To fix CVE-2021-29441, update your Nacos installation to version 1.4.1 or higher.

5

Where can I find more information about CVE-2021-29441?

You can find more information about CVE-2021-29441 at the following references: [NVD](https://nvd.nist.gov/vuln/detail/CVE-2021-29441), [GitHub issue](https://github.com/alibaba/nacos/issues/4701), [GitHub pull request](https://github.com/alibaba/nacos/pull/4703).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203