Security researchers have warned users that attackers are attempting to exploit a critical vulnerability in the Java logging library Apache Log4j. Log4j is a widely used java library that logs error messages in applications used by enterprise software applications as well as custom-built applications intended for in-house usage.
The flaw, which was found to allow unauthenticated remote code execution and access to servers, was discovered first in Minecraft on December 9th, but experts are warning cloud users may also be at risk. There is a variety of software that is potentially vulnerable to being exploited since Log4j is a part of so many different forms of enterprise and open-source software, ranging from email services, cloud platforms, and web applications. The severity of this risk has been deemed a 10 out of 10 after exploits began on the 1st of December. Back in 2013, however, the code was first introduced into the codebase that has now been exploited since December 1st, nine days after public disclosure.
The Apache Software Foundation addressed the concern that is affecting versions 2.0beta9 to 2.14.1 with an update, 2.15.o-rc1. CISA has recommended admin and users either upgrade to the latest patch or apply the recommended mitigations to reduce the vulnerability. An organization that has been using the aforementioned versions of Log4j should examine log files that may have been compromised. If you notice user-controlled strings, “Jndl:Idap” could be among those affected. To best mitigate vulnerabilities, it is recommended users change log4j2.formatMsgNoLookups to true by adding: "‐Dlog4j2.formatMsgNoLookups=True". As well as the recommended mitigations, the original CVE includes some vendor descriptions and tools that can be used to test your own systems against this vulnerability after patching to make sure you're protected.
On December 17th, it was confirmed that two new issues had been discovered and the following day, Apache released another patch. It is expected that this will be an ongoing cycle of discovering new vulnerabilities, releasing a patch, rinse and repeat as both attackers and research continue to focus efforts on Log4j.
The vulnerability has been deemed a 10.0 on the CVSS scale so it is crucial that you evaluate your risk level. Complications stem from the different ways that Log4j can be deployed, such as a java project or installed directly from the source or in different packages. Below are methods for identifying your vulnerabilities to log4j:
Researchers at Check Point have reported attackers making at least 100 attempts every minute of scanning the internet for chances to exploit this vulnerability of Log4j. Bugcrowd founder and CTO Casey Ellis said, “This is a worst-case scenario. The combination of log4j's ubiquitous use in software and platforms, the many, many paths available to exploit the vulnerability, the dependencies that will make patching this vulnerability without breaking other things difficult, and the fact that the exploit itself fits into a tweet. It's going to be a long weekend for a lot of people… It's the kind of software that can quite easily be there without making its presence obvious, so we expect the tail of exploitability on this vulnerability to be quite long." These attackers are aiming to install cryptocurrency-mining malware, as well as reports of several botnets attempting to take advantage of the flaw in the code, including Mirai, Tsunami, and Kinsing. Microsoft researchers are also stating concern over active efforts of cryptomining malware and the potential to have Cobalt Strike installed on these compromised systems, which would give attackers the ability to steal usernames and passwords. Experts warn that over 40 percent of corporate networks have already been targeted and the list of vendors with popular products still considered vulnerable include Atlassian, Amazon, Microsoft Azure, Cisco, Commvault, ESRI, Exact, Fortinet, JetBrains, Nelson, Nutanix, OpenMRS, Oracle, Red Hat, Splunk, Soft, and VMware, but is even longer when factoring in products where a patch has been released.
Since the vulnerability was disclosed to the public, several distributions have published their fix for their packages including:
It is recommended that you follow Apache’s advice and update to 2.17.0 as soon as possible.
Visit our Linux Security Advisories page for more updates.
Log4j was released for mass usage 20 years ago in 2001, leaving many wondering how long has the flaw in the code been wild and why it took so long to have been discovered and taken advantage of. Why wasn’t it reviewed sooner and how might we keep this source code from being vulnerable to exploitation in the future? Two things are certain, this is a serious threat that needs to be remedied as soon as possible, and it is crucial to stay on top of the latest security vulnerabilities and the updates and patches issued to remedy them.