Patchfirst
CVE-2021-29442 Public exploit High · 8.6 EPSS 64.2%

Authentication bypass

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

alibaba · nacos

Summary

The flaw is an authentication bypass in the ConfigOpsController component of Alibaba's Nacos platform, where the /derby endpoint lacks the authentication protection that the /data/remove endpoint has. An attacker with network access can reach the unprotected /derby endpoint without any credentials or user interaction and query the database, and this applies only to installations using embedded Derby storage rather than external databases such as MySQL.

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, the ConfigOpsController lets the user perform management operations like querying the database or even wiping it out. While the /data/remove endpoint is properly protected with the @Secured annotation, the /derby endpoint is not protected and can be openly accessed by unauthenticated users. These endpoints are only valid when using embedded storage (derby DB) so this issue should not affect those installations using external storage (e.g. mysql)

Breakdown
67.6 / 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 3 years after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+3 yrs
  3. Public exploit codePoC-in-GitHub+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. CVE-2021-29441Authentication bypass27 Apr 2021
  2. relatedHigh

    Why these are linked:

    This CVECVE-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-xv5h-v7jh-p2qh

Upgrade to 1.4.1 or later

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

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

The first fix for CVE-2021-29442.

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