microsoft / microsoft/gctoolkit
Vulnerability: CWE-409 (zip-bomb)
@d3r3kk is already working on this.
Since Sep 9, 2026.
- Dominant language
- Java
- Stars
- 1.3k
- Forks
- 177
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 3
Description
Describe the bug
Mitigate vulnerability CWE-409, commonly known as 'zip-bomb'.
See CWE-409 for a longer description and more context.
Since we implement compressed file handling in gctoolkit, and handle .zip and .tar.gz files, we are susceptible to this particular vulnerability (and thus, all consuming applications are too). Note that standard Java libraries do not handle this vulnerability today.
We have provided a change that mitigates the vulnerability, but @johnoliver and I both agree it's too complicated (and very likely too brittle) to incorporate into this library. We would like feedback to decide what to do, and we will make our choice in late Sept/early Oct 2026.
Alternatives we are considering:
- Remove IO handling from gctoolkit (shifts IO responsibility)
- Enforce wrapping application handling for IO
gctoolkitaccepts stream data only
- Reduce handling to just
.zip- Apache compression lib mitigates (reduced functionality) - Shell out to the system OS - responsibility on the deployment dependencies.
- Do not mitigate at all, provide guidance for consuming services/applications.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.