Log4Shell Vulnerability Spotlights the Importance of Adopting Trusted Open Source Software Providers for the Enterprise

December 20, 2021 Raquel Campuzano Godoy

On December 9, a vulnerability in one of the most popular Java libraries was revealed. Log4j (version 2) was affected by a zero-day exploit that resulted in Remote Code Execution (RCE), allowing attackers to do remote code execution in vulnerable environments. At this stage, everyone has heard about CVE-2021-44228, also known as Log4Shell.

Log4j is a library prevalent in Java ecosystems used by millions of applications everywhere, so the impact of this CVE has been massive. Proof of its impact is the high CVSS score given to this CVE: 10 out of 10.

Also, products from major cloud vendors, such as AWS, Intel, Cisco, RedHat, and even VMware, have been largely affected by the vulnerability. The impact on businesses was enormous, causing most engineering and operations teams to stop their daily activities and product development in order to prioritize applying patches coming from upstream projects and patching their own in-house built software to attend to this critical vulnerability. Considering the potential effects and risks that this vulnerability can have on applications and sites built using this library, the team behind Log4j immediately started to work on a fix.

In this blog post, we go over the responses and mitigations that have been released, how some of them didn’t solve the problem, and which patches are available to keep your installations secure against this vulnerability.

Furthermore, we introduce the VMware Application Catalog as the definitive alternative for the enterprise to the endless manual fixes and component updates that development teams must perform when a huge vulnerability such as Log4Shell happens. As a library of prepackaged open source application components that are continuously maintained and verifiably tested, VMware Application Catalog brings developers and operators a way of consuming open source software without compromising security.

A retrospective of Log4Shell fixes and mitigations

Many of the mitigations that were assumed to be viable have already been discredited, as new attack vectors have appeared. Initially, it was thought that** newer Java Development Kits (JDK’s) **were not affected,** **but some people did prove that it was still possible to easily bypass the limitations introduced by those recent JDK’s and reproduce the attack.

Disabling remote lookup when logging messages is another insufficient measure that initially was considered possible, but it was found later that the properties governing remote lookup were not being enforced in all possible scenarios.

Moreover, while RCE was the focus of the original exploit, some members of the open source community demonstrated new vector attacks, such as the ability to leak out secrets that might exist as environment variables in vulnerable servers. These can later be mined by attackers from access logs, which might have already been used in the wild as John Graham-Cumming from CloudFlare explains in this blog post.

Another vector attack that was reported is a Denial-of-Service (DOS) attack, where systems can be taken down by triggering thousands of log messages that end up trying to open thousands of remote connections, or triggering uncontrolled recursion from self-referential lookups. This DOS attack triggered the creation of CVE-2021-45105.

Initially, the 2.15 patch pushed to the Log4j2 codebase was insufficient for completely mitigating the original issue. For this reason, a new CVE was raised, CVE-2021-45046, and a new Log4j2 version, 2.16, was released. For those who are running on the original, already-deprecated Log4j1 library, that does not mean they are exempt from danger. This library is also vulnerable in some scenarios, although it is more elaborate, and there is no released fix yet.

On December 19, the Apache Software Foundation released Log4j2 2.17, which incrementally solves the DOS problems raised on CVE-2021-45105 and which completes, at least for now, a frenzied couple of weeks of activity in the security space around the Apache logging libraries.

If you are affected and on Log4j2, the safest options are to upgrade to Log4j2 2.17 or to remove the JndiLookup.class from the application’s classpath as suggested in Apache Log4j security notes.

The need for a trusted source for consuming open source components

Against this backdrop, we have learned that when a vulnerability appears in any of the components or libraries upon which our applications are built, all our infrastructure can be compromised.

As a consequence, developers and operators must always monitor the upstream code source of their applications and keep all app dependencies up to date. Otherwise, all their systems can easily be exposed to uncountable damage.

But that is an enormous effort that few organizations can afford. And, the most important question: Is it viable to have dozens of people tracking all these dependencies, making sure that they are kept up to date, healthy, and patched with the latest CVE fixes, while guaranteeing internal compliance, instead of focusing on building new solutions for the company?

Many organizations are becoming more aware of the challenges associated with software supply chain security. This includes governments and federal agencies. Of particular interest is, for example, United States President Joe Biden’s executive order on improving the nation’s cybersecurity, which directed the National Institute of Standards and Technology (NIST) to give guidance on supply chain security. As part of that, Appendix F of the Cyber Supply Chain Risk Management Practices for Systems and Organizations goes over specific OSS controls:

Open Source projects are diverse, numerous, and use a wide range of operating models. Many of these projects’ provenance, integrity, support maintenance, and other underlying functions are not well understood or easy to discover and vary from one project to the next.

As we see in the Log4j case, this situation has struck many companies that were running older versions of Log4j and Java. The Log4j2 patches, for example, require Java 8. Anyone running in Java 7 and below is vulnerable to these attacks. And while the team behind Log4j is working on a fix, it is not clear when that might be delivered.

When something like Log4Shell turns into “Log4Hell,” having a unique, private, and trusted source for consuming open source application components, such as VMware Application Catalog, is a must.

VMware Application Catalog provides a rich library of prepackaged and trusted building blocks in the form of containers, Helm charts, and virtual machines delivered directly into a private repository of choice.

All solutions available in the catalog are continuously updated with upstream code changes, rebuilt, tested—by running several CVE and antivirus scans—and pushed to the customer registry. All the metadata is available to you, so you can always be informed about the versions, the fixes, and the scan results that each package bundles and passes. Thus, VMware Application Catalog users have the confidence of running only trusted and secure components and apps on their production environments.

In addition to this, VMware Application Catalog allows you to customize the library of available assets by selecting the base OS you want to use for each image. This flexibility enables a superior self-service experience for developers, while seamlessly enforcing compliance, security, and operational best practices.

These capabilities make VMware Application Catalog an invaluable asset for companies that need to rapidly bring applications to production while improving productivity through automation of manual processes such as monitoring and keeping application dependencies updated.

To learn more, read about VMware Application Catalog on our product page, browse through all applications available on VMware Application Catalog, or read our newly updated technical documentation. For more questions, reach out to the product team directly at app-catalog@vmware.com.

About the Author

Raquel Campuzano Godoy

Raquel Campuzano is a VMware product marketing manager in charge of managing the creation of technical content that allows developers to deploy and use awesome software everywhere. Raquel formerly was part of the Bitnami Documentation team as a technical writer. She also speaks about technology every weekend on a regional radio station.

More Content by Raquel Campuzano Godoy
Previous
Build an API gateway with .NET 6, C# and YARP
Build an API gateway with .NET 6, C# and YARP

Consider an API gateway to be a virtual “garden gate” to all your backend services. Implementing one means ...

Next
The New Global Usings Directive in C# 10
The New Global Usings Directive in C# 10

If you’re a C# developer, you’ll recognise the oftentimes extensive list of using directives at the top of ...