Patchfirst
CVE-2021-29441 Public exploit High · 8.6 EPSS 83.2%

Authentication bypass

Fix:upgrade nacos-common to 1.4.1 or later also fixes CVE-2021-29442 Details ↓

alibaba · nacos

Summary

The authentication bypass in Alibaba's Nacos platform affects versions before 1.4.1 when authentication is enabled, because the AuthFilter servlet filter contains a backdoor that lets requests skip authentication checks based on a user-agent header that can be trivially spoofed. An unauthenticated remote attacker over the network, with no user interaction and no special configuration beyond authentication being enabled, can perform any administrative task on the Nacos server.

Official description · CVE.org

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.

Breakdown
78.7 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 3 years after disclosure. Public exploit code (PoC-in-GitHub) appeared 11 months after disclosure.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+11 mo
  3. First seen exploitedVulnCheck KEV evidence+3 yrs

2 related vulnerabilities in the same code on the same day. The latest fix listed for nacos-common is 2.1.0-BETA.

Linked vulnerabilitiesLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. This CVECVE-2021-29441Authentication bypass27 Apr 2021
  2. relatedHigh

    Why these are linked:

    CVE-2021-29442Authentication bypass27 Apr 2021

Fixes in nacos-commonMaven package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 1.2.0CVE-2020-1967630 Sep 2020
  2. 1.4.1CVE-2021-2944127 Apr 2021
  3. 1.4.1CVE-2021-2944227 Apr 2021
  4. 2.1.0-BETACVE-2021-4466711 Mar 2022Latest listed

Affected versions and fixes

as published in the CVE record

alibaba nacos

Affected: < 1.4.1

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: com.alibaba.nacos:nacos-common.

Mavencom.alibaba.nacos:nacos-commonGHSA-36hp-jr8h-556f

Upgrade to 1.4.1 or later

Fixes this CVE and 1 other known vulnerability in this package (CVE-2021-29442).

Set the version to 1.4.1 or later in your pom.xml or build.gradle.

The first fix for CVE-2021-29441.

Affected versions

If you runUpgrade to
All versions before 1.4.11.4.1

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

References

3 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close