Upgrade embedded vulnerable C library lz4 to patch version.
Hi, @sboikov , @agoncharuk , I'd like to report a vulnerable dependency issue in org.apache.ignite:ignite-compress:2.12.0.
Issue Description
I noticed that org.apache.ignite:ignite-compress:2.12.0 directly depends on org.lz4:lz4-java:1.5.0. However, as shown in the following dependency graph, org.lz4:lz4-java:1.5.0 sufferes from the vulnerabilities which the C library lz4(version:1.8.3) exposed, containing 2 CVEs: CVE-2021-3520,CVE-2019-17543.
Dependency Graph between Java and Shared Libraries

Furthermore, the vulnerable methods in the vulnerable shared libraries can be actually invoked by Java code. For instance, the following LZ4-JNI interfaces(Java code): LZ4JNIFastDecompressor::decompress(), LZ4JNISafeDecompressor::decompress(), LZ4JNICompressor::compress() can reach the vulnerable method(C code) LZ4_write32() reported by CVE-2019-17543.
call chain----
LZ4JNISafeDecompressor::decompress() -> LZ4_decompress_safe() -> LZ4_decompress_generic() -> LZ4_write32()
LZ4JNIFastDecompressor::decompress() -> LZ4_decompress_fast() -> LZ4_decompress_generic() -> LZ4_write32()
LZ4JNICompressor::compress() -> LZ4_compress_limitedOutput() -> LZ4_compress_default -> LZ4_compress_fast -> LZ4_compress_fast_extState() -> LZ4_compress_generic() -> LZ4_write32()
Suggested Vulnerability Patch Versions
org.lz4:lz4-java:1.7.0 (>=1.7.0) has upgraded this vulnerable C library lz4 to the patch version 1.9.2.
Java build tools cannot report vulnerable C libraries, which may induce potential security issues to many downstream Java projects. Could you please upgrade this vulnerable dependency?
Thanks for your help~ Best regards, Helen Parr
@HelenParr, Hi! Could you create an issue, please?
Jira: https://issues.apache.org/jira/browse/IGNITE
How to Contribute: https://cwiki.apache.org/confluence/display/IGNITE/How+to+Contribute
@NSAmelchev Hi, im create and fix issue IGNITE-16888