# Lucee is not affected by the Log4j JNDI exploit CVE-2021-44228

**URL:** <https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331>\
**Category:** news\
**Tags:** featured\
**Created:** [December 11, 2021, 10:56am UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331 "2021-12-11T10:56:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zackster](https://dev.lucee.org/user_avatar/dev.lucee.org/zackster/32/3484_2.png) [@Zackster](https://dev.lucee.org/u/Zackster)\
**Post date:** [December 11, 2021, 10:56am UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/1 "2021-12-11T10:56:42Z")

</div>

The Lucee team did testing and code reviews on Friday and Lucee is not affected

- Lucee uses an older Log4j 1.2.17
- In general, OSGI also mitigates/minimises these vulnerabilities
- if you’re using an old JVM you have other problems to worry about
- Tomcat is not affected either

 ![image](https://dev.lucee.org/uploads/default/original/2X/c/cc2228b12ad201f940d32c2a08e0d993348840ee.png)

the basic version of the POC is pretty straight forward

```auto
<cflog text="${jndi:ldap://127.0.0.1:1389/cflog}">
<cfscript>
    systemOutput("${jndi:ldap://127.0.0.1:1389/systemOutput}");
</cfscript>

```

then you can use a command line tool (or GUI) like **nc** on unix to monitor connections to that port

**nc -v -l 127.0.0.1 1389**

(use a different port if you are running a local LDAP server!)

to test the port monitoring is working, run **curl [http://127.0.0.1:1389/curl](http://127.0.0.1:1389/curl)** which will show you in via **nc** any attempted connections to port 1389

Then run the above cfml script, if Lucee was vulnerable you would see connections to port 1389, all that happens is you will see the raw JNDI strings in the logs / console

Lucee 6.0 will be updated to the latest log4j 2.x release

Obviously you are going to be getting a lot of spam traffic trying to test for this, don’t do this, however tempting it maybe!

> <https://twitter.com/shipilev/status/1469417410214125569>

Also note any basic WAF rules are easily bypassed

> <https://twitter.com/Rezn0k/status/1469523006015750146>

---

<div class="post-metadata">

**Author:** ![Zackster](https://dev.lucee.org/user_avatar/dev.lucee.org/zackster/32/3484_2.png) [@Zackster](https://dev.lucee.org/u/Zackster)\
**Post date:** [December 11, 2021, 10:57am UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/3 "2021-12-11T10:57:22Z")

</div>

Removed this banner on December 11, 2021, 10:57am UTC. It will no longer appear at the top of every page.



---

<div class="post-metadata">

**Author:** ![Zackster](https://dev.lucee.org/user_avatar/dev.lucee.org/zackster/32/3484_2.png) [@Zackster](https://dev.lucee.org/u/Zackster)\
**Post date:** [December 11, 2021, 10:57am UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/4 "2021-12-11T10:57:37Z")

</div>

Pinned globally on December 11, 2021, 10:57am UTC



---

<div class="post-metadata">

**Author:** ![Zackster](https://dev.lucee.org/user_avatar/dev.lucee.org/zackster/32/3484_2.png) [@Zackster](https://dev.lucee.org/u/Zackster)\
**Post date:** [December 11, 2021, 11:06am UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/5 "2021-12-11T11:06:27Z")

</div>

Unpinned on December 11, 2021, 11:06am UTC



---

<div class="post-metadata">

**Author:** ![Zackster](https://dev.lucee.org/user_avatar/dev.lucee.org/zackster/32/3484_2.png) [@Zackster](https://dev.lucee.org/u/Zackster)\
**Post date:** [December 11, 2021, 11:06am UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/6 "2021-12-11T11:06:32Z")

</div>

Made this a banner on December 11, 2021, 11:06am UTC. It will appear at the top of every page until it is dismissed by the user.



---

<div class="post-metadata">

**Author:** ![Zackster](https://dev.lucee.org/user_avatar/dev.lucee.org/zackster/32/3484_2.png) [@Zackster](https://dev.lucee.org/u/Zackster)\
**Post date:** [December 11, 2021, 11:06am UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/7 "2021-12-11T11:06:42Z")

</div>

Removed this banner on December 11, 2021, 11:06am UTC. It will no longer appear at the top of every page.



---

<div class="post-metadata">

**Author:** ![Zackster](https://dev.lucee.org/user_avatar/dev.lucee.org/zackster/32/3484_2.png) [@Zackster](https://dev.lucee.org/u/Zackster)\
**Post date:** [December 11, 2021, 11:06am UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/8 "2021-12-11T11:06:59Z")

</div>

Pinned globally on December 11, 2021, 11:06am UTC



---

<div class="post-metadata">

**Author:** ![mjclemente](https://dev.lucee.org/user_avatar/dev.lucee.org/mjclemente/32/77_2.png) [@mjclemente](https://dev.lucee.org/u/mjclemente)\
**Post date:** [December 13, 2021, 2:35pm UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/9 "2021-12-13T14:35:07Z")

</div>

Given that Log4j security vulnerabilities are being examined and exploited, does Lucee recommend anything with regard to this CVE: [CVE-2019-17571 : Included in Log4j 1.2 is a SocketServer class that is vulnerable to deserialization of untrusted data which can be explo](https://www.cvedetails.com/cve/CVE-2019-17571/)

---

<div class="post-metadata">

**Author:** ![Zackster](https://dev.lucee.org/user_avatar/dev.lucee.org/zackster/32/3484_2.png) [@Zackster](https://dev.lucee.org/u/Zackster)\
**Post date:** [December 13, 2021, 2:49pm UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/10 "2021-12-13T14:49:22Z")

</div>

Lucee OOTB doesn’t listen on a socket for logging data…

---

<div class="post-metadata">

**Author:** ![mjclemente](https://dev.lucee.org/user_avatar/dev.lucee.org/mjclemente/32/77_2.png) [@mjclemente](https://dev.lucee.org/u/mjclemente)\
**Post date:** [December 13, 2021, 2:57pm UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/11 "2021-12-13T14:57:47Z")

</div>

Got it.

Thanks @Zackster! Just trying to cover all my bases. Really appreciate the clarification.

---

<div class="post-metadata">

**Author:** ![Adam\_Tuttle](https://dev.lucee.org/user_avatar/dev.lucee.org/adam_tuttle/32/394_2.png) [@Adam\_Tuttle](https://dev.lucee.org/u/Adam_Tuttle)\
**Post date:** [December 13, 2021, 3:51pm UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/12 "2021-12-13T15:51:56Z")

</div>

It’s worth noting that Log4J 1.x is EOL and known to be vulnerable to multiple RCE exploits. Using it as cover from Log4Shell is a pretty terrible strategy.

Further, the way I read it, this report indicates that ALL versions prior to 2.15 (which includes 1.x) are affected. [Remote code injection in Log4j · CVE-2021-44228 · GitHub Advisory Database · GitHub](https://github.com/advisories/GHSA-jfh8-c2jp-5v3q)

> Any Log4J version prior to v2.15.0 is affected to this specific issue.
> 
> The v1 branch of Log4J which is considered End Of Life (EOL) is vulnerable to other RCE vectors so the recommendation is to still update to 2.15.0 where possible.

I can’t find any references to it at the moment but I feel like I’ve also seen some people using the java version as cover, and apparently that is also not good enough:

[https://twitter.com/Laughing\_Mantis/status/1470412026119798786](https://twitter.com/Laughing_Mantis/status/1470412026119798786)

---

<div class="post-metadata">

**Author:** ![bennadel](https://dev.lucee.org/user_avatar/dev.lucee.org/bennadel/32/2110_2.png) [@bennadel](https://dev.lucee.org/u/bennadel)\
**Post date:** [December 13, 2021, 4:18pm UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/13 "2021-12-13T16:18:31Z")

</div>

Not sure if this is a silly question – can we update the version of `Log4j` that is currently shipped with our install of Lucee? Or, will that break other Lucee core code?

---

<div class="post-metadata">

**Author:** ![Julian\_Halliwell](https://dev.lucee.org/letter_avatar_proxy/v4/letter/j/2acd7d/32.png) [@Julian\_Halliwell](https://dev.lucee.org/u/Julian_Halliwell)\
**Post date:** [December 13, 2021, 4:23pm UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/14 "2021-12-13T16:23:46Z")

</div>

> [@Adam\_Tuttle](#):
>
> the way I read it, this report indicates that ALL versions prior to 2.15 (which includes 1.x) are affected

It does read that way, but I don’t think it can be right given that the JNDILookup functionality was only added in version 2.0-beta9 according to this admirably clear [CloudFlare article](https://blog.cloudflare.com/inside-the-log4j2-vulnerability-cve-2021-44228/).

---

<div class="post-metadata">

**Author:** ![Adam\_Tuttle](https://dev.lucee.org/user_avatar/dev.lucee.org/adam_tuttle/32/394_2.png) [@Adam\_Tuttle](https://dev.lucee.org/u/Adam_Tuttle)\
**Post date:** [December 13, 2021, 4:26pm UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/15 "2021-12-13T16:26:03Z")

</div>

Thanks for clearing that up. I don’t think it changes my point that we should not just relax knowing that 1.x is not vulnerable to log4shell. If anything, this event has shined a spotlight on log4j and now the frequency of attempts using known old exploits are likely to increase because of new awareness.

Just to make sure that it doesn’t get buried by these replies, I want to echo that I too would like to know the answer to @bennadel’s question:

> can we update the version of `Log4j` that is currently shipped with our install of Lucee? Or, will that break other Lucee core code?

---

<div class="post-metadata">

**Author:** ![andreas](https://dev.lucee.org/user_avatar/dev.lucee.org/andreas/32/3352_2.png) [@andreas](https://dev.lucee.org/u/andreas)\
**Post date:** [December 13, 2021, 4:44pm UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/16 "2021-12-13T16:44:38Z")

</div>

I’ve also read in this [adobe thread](https://community.adobe.com/t5/coldfusion-discussions/zero-day-exploit-affecting-the-popular-apache-log4j-utility-cve-2021-44228/td-p/12585377), in which @carehart mentions, that ACF uses log4j for cflog/writelog, and that would probably limit the surface of attack in a certain way to those tags. Would that apply also to Lucee?

I know that is not a big relief for most of the admins, but for those who run their servers alone with their own code, wouldn’t it help to just not use those tags for now (until we can get the lib updated)?

---

<div class="post-metadata">

**Author:** ![bennadel](https://dev.lucee.org/user_avatar/dev.lucee.org/bennadel/32/2110_2.png) [@bennadel](https://dev.lucee.org/u/bennadel)\
**Post date:** [December 13, 2021, 7:33pm UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/17 "2021-12-13T19:33:54Z")

</div>

I have a concern that we may be using 3rd-party **Fat JARs** that may have a problematic version of `log4j` internally. A “fat jar” / “uber jar” is essentially (as I understand it) a JAR file that has all its dependencies baked into it. I’m trying to inspect some of the JAR files using:

```bash
jar tf /path/to/jar/file

```

Which gives me a _massive manifest_ of entries. The problem is, I’m not really a “Java guy” and I don’t really know what I’m looking for. Has anyone thought to do something like this? Any tips on what I might keep my eye open for?

---

<div class="post-metadata">

**Author:** ![Julian\_Halliwell](https://dev.lucee.org/letter_avatar_proxy/v4/letter/j/2acd7d/32.png) [@Julian\_Halliwell](https://dev.lucee.org/u/Julian_Halliwell)\
**Post date:** [December 13, 2021, 8:11pm UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/18 "2021-12-13T20:11:15Z")

</div>

@bennadel This tool (recommended on Slack by Tom King) seems good and simple to use.

> **[GitHub - logpresso/CVE-2021-44228-Scanner: Vulnerability scanner and...](https://github.com/logpresso/CVE-2021-44228-Scanner)**
>
> Vulnerability scanner and mitigation patch for Log4j2 CVE-2021-44228 - GitHub - logpresso/CVE-2021-44228-Scanner: Vulnerability scanner and mitigation patch for Log4j2 CVE-2021-44228

---

<div class="post-metadata">

**Author:** ![bennadel](https://dev.lucee.org/user_avatar/dev.lucee.org/bennadel/32/2110_2.png) [@bennadel](https://dev.lucee.org/u/bennadel)\
**Post date:** [December 13, 2021, 8:17pm UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/19 "2021-12-13T20:17:09Z")

</div>

Thank you. I will look at how it works, and I will also pass on to my SEC team!

---

<div class="post-metadata">

**Author:** ![quantumleapchicago](https://dev.lucee.org/user_avatar/dev.lucee.org/quantumleapchicago/32/3843_2.png) [@quantumleapchicago](https://dev.lucee.org/u/quantumleapchicago)\
**Post date:** [December 13, 2021, 9:21pm UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/20 "2021-12-13T21:21:17Z")

</div>

@Julian_Halliwell @bennadel That Logpresso scanner is nice. Requires VC Redist 14 x64. (Link to download that from MS here: [https://www.microsoft.com/en-us/download/details.aspx?id=52685](https://www.microsoft.com/en-us/download/details.aspx?id=52685))

I ran this on our Lucee dev instance against c:\lucee, found 0 vulnerable – as expected, since it’s log4j1.2 and not the 2.9 \> version \> 2.15 vulnerable versions.

I’m looking at the Lucee Admin \> Bundles (Jars) and see jog4j 1.2 is active and located C:\lucee\tomcat\lucee-server\bundles\log4j-1.2.17.jar

Wondering about manually upgrading this – how can I tell Lucee to use the 2.15 if I drop that JAR in that directory? Is there a specific Lucee config file to edit to load that jar instead, or in place of? Perhaps like the automated scanner, renaming the 2.15 version to match the expected filename, but I would rather not do that.

Anyone have an actual update process to share?

---

<div class="post-metadata">

**Author:** ![bdw429s](https://dev.lucee.org/user_avatar/dev.lucee.org/bdw429s/32/37_2.png) [@bdw429s](https://dev.lucee.org/u/bdw429s)\
**Post date:** [December 13, 2021, 10:26pm UTC](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331/21 "2021-12-13T22:26:34Z")

</div>

@bennadel There is also another tool here

> **[GitHub - CodeShield-Security/Log4JShell-Bytecode-Detector: Local Bytecode...](https://github.com/CodeShield-Security/Log4JShell-Bytecode-Detector)**
>
> Local Bytecode Scanner for the Log4JShell Vulnerability (CVE-2021-44228) - GitHub - CodeShield-Security/Log4JShell-Bytecode-Detector: Local Bytecode Scanner for the Log4JShell Vulnerability (CVE-20...

which I have wrapped up inside a nice standalone CommandBox Task Runner which will download what it needs and scan any folder of jars recursively for vulnerable jars. (It scans the folder resursivley and then scans each jar it finds recursively as well)

> <https://gist.github.com/bdw429s/f55595d1a413d68a9c792eeced365e4a>

Run the task like so in CommandBox. You can just point it to an entire server home if you like.

```bash
task run :scanPath="D:\path\to\jars"

```

Plus, if you run your Adobe ColdFusion or Lucee servers via CommandBox you can apply the JVM arg to mitigate against this vuln globally like so (For ACF servers, make sure you’re on the latest updater to ensure this JVM arg will get picked up. Lucee doesn’t bundle a version of Log4j new enough to use this JVM arg, so it would be if you had your own Log4j jars on the classpath.)

```bash
config set server.defaults.jvm.args='-Dlog4j2.formatMsgNoLookups=true'

```

And then restart any running servers.

[Next page](https://dev.lucee.org/t/lucee-is-not-affected-by-the-log4j-jndi-exploit-cve-2021-44228/9331.md?page=2)
