Remote code execution via JDBC Appender in Apache Log4j



Published: 2021-12-28 | Updated: 2022-04-25
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2021-44832
CWE-ID CWE-94
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
Apache Log4j
Universal components / Libraries / Libraries used by multiple products

Vendor Apache Foundation

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Code Injection

EUVDB-ID: #VU59098

Risk: Medium

CVSSv3.1: 5.8 [CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-44832

CWE-ID: CWE-94 - Improper Control of Generation of Code ('Code Injection')

Exploit availability: No

Description

The vulnerability allows a remote user to execute arbitrary code on the target system.

The vulnerability exists due to improper input validation. A remote user with permission to modify the logging configuration file can construct a malicious configuration using a JDBC Appender with a data source referencing a JNDI URI which can execute remote code.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Apache Log4j: 2.0 - 2.17.0

External links

http://lists.apache.org/thread/s1o5vlo78ypqxnzn6p8zf6t9shtq5143
http://issues.apache.org/jira/browse/LOG4J2-3293
http://logging.apache.org/log4j/2.x/security.html


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated privileged user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###