Apache Druid - Remote Code Execution (Log4Shell - CVE-2021-44228) (CVE-2021-44228)
- Severity
- CVSSv3 Score
- 10
- Vulnerability description
Apache Druid is affected by a Remote Code Execution vulnerability, located in the Log4j logging library. The root cause of the vulnerability is improper input validation in the JNDI functionality implemented in Apache Log4j < 2.14.1 which is used by Apache Druid. A feature called "message lookup substitution", which is enabled by default in the affected versions, allows attackers to load and execute arbitrary Java code from a remote LDAP server. Furthermore, multiple protocols are supported in the JNDI lookups, including LDAP, LDAPS, DNS and RMI. Therefore, if an attacker can control the log messages and inject arbitrary code through one of the input parameters or in the HTTP headers, he can create a malicious Java class on a controlled server and the vulnerable server will use the lookup method to execute the Java class from the LDAP/LDAPS/DNS/RMI server. All the versions before 2.17.1 are affected.
- Risk description
The risk exists that a remote unauthenticated attacker can fully compromise the server in order to steal confidential information, install ransomware, or pivot to the internal network.
- Recommendation
Upgrade the Log4j library to at least version 2.17.1.
- References
https://pentest-tools.com/blog/log4shell-scanner-detect-cve-2021-44228/
https://pentest-tools.com/blog/how-we-detect-log4shell/
https://nvd.nist.gov/vuln/detail/CVE-2021-44228
https://www.oracle.com/security-alerts/alert-cve-2021-44228.html
- Codename
- Log4Shell
- Detectable with
- Network Scanner
- Exploitable with Sniper
- No
- Vuln date
- Dec 2021
- Published at
- Updated at
- Software Type
- Database
- Vendor
- Apache
- Product
- Druid