-
Notifications
You must be signed in to change notification settings - Fork 122
[CVE-2021-44228] zero-day in the Log4j Java library #133
Comments
Looks like it! Fuel SDK currently uses log4j version 1.2.17. |
Hi, |
I did a bit more research. Apparently the mentioned vulnerability exists only for log4j versions between 2.0-beta9 and 2.16.0. However, version 1, as it is included here, is susceptible to other Remote Code Execution attacks! (source: https://www.lunasec.io/docs/blog/log4j-zero-day/#affected-apache-log4j-versions) |
This PR upgrades |
I updated the PR to use the Log4j 1.2 API instead. This way, all we have to do is exchange the log4j dependency. All logger interactions stay the same. Thanks to @idealec for pointing this out to me! |
thanks @roechi for your review. I replaced log4j-1.2.17.jar with log4j-api-2.16.0.jar and log4j-1.2-api-2.16.0.jar in the classpath. It seemed that the new log4j 2.16.0 does not support Java 6. It causes the regression test to fail. Could you review it?
|
@kyleabcha the overview page of the Log4j 2 project states: |
FuelSDK-Java does support Java 6 compiler as it defined in pom file
Can FuelSDK-Java provide a workaround or a new patch that fixes Log4j 2 issue? |
I've forked the main branch and upgraded code to latest Apache Log4J and CXF as explained here: Code is quite new however (just several hours old) and probably will have more than its share of problems. |
Hi all, Thank you for your time and efforts. |
@DennisAtDept I don't see SF acting on it. However, happy to note my branch seems to be working fine in production at work for the past few days. |
Hi @gmazza, Thank you for all of your efforts, we tried out V1.6.0 of the FuelSDK-java but are encountering NoClassDeffFoundErrors when trying to use it. [INFO] [talledLocalContainer] java.lang.NoClassDefFoundError: org/apache/log4j/Logger Is seems like the FuelSDK still (at least partially) expect log4j1 to be present. Or are we missing something? |
Hi @DennisAtDept, the SF fork is different from mine, they're using separate code, if there are problems with it you may wish to open a new issue over it. But, for what it's worth, my fork seems to be working fine at work past couple of weeks now, and so I have no desire to go back to the main SF one: https://glenmazza.net/blog/entry/fork-of-fuelsdk-java-created |
Hi @gmazza, Thanks for the reply I guess we will start using your form as well, build the project and include the artifact in our nexus. |
I believe this has been fixed with v1.6.0. |
Hi,
There's a serious vulnerability in the Log4j Java.
https://www.lunasec.io/docs/blog/log4j-zero-day/
We are using FuelSDK-Java, does FualSDK-Java suffer from CVE-2021-44228?
The text was updated successfully, but these errors were encountered: