alibaba / easyexcel

快速、简洁、解决大文件内存溢出的java处理Excel工具
https://easyexcel.opensource.alibaba.com
Apache License 2.0
32.69k stars 7.58k forks source link

IDEA提示严重风险 CVE-2024-26308 与 CVE-2024-25710 #4012

Open treebreath opened 1 month ago

treebreath commented 1 month ago

建议先去看文档

快速开始常见问题

触发场景描述

依赖代码,

        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>easyexcel</artifactId>
        </dependency>

使用的版本是4.0.3

idea高亮提示风险

image
Provides transitive vulnerable dependency maven:org.apache.commons:commons-compress:1.25.0
CVE-2024-26308 7.5 Allocation of Resources Without Limits or Throttling vulnerability with High severity found
CVE-2024-25710 5.5 Loop with Unreachable Exit Condition ("Infinite Loop") vulnerability with Medium severity found

如果使用的是3.3.3版本,则有5个风险提示

psxjoy commented 1 month ago

we have a big update about the 4.0.x version. So if you mind about this info, I strongly suggest updating easyexcel to 4.0.x.

psxjoy commented 1 month ago

AFAIK,version 3.x.x is no longer supported unless there is a major bug.

Allamss commented 1 month ago

Up to version 4.0.3, this vulnerability in commons-compress has not been addressed. You can try excluding it and manually adding the dependency yourself. In our tests, this approach hasn’t caused any issues so far

<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>easyexcel</artifactId>
    <version>x.x.x</version>
    <exclusions>
        <exclusion>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-compress</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-compress</artifactId>
    <version>1.26.1</version>
</dependency>
treebreath commented 1 month ago

we have a big update about the 4.0.x version. So if you mind about this info, I strongly suggest updating easyexcel to 4.0.x.

Hi, I am using version 4.0.3, it hints two transitive vulnerable dependency maven:org.apache.commons:commons-compress:1.25.0

https://github.com/advisories/GHSA-4265-ccf5-phj5 7.5 Allocation of Resources Without Limits or Throttling vulnerability with High severity found https://github.com/advisories/GHSA-4g9r-vxhx-9pgx 5.5 Loop with Unreachable Exit Condition ("Infinite Loop") vulnerability with Medium severity found `

I just mean if I use version3.3.3 it hints five transitive vulnerable dependency. So the version4.x still produce 2 left security risk

psxjoy commented 1 month ago

I think @Allamss 's suggestion is a good idea.We will fix these later.