{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-29442 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2021-29442 is a high-severity missing authorization vulnerability in alibaba nacos, published on 27 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-29442 and fix it if it is affected.\n\nWhat it is: CVE-2021-29442 is a high-severity missing authorization vulnerability in alibaba nacos, published on 27 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-29442 exists.\n\nAffected product: alibaba nacos. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-29442/ (Markdown: https://insights.sbomify.com/CVE-2021-29442/index.md)","id":"CVE-2021-29442","markdown":"https://insights.sbomify.com/CVE-2021-29442/index.md","name":"CVE-2021-29442","record":{"aliases":[],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Nacos service discovery","requires_auth":"none","summary":"Unauthenticated users can access unprotected Derby database endpoints in Nacos when using embedded storage, allowing database queries or deletion.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"nacos","vendor":"alibaba"}],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"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)","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2024-07-31","github_poc":2,"max_poc_stars":3,"metasploit":0,"nuclei":1,"refs":[{"date":"2024-07-31T03:56:30Z","kind":"github_poc","ref":"https://github.com/VictorShem/QVD-2024-26473","stars":3,"title":"QVD-2024-26473 \u0026\u0026 CVE-2021-29442"},{"date":"2024-11-25T09:19:59Z","kind":"github_poc","ref":"https://github.com/nanaao/cve-2021-29442-Nacos-Derby-rce-exp","stars":0,"title":"Nacos Derby命令执行漏洞利用脚本"},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-29442.yaml","stars":null,"title":"Nacos \u003c1.4.1 - Authentication Bypass"}],"tier":"weaponised"},"has_fix":true,"headline":"Authentication bypass","id":"CVE-2021-29442","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"missing_authorization","year":"2021"},"n_packages":0,"n_references":3,"next":{"headline":"Padding Oracle Attack due to Observable Timing Discrepancy in jose","id":"CVE-2021-29443"},"packages":[],"prev":{"headline":"Authentication bypass","id":"CVE-2021-29441"},"products":["nacos"],"published":"2021-04-27","related":[{"cvss_score":8.8,"headline":"Use of Hard-coded Credentials in Nacos","id":"CVE-2021-43116","kev_date_added":null,"published":"2022-07-05"},{"cvss_score":8.6,"headline":"Authentication bypass","id":"CVE-2021-29441","kev_date_added":null,"published":"2021-04-27"},{"cvss_score":6.1,"headline":"Cross-site Scripting in Nacos","id":"CVE-2021-44667","kev_date_added":null,"published":"2022-03-11"},{"cvss_score":5.3,"headline":"Incorrect Access Control in Nacos","id":"CVE-2020-19676","kev_date_added":null,"published":"2020-09-30"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["alibaba"]},"summary":"Unauthenticated users can access unprotected Derby database endpoints in Nacos when using embedded storage, allowing database queries or deletion.","url":"https://insights.sbomify.com/CVE-2021-29442/"}