Log4Shell (CVE-2021-44228) was a critical flaw in Log4j, a very common Java logging library. Disclosed in December 2021, it let an attacker run their own code on a server just by getting it to log a specially crafted string.
Why it was so serious
Log4j is used in countless products, often as a hidden transitive dependency. Attackers only needed to send text that ended up in a log, such as a username or a web request header. Exploitation started within hours, and it is on the CISA KEV list.
How to check if you are affected
- Find log4j-core in your dependency tree. Versions 2.0 up to 2.14.1 were vulnerable, and fixes came in several releases, so check the advisory for your line.
- Upgrade to a fixed version, and rebuild everything that bundles it.
- Scan the repository. Bugsieve flags the library and the fix version, and a Maven scan includes indirect copies.
The lesson
When the next Log4Shell lands, an SBOM lets you answer "are we affected?" by searching a file. You can look up whether any CVE is exploited with the CVE lookup.