{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.druid:druid. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-25646 exists.","fix":"Upgrade org.apache.druid:druid to 0.20.1 or later.","what":"CVE-2021-25646 is a high-severity code injection vulnerability in Apache Druid, published on 29 Jan 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-25646 and fix it if it is affected.\n\nWhat it is: CVE-2021-25646 is a high-severity code injection vulnerability in Apache Druid, published on 29 Jan 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-25646 exists.\n\nAffected packages and fixed versions:\n- org.apache.druid:druid (Maven): affected all versions; fixed in 0.20.1\n- org.apache.druid:druid (Maven): affected all versions; fixed in 0.20.1\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-25646/ (Markdown: https://insights.sbomify.com/CVE-2021-25646/index.md)","id":"CVE-2021-25646","markdown":"https://insights.sbomify.com/CVE-2021-25646/index.md","name":"CVE-2021-25646","record":{"aliases":["GHSA-wrqf-rrrw-w3mg"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Apache Druid","requires_auth":"low_privilege","summary":"Authenticated users can bypass disabled JavaScript execution settings to run arbitrary code on the server.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"druid","vendor":"apache"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"Apache Druid includes the ability to execute user-provided JavaScript code embedded in various types of requests. This functionality is intended for use in high-trust environments, and is disabled by default. However, in Druid 0.20.0 and earlier, it is possible for an authenticated user to send a specially-crafted request that forces Druid to run user-provided JavaScript code for that request, regardless of server configuration. This can be leveraged to execute code on the target machine with the privileges of the Druid server process.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2021-01-21","github_poc":13,"max_poc_stars":1073,"metasploit":1,"nuclei":1,"refs":[{"date":"2021-03-11T22:49:17Z","kind":"github_poc","ref":"https://github.com/1n7erface/PocList","stars":1073,"title":"Alibaba-Nacos-Unauthorized/ApacheDruid-RCE_CVE-2021-25646/MS-Exchange-SSRF-CVE-2021-26885/Oracle-WebLogic-CVE-2021-2109_RCE/RG-CNVD-2021-14536/RJ-SSL-VPN-UltraVires/Redis-Unauthorized-RCE/TDOA-V11.7-GetOnlineCookie/VMware-vCenter-GetAnyFile/yongyou-GRP-U8-XXE/Oracle-WebLogic-CVE-2020-14883/Oracle-WebLogic-CVE-2020-14882/Apache-Solr-GetAnyFile/F5-BIG-IP-CVE-2021-22986/Sonicwall-SSL-VPN-RCE/GitLab-Graphql-CNVD-2021-14193/D-Link-DCS-CVE-2020-25078/WLAN-AP-WEA453e-RCE/360TianQing-Unauthorized/360TianQing-SQLinjection/FanWeiOA-V8-SQLinjection/QiZhiBaoLeiJi-AnyUserLogin/QiAnXin-WangKangFirewall-RCE/金山-V8-终端安全系统/NCCloud-SQLinjection/ShowDoc-RCE"},{"date":"2021-02-03T03:59:52Z","kind":"github_poc","ref":"https://github.com/yaunsky/cve-2021-25646","stars":17,"title":"Apache Druid 远程代码执行;检测脚本"},{"date":"2021-12-12T14:40:12Z","kind":"github_poc","ref":"https://github.com/j2ekim/CVE-2021-25646","stars":4,"title":"Apache Druid remote code execution vulnerability - Apache Druid 远程代码执行漏洞利用 CVE-2021-25646"},{"date":"2024-10-04T15:06:37Z","kind":"github_poc","ref":"https://github.com/k7pro/CVE-2021-25646-exp","stars":4,"title":"CVE-2021-25646 Apache Druid 远程代码执行 漏洞检测和利用工具"},{"date":"2021-02-13T11:48:35Z","kind":"github_poc","ref":"https://github.com/Vulnmachines/Apache-Druid-CVE-2021-25646","stars":3,"title":null},{"date":"2021-04-14T15:36:04Z","kind":"github_poc","ref":"https://github.com/givemefivw/CVE-2021-25646","stars":3,"title":"CVE-2021-25646 Apache Druid 远程代码执行漏洞 Wker脚本"},{"date":"2021-02-03T06:45:54Z","kind":"github_poc","ref":"https://github.com/lp008/CVE-2021-25646","stars":2,"title":null},{"date":"2021-02-04T12:51:01Z","kind":"github_poc","ref":"https://github.com/Ormicron/CVE-2021-25646-GUI","stars":1,"title":"CSharp CVE-2021-25646-GUI"}],"tier":"weaponised"},"has_fix":true,"headline":"Authenticated users can override system configurations in their requests which allows them to execute arbitrary code.","id":"CVE-2021-25646","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"code_injection","year":"2021"},"n_packages":2,"n_references":16,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-25647"},"packages":[{"ecosystem":"Maven","fixed":["0.20.1"],"introduced":["0"],"last_affected":[],"package":"org.apache.druid:druid","purl":null,"source":"GHSA-wrqf-rrrw-w3mg"},{"ecosystem":"Maven","fixed":["0.20.1"],"introduced":["0"],"last_affected":[],"package":"org.apache.druid:druid","purl":"pkg:maven/org.apache.druid/druid","source":"GHSA-wrqf-rrrw-w3mg"}],"prev":{"headline":"Information disclosure in n/a","id":"CVE-2021-25645"},"products":["Apache Druid"],"published":"2021-01-29","related":[{"cvss_score":9.8,"headline":"Apache Druid: Authentication Bypass via LDAP Anonymous Bind","id":"CVE-2026-23906","kev_date_added":null,"published":"2026-02-10"},{"cvss_score":9.8,"headline":"Apache Druid: Kerberos authenticaton chooses a cryptographically unsecure secret if not configured explicitly.","id":"CVE-2025-59390","kev_date_added":null,"published":"2025-11-26"},{"cvss_score":8.8,"headline":"Apache Druid Authenticated users can execute arbitrary code from malicious MySQL database systems.","id":"CVE-2021-26919","kev_date_added":null,"published":"2021-03-30"},{"cvss_score":6.5,"headline":"Apache Druid: Users can provide MySQL JDBC properties not on allow list","id":"CVE-2024-45537","kev_date_added":null,"published":"2024-09-17"},{"cvss_score":6.5,"headline":"Druid ingestion system Authenticated users can read data from other sources than intended","id":"CVE-2021-36749","kev_date_added":null,"published":"2021-09-24"},{"cvss_score":6.5,"headline":"Apache Druid: The HTTP inputSource allows authenticated users to read data from other sources than intended","id":"CVE-2021-26920","kev_date_added":null,"published":"2021-07-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2025-02-13","vendors":["Apache Software Foundation"]},"summary":"Authenticated users can bypass disabled JavaScript execution settings to run arbitrary code on the server.","url":"https://insights.sbomify.com/CVE-2021-25646/"}