Security vulnerability with FasterXML Jackson libraries included with ZKEE

sahild
117 4

We were just identified as having a security vulnerability in our product. The vulnerability is related to the FasterXML Jackson libraries included with ZKEE 8.0.5 (and 8.5.0) releases. It appears both levels of ZKEE are using version 2.5.1 of the FasterXML libraries and the fix is in the very recent 2.9.4 FasterXML Jackson released on January 21, 2018.
We know this is new, but wanted to see if you knew about this and if there are plans to release a 8.0.x and 8.5.x version with an upgrade to this new level. Or do you know if it will work if we just replace the jackson-xxxx.jar files with the latest ones? FYI the Common Vulnerabilities and Exposures (CVE) numbers are: CVE-2017-7525, CVE-2017-15095, CVE-2017-17485.

delete retag edit

thanks for pointing that one out, we are on it

( 2018-02-01 10:33:50 +0800 )edit

Sort by » oldest newest most voted

cor3000
4571 2 7

My initial tests show that 2.9.4 still works with ZK (if you can live without Java 6 - I think we all can)

The other option is to exclude jackson-databind completely from your dependencies and use the GsonConverter as mentioned earlier.

JIRA ticket: ZK-3857

UPDATE: ZK-3857/ ZK-3859 will be both addressed in 8.5.1

• jackson-databind will be removed by default (since the latest version 2.9.4 doesn't support Java 6 anymore)
• commons-fileupload will be using 1.3.3

while you're at it, also update commons-fileupload to 1.3.3 http://tracker.zkoss.org/browse/ZK-3859

( 2018-02-01 14:45:00 +0800 )edit

cor3000
4571 2 7

the Jackson libraries are used as an optional feature ZK-2650.

If you don't use client-side binding in combination with Pojo-JSON (or reverse) conversion it is not active. I'll perform a few more test verify that. Also if the latest version 2.9.4 will work with the existing features.

ZK-2650 also mentions a switch to disable Jackson and use the alternative GSON converter instead.

<library-property>
<name>org.zkoss.bind.jsonBindingParamConverter.class</name>
<value>org.zkoss.zkmax.bind.GsonConverter</value>
</library-property>


sahild
117 4

When we first upgraded from 7.0.x ZK to 8.0.5 we hadn't included the jackson-xxx.jar files but we noticed there were exceptions because they were missing so we included them to remove the exceptions.

yes if you configure the GSON converter ZK won't initialize Jackson and the libs can be removed

( 2018-02-02 14:48:56 +0800 )edit

sahild
117 4

We just replaced Jackson libraries with the latest release(Jan 2018). This passed the security scans. Thanks for helping.

[hide preview]